ok - thanks

I had to extend the ServletDispatcherResult and everything seems to be
working including the MutableTiles Container

now for the below code:


MutableTilesContainer container = TilesAccess.getContainer(
        request.getSession().getServletContext());
Definition definition = new Definition();
definition.setTemplate("/layouts/my_layout.jsp");
definition.putAttribute("body", new Attribute("/tiles/body.jsp");
container.register(definition, request, response);


do I need the container.render as well,since I get a blank page for the above?



Also Can a MutabletilesContainer and


TilesContainer container = TilesAccess.getContainer(servletContext);


reside together?


Thanks



On Fri, Sep 9, 2011 at 1:47 PM, Antonio Petrelli <[email protected]
> wrote:

> 2011/9/9 Muneer Malik <[email protected]>
>
>> I found out ..
>>
>> for :
>>
>> TilesAttributeContext attributeContext = container.startContext(request,
>>         response);
>>
>>
>> it is AttributeContext not TilesAttributeContext, believe this is incorrect 
>> on the webpage.
>>
>>
>> Did you see the screenshot? still researching why I would get a type 
>> mismatch?
>>
>>
> The docs seem to be outdated, however the AttributeContext class is the
> right substitute.
>
> Antonio
>



-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
[email protected] OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Reply via email to