also noticed in the
public class MenuViewPreparer implements ViewPreparer{
have a method:
public void execute(TilesRequestContext tilesContext,AttributeContext
attributeContext) {
log.info("Tiles Preparer called .......");
in this I can see my tiles definition etc.
is it ok to put the code for modifying the attributeContext in
MenuViewPreparer?
Is there any other interface where I can get the attribute context?
Thanks
On Fri, Sep 9, 2011 at 4:09 PM, Muneer Malik <[email protected]> wrote:
> For the following code:
>
> ServletContext servletContext = ServletActionContext.getServletContext();
> TilesContainer container = TilesAccess.getContainer(servletContext);
> AttributeContext attributeContext =
> container.getAttributeContext(request,response);
>
>
> my attribute context is null, I don't see any current tiles definitions
>
> would you know why?
>
> also at this time, viewPreparer has not been called but variable location
> has the correct tiles name.
>
> Thanks
>
> On Fri, Sep 9, 2011 at 2:41 PM, Muneer Malik <[email protected]> wrote:
>
>> ok - I was not sure if they were updated
>> since the webpages are not updated as well.
>>
>> ok - I will look at the java docs.
>>
>> I appreciate all your help here.
>>
>> Thanking You,
>> Muneer
>>
>>
>> On Fri, Sep 9, 2011 at 2:27 PM, Antonio Petrelli <
>> [email protected]> wrote:
>>
>>> 2011/9/9 Muneer Malik <[email protected]>
>>>
>>>> what is the difference between
>>>>
>>>> putAttribute and setTemplateAttribute?
>>>>
>>>
>>> Please, before asking such simple questions, read javadocs:
>>>
>>> http://tiles.apache.org/2.2/framework/apidocs/org/apache/tiles/BasicAttributeContext.html#setTemplateAttribute(org.apache.tiles.Attribute)
>>>
>>>
>>> http://tiles.apache.org/2.2/framework/apidocs/org/apache/tiles/BasicAttributeContext.html#putAttribute(java.lang.String,
>>> org.apache.tiles.Attribute)
>>>
>>> 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.
>>
>
>
>
> --
> 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.
>
--
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.