I'm trying to update my page a component of the menu
Code: Select all
<p:outputPanel id="content">
<p:messages globalOnly="true" id="global_messages"/>
<ui:include src="#{menuBean.currentPage}" />
</p:outputPanel>
Code: Select all
<p:menubar zindex="100" appendToBody="false" >
<p:submenu label="#{bundle.employee}" >
<p:menuitem value="#{bundle.emplyeeRegiter}" action="#{menuBean.employeeRegister}" ajax="true" update="content" />
so far so good with no errors ... but when my piece is loaded, it does not load javascript
and this piece I use the tag p: password (using javascript) that ends up causing me a javascript error "Uncaught TypeError: undefined is not a function"
a way to avoid this mistake would be putting a <p:password> with dysplay: none, in my template
(but this is a lot of appeal .. lol)
I see the tag <p:resources/> solve this problem but it is Deprecated
Is there any other way to solve this problem?
Any help is welcome
Thx