I've been making improvements to the property expression language for
5.1, and there will soon be a boolean not operator.

Already you can now invoke methods with parameters, and the
upper/lower bounds on range expressions are themselves expressions.
(i.e, you can now say "from .. to" where from and to are properties).

You can also create List objects using brackets, which is great for
event contexts that need multiple values.

On Thu, Jan 8, 2009 at 7:05 AM, Andy Pahne <andy.pa...@googlemail.com> wrote:
>
> Ah, and you could also do it like this:
>
>
> <t:pagelink id="next" page="nextPage" disabled="nextPageLinkDisabled">
>
> public boolean isNextPageLinkDisabled{
>   return ! sth;
> }
>
>
> Andy
>
>
>
> Brian Long schrieb:
>>
>> Hi,
>>
>> in tapestry 4 you could use ognl to check a page property in a expression
>> like disabled="ognl:!nextAvailable" or ognl:(nextAvailable == false)", I'm
>> wondering is we can do something similar in T5 without using ognl, just
>> using the prop: binding prefix alone, for example
>>
>> <t:pagelink id="next" page="nextPage" disabled="!(nextPageAvailable)">
>>
>>
>> public final boolean isNextPageAvailable() {
>>       return true;
>> }
>>
>> the above example doesn't work of course, as there's no property named
>> "!(nextPageAvailable)" just nextPageAvailable . . .
>>
>> Regards, Brian.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to