Results 1 to 3 of 3

Thread: Controllers

  1. #1

    Default Controllers

    hi,
    I have a question considering the controllers and the formcontrollers.
    If I have a page that displays 2 lists.
    for example: a page that displays a list of customers and when a customer is selected the details of this customer appears in the same page.
    I understand that if the 2 lists are displayed in two different pages then I'll need a controller for each page.
    But if they are both on the same page , how are controllers managed?

    Thanks in Advance.
    sherihan.

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    do you mean that you want the second list to update without another round trip to the server? If so, you're looking at client side scripting, probably JavaScript. You'd have to supply all of the customer data as reference data in the page showing customer lists. Usual caveats apply with any client side technology.

    If you want to round-trip the server after selecting a customer you can still use the same controller just passing a parameter to identify which customer was selected. The controller adds the customer detail to the model if a valid id is in the request and the same view can show it.

    If you meant something entirely different, you'll need to supply more detail.

    Regards,
    Darren Davison.
    Public Key: 0xE855B3EA

  3. #3
    Join Date
    Jan 2005
    Location
    Utrecht, The Netherlands
    Posts
    34

    Default

    You might want to check out the AbstractWizardFormController. This controller allows you to split up your form into several pages, but still use one controller.

Similar Threads

  1. Replies: 22
    Last Post: Feb 4th, 2010, 01:37 AM
  2. Replies: 4
    Last Post: Dec 17th, 2008, 01:47 PM
  3. Replies: 5
    Last Post: Aug 11th, 2005, 08:09 AM
  4. Spring MVC Component-like Controllers
    By harmen in forum Web
    Replies: 4
    Last Post: Aug 8th, 2005, 01:58 AM
  5. Portlet Form Controllers
    By johnalewis in forum Web
    Replies: 4
    Last Post: Mar 11th, 2005, 10:26 AM

Posting Permissions

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