Page 1 of 1

<p:selectOneMenu is not working!

Posted: 01 Nov 2011, 07:15
by nidheesh
<p:selectOneMenu id="transportMode" value="#{.....employee.transportMode}">
<f:selectItem itemLabel="Select" itemValue="" />
<f:selectItem itemLabel="Car" itemValue="" />
</p:selectOneMenu>

is not working with primefaces-2.2.1

errors:
<p:selectOneMenu> Tag Library supports namespace: http://primefaces.prime.com.tr/ui, but no tag was defined for name: selectOneMenu.....

is it works with primefaces-3.0?

Re: <p:selectOneMenu is not working!

Posted: 01 Nov 2011, 08:19
by spauny
As you can see here http://www.primefaces.org/showcase/ui/home.jsf (the ShowCase running Primefaces 2.2.1) there is no selectOneMenu component defined. You have to use the latest version, 3.0.M4, along with the new namespace:

Code: Select all

xmlns:p="http://primefaces.org/ui"