getting this error : "components.js?ln=primefaces&v=11.0.0:21 Uncaught TypeError: Cannot read properties of undefined

UI Components for JSF
Post Reply
kbmk.java
Posts: 3
Joined: 13 Sep 2022, 18:37

23 Sep 2022, 22:19

<h:panelGroup class="ui-g-12 ui-lg-6 hcs-float-label" >
<p:selectOneMenu id="inputOrg" size="12" value="#{bean.selectedOrg}"
filter="true" filterMatchMode="startsWith" rendered="true" required="true" requiredMessage="Organization is required">
<f:selectItem itemValue="#{null}" itemLabel="" noSelectionOption="true" onchange="document.getElementById('form:inputOrgTypeGrp').style.display='none';"/>
<f:selectItems value="#{bean.orglist}" var="org"
itemLabel="#{org.name} - #{org.typeName} - #{orgType.id}"
itemValue="#{org.orgNo}" />
<f:ajax event="blur" render="inputOrgTypeGrp" />
</p:selectOneMenu>
<p:message id="inputOrgmsg" for="inputOrg" ></p:message>
<p:outputLabel class="float-label" value="Organization " for="inputOrg"/>
</h:panelGroup>


Using above code trying to populate orgs list in dropdown. Able to populate orgs, but when i click on the down arrow of the drop down getting this error : "components.js?ln=primefaces&v=11.0.0:21 Uncaught TypeError: Cannot read properties of undefined (reading 'vertical')" . I really spent one day to fix this, but no luck, Anyone could you please help me in fixing this issue ?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

28 Sep 2022, 13:32

Without a PrimeFaces Test reproducer its impossible for us to help debug your issue. See: https://github.com/primefaces/primefaces-test
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests