开发者

PrimeFaces.widget.InputText is not a constructor

开发者 https://www.devze.com 2023-03-28 16:35 出处:网络
This is a javascript error I have every time the tomcat server is restarted. After the page is refreshed there is no e开发者_StackOverflow社区rror any more.

This is a javascript error I have every time the tomcat server is restarted. After the page is refreshed there is no e开发者_StackOverflow社区rror any more.

Does anybody know what's wrong?


You can declare your ajax-loaded primeface components as below and the problem is solved. This is because primefaces doesn't load all the widget's javasripts at the first load of the page, you have to force it to load the libs for your ajax-loaded widgets.

    <p:accordionPanel rendered="false" />
    <p:inputText rendered="false" />
    <p:inputMask rendered="false" />
    <p:autoComplete rendered="false"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消