tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: MutableTilesContainer
Date Sat, 10 Sep 2011 11:42:22 GMT
HEY STOP you are opening too many threads!
Please ask one question per thread, I'm starting to get mad :-D

Thanks
Antonio

2011/9/10 Muneer Malik <tutti786@gmail.com>

> I think if put the code for changing attributes in the viewPreparer - Is is
> too late since
> by this time Struts already know where it is going?
>
> I can see the attributeContext object correctly in viewPrepare
> implementation
> but cannot see via the container object.
>
> Your help would be appreciated.
>
> Thanks
>
>
> On Fri, Sep 9, 2011 at 4:52 PM, Muneer Malik <tutti786@gmail.com> wrote:
>
>> 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 <tutti786@gmail.com> 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 <tutti786@gmail.com> 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 <
>>>> antonio.petrelli@gmail.com> wrote:
>>>>
>>>>> 2011/9/9 Muneer Malik <tutti786@gmail.com>
>>>>>
>>>>>> 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
>>>> tutti786@gmail.com 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
>>> tutti786@gmail.com 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
>> tutti786@gmail.com 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
> tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.
>
>
> THANK YOU.
>

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