Thursday, March 18, 2010

Undeclared namespace prefix "p"

First time I used the if component as documented here like in this example:

<t:if test="loggedIn">
Welcome back, ${user.firstName}
<p:else>
<t:pagelink name="login">Login</t:pagelink> /
<t:pagelink name="register">Register</t:pagelink>
</p:else>
</t:if>


I got the followng exception:

Failure parsing template classpath... Undeclared namespace prefix "p" at....

on the tag I was using.

The problem? I didn't add xmlns:p="tapestry:parameter" to the html tag in the template file (look at the example).

No comments:

Post a Comment