tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: [T2] dynamic templates. how to ?
Date Mon, 02 Jul 2007 07:16:57 GMT
2007/6/27, Pedro Herrera <pedro_herrera@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message