You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Björn Pewe <bj...@leanon.se> on 2002/12/17 16:31:41 UTC

TilesDefinition name in associated controller

Hello!
We use tiles in a project and we really appreciate how powerful tiles can
be, but we have bit problem...
I have a tile that outputs dynamic data into a html table. The table has
links on each columnheader to allow sorting of differentThis table can be
placed at different locations on the site. The link is pointing to an Action
that performs the sort and then forwards to the tile def. 
Depending on were the tile is inserted on the site, the action needs to know
to which definition to forward to.
Anyone have any ideas on a solution?
Thanks, Björn

Re: TilesDefinition name in associated controller

Posted by Cedric Dumoulin <ce...@apache.org>.
  It is not possible to retrieve the name of the definition within a 
tile. However, there is a simple solution:
 add to your tile an attribute specifying the name ;-)

   Hope this help,

        Cedric

Björn Pewe wrote:

>Hello!
>We use tiles in a project and we really appreciate how powerful tiles can
>be, but we have bit problem...
>I have a tile that outputs dynamic data into a html table. The table has
>links on each columnheader to allow sorting of differentThis table can be
>placed at different locations on the site. The link is pointing to an Action
>that performs the sort and then forwards to the tile def. 
>Depending on were the tile is inserted on the site, the action needs to know
>to which definition to forward to.
>Anyone have any ideas on a solution?
>Thanks, Björn
>
>  
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>