selectOneMenu not found

UI Components for JSF
Post Reply
binarybee
Posts: 1
Joined: 05 Jul 2011, 07:37

05 Jul 2011, 07:43

hi,

made some changes to my JSF file and now i'm getting this error.

Code: Select all

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

Code: Select all

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head><title>Facelet Title</title></h:head>
    <h:body>
        <center>
            <h:form prependId="false">
                <p:panel style="font-size:small">
                    <h:panelGrid>  
                        <p:selectOneMenu id="selectState" value="#{stateCityBean.selectedStateArray}" style="width: 200px;font-size:small">
                            <f:selectItem itemLabel="Select Any" itemValue="Empty String"/>
                            <f:selectItems value="#{stateCityBean.stateMap2}" />
                            <p:ajax update="selectCity" listener="#{stateCityBean.updateCityMap}" />
                        </p:selectOneMenu>                   
                        <p:selectOneMenu id="selectCity" value="#{stateCityBean.selectedCityArray}" style="width: 200px;font-size:small">
                            <f:selectItem itemLabel="Select Any" itemValue="Empty String"/>
                            <f:selectItems value="#{stateCityBean.cityMap2}"/>
                        </p:selectOneMenu>
                    </h:panelGrid>
                </p:panel>
            </h:form>
        </center>
    </h:body>
</html>

i've tried both the 3M2 and 3M1 releases. Never encountered this issue before.

RicardoMarcel
Posts: 1
Joined: 07 Jul 2011, 23:22

07 Jul 2011, 23:30

I' have encountered the same issue while trying to recreate the example from the showcase, in the case of the select one menu it also doesn't count with the autocompletebean.java referenced hence we cannot know what kind of data structures the example "autocompletebeans.players" have.


Greetings :mrgreen:

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests