You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Maximilian Weißböck <Ma...@sphinx.at> on 2008/12/10 13:28:58 UTC

Very strange problem with expansion of ${name}

Is there a special meaning to the expansion of ${name} ?

Cause I have a very strange problem.

If I use ${getNode().getName()} in my template, all is ok.
If I use ${node.getName()} in my template, all is ok.

If I use ${node.name} I do not get the expected value, instead 
the name of the application as it is defined in pom.xml is displayed!

I even can write ${name}, even if there is no property name
in my page class - again the name of the application is displayed!

Now I'm very confused...
Is there something special about ${name} ???
And if yes, how can I turn it of?

Tested on 5.0.16 and 5.0.17

Thanks, Max


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


Re: Very strange problem with expansion of ${name}

Posted by Andreas Andreou <an...@gmail.com>.
are you running this with maven? If you've set it to filter the
resources, that may be the cause.

On Wed, Dec 10, 2008 at 2:28 PM, Maximilian Weißböck
<Ma...@sphinx.at> wrote:
> Is there a special meaning to the expansion of ${name} ?
>
> Cause I have a very strange problem.
>
> If I use ${getNode().getName()} in my template, all is ok.
> If I use ${node.getName()} in my template, all is ok.
>
> If I use ${node.name} I do not get the expected value, instead
> the name of the application as it is defined in pom.xml is displayed!
>
> I even can write ${name}, even if there is no property name
> in my page class - again the name of the application is displayed!
>
> Now I'm very confused...
> Is there something special about ${name} ???
> And if yes, how can I turn it of?
>
> Tested on 5.0.16 and 5.0.17
>
> Thanks, Max
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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


Re: Very strange problem with expansion of ${name}

Posted by Joakim Olsson <ar...@lingonpaj.com>.
> Is there a special meaning to the expansion of ${name} ?
>
> Cause I have a very strange problem.
>
> If I use ${getNode().getName()} in my template, all is ok.
> If I use ${node.getName()} in my template, all is ok.
>
> If I use ${node.name} I do not get the expected value, instead
> the name of the application as it is defined in pom.xml is displayed!
>
> I even can write ${name}, even if there is no property name
> in my page class - again the name of the application is displayed!
>
> Now I'm very confused...
> Is there something special about ${name} ???
> And if yes, how can I turn it of?
>
> Tested on 5.0.16 and 5.0.17
>
> Thanks, Max
>

I have seen the same behaviour in a Maven-based Struts2 project so it's
nothing Tapestry-specific.

Regards,
Joakim



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