You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Pedro Herrera <pe...@hotmail.com> on 2007/06/27 12:44:54 UTC
[T2] dynamic templates. how to ?
Is it possible in Tiles 2 have dynamic templetes, ie, an user sees the page
in different form of other user ?
I have 3 groups of users and I need to show 3 types of screen depending on
the user.
Thanks
Herrera
--
View this message in context: http://www.nabble.com/-T2--dynamic-templates.-how-to---tf3987551.html#a11322098
Sent from the tiles users mailing list archive at Nabble.com.
Re: [T2] dynamic templates. how to ?
Posted by Antonio Petrelli <an...@gmail.com>.
2007/6/27, Pedro Herrera <pe...@hotmail.com>:
>
>
> Is it possible in Tiles 2 have dynamic templetes, ie, an user sees the
> page
> in different form of other user ?
> I have 3 groups of users and I need to show 3 types of screen depending on
> the user.
Not directly. You can create your own implementation of
TilesDefinitionsFactory:
http://tiles.apache.org/framework/apidocs/org/apache/tiles/definition/DefinitionsFactory.html
Usually, you can extend UrlDefinitionsFactory:
http://tiles.apache.org/framework/apidocs/org/apache/tiles/definition/UrlDefinitionsFactory.html
The other option is using Dimensions, though currently it is not completely
rewritten to support Tiles 2 (it needs some tweaks to compile):
http://mutidimensions.sourceforge.net/
HTH
Antonio