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
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
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
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
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
5 matches
Mail list logo