Look at the code below. It works perfectly but only without Facelets. With
Facelets page is not generated correctly.
<h:form>
| <h:dataTable value="#{employeeList}" var="empl" rendered="true" >
| <h:column>
| <h:outputText value="#{empl.name}"/>
| </h:column>
| <h:column>
| <h:selectOneMenu id="country" value="#{empl.country}"
converter="CountryConverter">
| <f:selectItems value="#{selectItems.countries}" />
| </h:selectOneMenu>
| </h:column>
| </h:dataTable>
| <h:commandButton type="submit" action="#{employeesEditor.update}"
value="Apply"/>
| </h:form>
|
HTML generated correctly (without facelets):
<select id="_id0:_id1_0:country" name="_id0:_id1_0:country" size="1"> <option
value="1">Germany</option> <option value="2"
selected="selected">Poland</option> <option value="3">Switzerland</option>
<option value="4">Ukraine</option></select>
HTML generated incorrectly (with facelets):
<f:selectItems value="[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]"/>
| <select id="_id0:_id1_0:country"
name="_id0:_id1_0:country" size="1"></select>
Do you have any idea how to solve this problem? Anybody succeeded with Facelets
and converters described in this topic?
Thanks,
Pawel Kaczor
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926316#3926316
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926316
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user