Hello,
I have to offer 3 dynamic dates on a selectOneListbox.
This code:
<h:selectOneListbox id="start" value="#{sV.start}" styleClass="sessionInput">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| <f:selectItems value="#{sV.availableStarts}" />
| </h:selectOneListbox>
Render:
<select id="starting:start" name="starting:start" size="3"
class="sessionInput">
| <option value="07/25/2007">Wed Jul 25 09:00:31 CEST 2007</option>
| <option value="07/26/2007">Thu Jul 26 09:00:31 CEST 2007</option>
| <option value="07/27/2007">Fri Jul 27 09:00:31 CEST 2007</option>
| </select>
So we can see that the pattern of selectItems is correctly set on value. But
when i try to validate my form, <h:message/> return that the data is not a
correct option.
Which is strange as this code works :
<h:inputText id="start" value="#{sV.start}" required="true"
styleClass="sessionInput">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| <a:support event="onblur" reRender="startDecorate"/>
| </h:inputText>
| <s:selectDate for="start">
| <h:graphicImage url="img/dtpick.gif" style="margin-left:5px"/>
| </s:selectDate>
|
Any idea about this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067054#4067054
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067054
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user