Re: repopulating dropdown menus when validation errors occur

2005-04-13 Thread Ovidiu EFTIMIE
You can find the complete solution here http://www.reumann.net/struts/articles/request_lists.jsp On 4/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Mallik, > > The way I have always made this work in the past is to call the validate > method on the form bean myself in the action rather t

Re: repopulating dropdown menus when validation errors occur

2005-04-13 Thread kurt . e . williams
Mallik, The way I have always made this work in the past is to call the validate method on the form bean myself in the action rather than leaving it the validator to call for me. Set validate="false" in the action mapping in struts-config.xml. Then in the action call the validate method on th

Re: repopulating dropdown menus when validation errors occur

2005-04-13 Thread Jeff Beal
Have the input attribute on the action that is having validation errors point to an Action that will re-populate the drop-down list bean. On 4/12/05, Mallikarjun Komma <[EMAIL PROTECTED]> wrote: > Hi, > I am new to struts frame work.I have a question > regarding repopulating dropdown menu when val

RE: repopulating dropdown menus when validation errors occur

2005-04-13 Thread Mark Benussi
:33 To: Struts Users Mailing List Subject: Re: repopulating dropdown menus when validation errors occur kurt, I am putting the list of values for the drop down in the form bean as dynaform.set("userList", list) in theaction class. (userList is a form property here) but still not able

Re: repopulating dropdown menus when validation errors occur

2005-04-12 Thread Mallikarjun Komma
kurt, I am putting the list of values for the drop down in the form bean as dynaform.set("userList", list) in theaction class. (userList is a form property here) but still not able to get the drop down re-populated back when validation errors occur. What am I doing wrong here? Thanks in advance.

Re: repopulating dropdown menus when validation errors occur

2005-04-12 Thread kurt . e . williams
Once the user does a submit you have a new request. So the old request where your list is is no longer in scope and therefore no longer valid. One solution would be to set validate="false" in the action mapping for the action and then call the form's validate method yourself in the aciton. If