开发者

PrimeFaces.widget.InputText is not a constructor

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜