This content has been marked as final.
Show 4 replies
-
1. Re: Value is not valid when using s:selectItems and h:selectOneMenu
pmuir Oct 13, 2008 7:35 PM (in response to mail.micke)I would guess Date.equals() is returning false - can you check if this is the case? In which case, please file an issue in Seam JIRA and I can see if we can improve this.
-
2. Re: Value is not valid when using s:selectItems and h:selectOneMenu
mail.micke Oct 14, 2008 10:26 AM (in response to mail.micke)Not sure where the equals methods are being called.
Is it in the <s:selectItems/> or in the <h:selectOneMenu/> component?
Pointer to where I should put a break point needed.
Thanks,
micke -
3. Re: Value is not valid when using s:selectItems and h:selectOneMenu
pmuir Oct 14, 2008 12:18 PM (in response to mail.micke)The validate() method on UISelectOne IIRC.
-
4. Re: Value is not valid when using s:selectItems and h:selectOneMenu
mail.micke Oct 14, 2008 1:22 PM (in response to mail.micke)FYI
Problem was a user error, doh!
Turns out the the date is stored like this in the <option/> tag:
<option value="10-Sep-2008">2008-09-10</option>
So when the Date object was recreated it didn't have the right values for hour etc.
Adding type="both" to the <f:convertDateTime/> seems to have sorted the issue and the full date is put in the value attribute.
Cheers,
Micke