Re: Form values getting empty After validation failure

2010-03-25 Thread Greg Lindholm
Does this FAQ entry help? http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.a

RE: Form values getting empty After validation failure

2010-03-25 Thread adam pinder
ct: Re: Form values getting empty After validation failure > From: pundari...@gmail.com > To: user@struts.apache.org > > Hi Adam, > > You are right. The problem is fixed now. However I am facing a different > issue now. I also have a couple of html select controls in the page. Fo

Re: Form values getting empty After validation failure

2010-03-24 Thread pundarik rajkhowa
Hi Adam, You are right. The problem is fixed now. However I am facing a different issue now. I also have a couple of html select controls in the page. For them , how do I get the select state restored ? As of now , they take the default value even after making a different selection. regards, Pund

RE: Form values getting empty After validation failure

2010-03-24 Thread adam pinder
as long as you are simply re-displaying the same form associated with the same action it should work like any other page - the input fields are struts2 tags and there are getters for each property in the action it should retrieve the value and re-display them i have a similar thing and it w

Re: Form values getting empty After validation failure

2010-03-24 Thread Alex Rodriguez Lopez
Hi, don't know if it will be usefull, but some days ago someone in the user list suggested using the getters and setters of the properties that map to your form to call get() and put() methods of the current session ( ActionContext.getContext().getSession() ) , so you get "automatic" session