Alberto Flores wrote:
The way I did was to override the backing components of the struts tags. I added logic there to simple control which template is used (depending on the role). I felt that I could use the Components (and Tag objects) as controllers for this purpose.

I've taken a similar approach. The Component and/or component templates check the mode/role/etc from the context and/or parameters. With this approach, I can create one page that contains, say a form, and the mode of the form (view/edit/edit) and buttons depend on the context. It's not generic though.

I also use Tiles and substitute tiles based on the context (eg. role/theme). The Tiles Kaolin project aims to provide a consistent solution to this common problem:

http://wiki.apache.org/incubator/KaolinProposal


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to