SelectOneMenu Error

UI Components for JSF
Post Reply
ab-trax
Posts: 8
Joined: 09 Feb 2011, 15:11

03 Dec 2011, 13:43

When I use this code, it works fine.

Code: Select all

<h:selectOneMenu id="idSelectCostUnit" value="#{detailMeasureMB.costData.selectedCost.unitCode}" immediate="true"
								required="true" converter="codeEinheitConverter" style="width:100%;">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{detailMeasureMB.unitList}" var="code" itemLabel="#{code.text1}" itemValue="#{code}" />
</h:selectOneMenu>
But if I replace the standard selectOneMenu with the primefaces component I got the following error:
itemLabel="#{code.text1}": Property 'text1' not found on type javax.faces.model.SelectItem
I'm using Mojarra 2.1 and Primefaces 3.0 M4.
Any ideas what is different between the standard jsf component 'selectOneMenu' and the primefaces one?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Dec 2011, 14:08

Try a 3.0.RC1 build.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests