hi 
I have 3 dropdowns for month, date, and year.
i fill this dropdowns by 
for Month:<stripes:options-collection collection="${actionBean.months}" />
For date:On selected month i call js to fill out the date
<stripes:option value="">Date</stripes:option>
and javascript func
function getDays(month)
                {       
                        var sel = document.forms[0].date;
                    sel.options.length = 0;
                        var NoOfDays=getDays(month);
                        
                        for(var i=1;i<=NoOfDays;i++)
                    {
                       
                      var option = new Option(i,i); 
                       
                        sel.options[i] = option; 
                    }
                                        
                }

every thing works fine when there is no validation error
but when there is validation check which throws the error message & takes to
the same page ,at that time value of month remains unchanged as what was
previously selected but my Date get cleared off and and also the dropdown
becomes empty.

how to get the value of date back.

plz help.. 
-- 
View this message in context: 
http://www.nabble.com/problem-in-redisplaying-the-value-in-dropdown.-tp19674262p19674262.html
Sent from the stripes-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to