Announcement Announcement Module
No announcement yet.
Best way to populate pojo lists Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Best way to populate pojo lists


    I am doing a Wizard Controller to populate a sw Use Case pojo. This use case has some lists like Actors (name + description), and Main sucess scenario steps.

    My Wizard would be like this:

    Step 1: Use case basic information (Name, brief description, ...)
    Step 2: Actors (List)
    Step 3: Main Sucess scenario (List of descriptions)

    How to manage that list of inputs? What should be my Form class structure?

    I was thinking to insert list fields using AJAX, but i would need to create another Controllers... Would be possible to share the same Command class from Wizard with Ajax Controllers?

    What's the pattern here friends?

    Thank you!

  • #2
    If you want to use AJAX then it becomes a bit more complicated, if you want to populate server side, then just override formBackingObject and check the currentPage.

    If you want ajax then have seperate controllers which just return the fragment of html you want.