Hi Sam:
Everything is now done through the container.
Try something like this:
TilesContainer container = TilesAccess.getContainer(context);
ComponentContext ctx = container.getComponentContext(req, res);
ComponentAttribute attr = ctx.getAttribute(name);
David
Stone, Sam wrote:
Using the API from Sep 2006 I was able to access externally an attribute
from a tiles definition as follows:
String sTilesDefName = (String) request.getAttribute("tile_name");
TilesContext tilesContext = new
ServletTilesContext(session.getServletContext(), request, response);
ComponentDefinition componentDefinition =
TilesUtil.getDefinition(sTilesDefName, tilesContext);
String sMyAtribute = (String)
componentDefinition.getAttribute("myAttribute");
I can't quite figure out how to do this using the current Tiles 2 API.
Sam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]