2007/6/27, Pedro Herrera <[EMAIL PROTECTED]>:


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

Reply via email to