Foren

Displaying selected option in selection box if validation fails

thumbnail
Madhava Reddy Solipuram, geändert vor 12 Jahren.

Displaying selected option in selection box if validation fails

Junior Member Beiträge: 45 Beitrittsdatum: 27.06.11 Neueste Beiträge
hi all,

I am developing one sign up application using liferay6.1.
I am validating the input boxes using liferay validation. If validation
fails forwarding the same page with the entered data.

My question is in my application i used selection box.
if i am selecting some options. And if validation fails i am
forwarding to same page but the selection box is selected the first option(not which i was selected).
But i want to select the option which i was selected.

So, how can i resolve the above problem.
thumbnail
Madhava Reddy Solipuram, geändert vor 12 Jahren.

RE: Displaying selected option in selection box if validation fails

Junior Member Beiträge: 45 Beitrittsdatum: 27.06.11 Neueste Beiträge
Hi all,

Still i am facing same problem. How can i solve the above problem.
In liferay.com also they developed with <select> box options in registration form.
If server side validations fails they are displaying the same selected options which
i was selected, not the first option.
So how can i get that feature in my application.