0

I couldn't find an example or a documentation that explains how to populate a complex object in a play.data.Form Object and reading the form's values later on in the Scala template.

BTW - I'm using java (I saw that Scala has some documentation about this but I'm using java)

By Complex Object I refer to:

Person entity with Shopping Cart entity attached to it and with X Item entities in that cart :

person.cart.size person.cart.item iteration etc

A code example - is highly appreciated.

Thanks! CB

1 Answer 1

1

You can take a look at the Form sample included in Play.

In particular, you should be interested by the Contact model and its associated view.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.