tiles-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stewart Cambridge" <stewart.cambri...@gmail.com>
Subject Re: Access definition name + other proeprties from jsp context
Date Wed, 16 Jul 2008 15:08:12 GMT
I understand what you are saying, and I appreciate your input Antonio.

Thank you.

2008/7/16 Antonio Petrelli <antonio.petrelli@gmail.com>:

> 2008/7/15 Stewart Cambridge <stewart.cambridge@gmail.com>:
> > private void render(TilesRequestContext request, String definitionName) {
> > ....
> > Definition definition = getDefinition(definitionName, request);
> > ...
> > request.getRequestScope().put( "definition", definition );
> > ...
> > }
>
> I don't think that it will be never added to Tiles, since your needs
> are so uncommon (IMHO).
> Anyway, if you want to take this path, I suggest you not to use the
> request scope, but the AttributeContext, so it will be present only in
> that portion of the request where the definition lives. And you can
> get it as a normal attribute, with <tiles:importAttribute> or
> <tiles:useAttribute>
>
> HTH
> Antonio
>

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