This content has been marked as final.
Show 3 replies
-
1. Re: How to retain selected value in dropdown list...
pmuir Dec 17, 2007 7:15 AM (in response to damonchong)This should work (see the UI example for instance).
You're probably going to have to use your debugger here as I have no idea why this would happen. -
2. Re: How to retain selected value in dropdown list...
kai222 Dec 17, 2007 8:22 AM (in response to damonchong)Is the key id of your entity bean an object e.g. of type Long? If so, maybe it helps when you overwrite the equals and hashCode method in the entity class. This was the only thing that helped me (under 2.0.0.CR3) when I used s:convertEntity to assign the selected item to the object in the list.
-
3. Re: How to retain selected value in dropdown list...
damonchong Dec 17, 2007 9:03 AM (in response to damonchong)Hehe, silly me.....sometimes it takes an assurance from the expert just to make one try harder. My mistake was to do a redirect (although back to the same page) upon error. Instead, i should just return a null and let seam takes care of restoring the values.
Thanks guys!