Results 1 to 2 of 2

Thread: Roo customization

  1. #1
    Join Date
    Mar 2007
    Posts
    128

    Default Roo customization

    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?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    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.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •