Announcement Announcement Module
No announcement yet.
Simple Form Controller ... help ! Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple Form Controller ... help !

    in my form there is a button to automatically fill some information if user wish so ..

    on clicking it should get some information from database and fill some command fields ...

    the other data user entered should be retained ...

    i could submit the button and get info from db , change command object fro that portion only , place in session and call the same view and in that retrieve that from session and set that as command object ..

    but that doesnt seems to be a good idea ..

    is there any method i could do that without saving to session ..

    any help will be greatly appreciated

    thanks ..

  • #2
    Can you just reload the view with a request parameter to indicate to the formBackingObject method to fetch those fields from the DB.


    • #3
      thanks katentim...

      but .. if user has already entered some valyes that will not be retained ...
      means only some values are to be collected ....

      i tried using isFormChangeRequest method ...
      then i could check the parameter ,.. get the values and teturn to the same view without losing the other values

      now it is working fine

      thanks again