iberck wrote:
Hi, I'm developing an application with tap 5..
Great, good new. Welcome on board !
I don't understand why I can't use OGNL inside tap5 and with tap4 yes !
That's a design choice made by HLS. OGNL suffer some drawbacks,
including a performance penalty (even after the amazing work Jesse
Kuhnert did on that area), and a non-type safe way of handling
properties access. Moreover, it's always hard to synchronize the needs
and development of two major and independents frameworks. Finally, the
spirit of T5 is "clean templates, logic in the code (where it belongs)"
So, HLS choose to build for 5.0 a simple, efficient expression language,
but clearly not as expressive as OGNL.
I found a set of components (http://code.google.com/p/tapestry5-components/)
that has the OGNL component, the question is why outside of the core ?
That's the alternative. T5-component provides an OGNL binding that let
you use it if you want.
what in tap5 OGNL is out, what is the alternative?
Tapestry 5 has a simple expression language, the doc is under template
and binding related pages:
http://tapestry.apache.org/tapestry5/guide/templates.html and here:
http://tapestry.apache.org/tapestry5/guide/parameters.html
--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
http://fanf42.blogspot.com
InterLDAP - http://interldap.org
FederID - http://www.federid.org/
Open Source identities management and federation
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org