Jul 1st, 2011, 10:46 AM
I'm fairly new to Roo. Just ready the docs and messed around with the sample a bit.
The way I created my application was to design the database schema first, use the DBRE to create my domain objects, and then create the MVC scaffold after that.
My question is around how to customize the generated app from there without breaking the Roo generated settings/code/views.
As an example, say I have 2 tables - 1 called pizzas, one called toppings. There's a 1-M relationship so I can't put rows in the toppings table until I create a row in the pizzas table. With roo, it creates menus for pizzas and one for toppings. What I really want is a 'create new pizza', and after they create a pizza take them to a screen to add toppings for the pizza they just created.
Can I take the code/screens from what Roo created and modify it to handle that?
Jul 3rd, 2011, 07:21 PM
What you are describing sounds more like a web flow to me. Roo currently offers rudimentary Spring Web Flow support with the 'web flow' command. This will configure Web flow and give you an example how to go about it. You should also take a look at the Spring Web flow docs to find out where to go from there.