You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sommeralex <al...@gmail.com> on 2012/02/13 15:13:24 UTC

The prefix "p" for element "p:else" is not bound.

Hi!

I just want to use a simple t:if statement in my TML file, but it fails with
the error message The prefix "p" for element "p:else" is not bound.

	<t:if test="folderIsEmpty()">
			empty!
			
			<p:else>
			not empty!
			</p:else>
	</t:if>

--
View this message in context: http://tapestry.1045711.n5.nabble.com/The-prefix-p-for-element-p-else-is-not-bound-tp5479368p5479368.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: The prefix "p" for element "p:else" is not bound.

Posted by sommeralex <al...@gmail.com>.
xmlns:p="tapestry:parameter"

was it. thx!

--
View this message in context: http://tapestry.1045711.n5.nabble.com/The-prefix-p-for-element-p-else-is-not-bound-tp5479368p5479424.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: The prefix "p" for element "p:else" is not bound.

Posted by Michael Gentry <mg...@masslight.net>.
You have to define the p: prefix at the top of your TML:

<html ...
      xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
      xmlns:p="tapestry:parameter">

mrg


On Mon, Feb 13, 2012 at 9:13 AM, sommeralex <al...@gmail.com> wrote:
> Hi!
>
> I just want to use a simple t:if statement in my TML file, but it fails with
> the error message The prefix "p" for element "p:else" is not bound.
>
>        <t:if test="folderIsEmpty()">
>                        empty!
>
>                        <p:else>
>                        not empty!
>                        </p:else>
>        </t:if>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/The-prefix-p-for-element-p-else-is-not-bound-tp5479368p5479368.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: The prefix "p" for element "p:else" is not bound.

Posted by Emmanuel DEMEY <de...@gmail.com>.
Did you declare the "p" xml namespace ?

<html
      xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
      xmlns:p="tapestry:parameter">
<.html>

2012/2/13 sommeralex <al...@gmail.com>

> Hi!
>
> I just want to use a simple t:if statement in my TML file, but it fails
> with
> the error message The prefix "p" for element "p:else" is not bound.
>
>        <t:if test="folderIsEmpty()">
>                        empty!
>
>                        <p:else>
>                        not empty!
>                        </p:else>
>        </t:if>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/The-prefix-p-for-element-p-else-is-not-bound-tp5479368p5479368.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr

Twitter : @gillespie59