Reputation: 3320
When using <p:messages>
OR <h:messages>
, I am getting the following warning:
This page calls for XML namespace declared with prefix p but no taglibrary exists for that namespace.
I understand that it's just a warning but still it's a bit annoying when working in development mode.
Is there a way to fix this issue ?
Using: WebLogic 12c & primefaces 5
Upvotes: 1
Views: 5916
Reputation: 1108567
This can also come from a <p>
if you don't have declared the default XML namespace for HTML.
E.g.
<ui:composition
xmlns:p="http://primefaces.org.ui"
>
<p><p:messages/></p>
</ui:composition>
Would produce this warning.
You'd need to add the default XML namespace for HTML.
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://primefaces.org.ui"
>
<p><p:messages/></p>
</ui:composition>
This also totally explains why you still got the message when using <h:messages>
instead.
Upvotes: 3