It only fails with literal values (i.e. outside of #{} and ${}). I've just checked in a fix. Until you get that, as a workaround, you can do this:

<jx:set var="label" value="#{1}">

Note also that the way you increment the counter below won't work. Probably what you want is this:

<jx:set var="label" value="#{1 + $label}"/>



Antonio Gallardo wrote:

Christopher Oliver dijo:


It's a bug. I'll commit a fix shortly.



I wondered why tring to use the same approach to make a "counter" does not work: <jx:set var="label" value="1"/> <jx:forEach ....> <jx:out value="#{$label}"/> <jx:set var="label" value="1 + #{$label}"/> </jx:forEach ....>

Best Regards,

Antonio Gallardo



Mariusz Sieraczkiewicz wrote:



<jx:set var="label" value="Log out"/>
<jx:out value="#{$label}"/>
just like in Useedocs article,
doesn't work. I have <jx:out value="#{$label}"/> with an empty value.
It works properly when only JXPath expression is used
(value="#{myData}").
Everytime I use anything else I get an empty value.
Is it a bug or do I use it incorrectly?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to