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 Fri, 09 Sep 2011 18:14:49 GMT
The name is "/layouts/my_layout.jsp"
About the rest, probably you have some compilation/runtime problem. You are
not mixing Tiles versions, aren't you?

Antonio

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

> I cannot resolve the following:
>
> TilesAttributeContext attributeContext = container.getAttributeContext(request,
>         response);
>
>
> it cannot find the TilesAttributeContext
>
>

> from the tiles 2.2.2 (GA)
>
>
> Thanks
>
>
> On Fri, Sep 9, 2011 at 11:40 AM, Muneer Malik <tutti786@gmail.com> wrote:
>
>> I am also getting the following error, please see attached image.
>>
>> can you please give some suggestion, it seems the method is deprecated.
>>
>>
>> I also get the following error;
>>
>> for the below code;
>> MutableTilesContainer container = (MutableTilesContainer)
>> 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);
>>
>>
>> java.lang.Error: Unresolved compilation problem:
>> 	Type mismatch: cannot convert from TilesContainer to MutableTilesContainer
>>
>> 	net.polymorphic.emr.login.AuthenticationInterceptor.intercept(AuthenticationInterceptor.java:70)
>> 	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
>> 	org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
>> 	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:498)
>> 	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>> 	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
>>
>>
>> Help would be appreciated.
>>
>> Thanks
>>
>>
>> On Fri, Sep 9, 2011 at 11:29 AM, Muneer Malik <tutti786@gmail.com> wrote:
>>
>>> what is the name of the definition?
>>>
>>> in the below code:
>>>
>>> Definition mobile = new Definition();
>>> mobile.setName("/layouts/my_layout.jsp");
>>>  mobile.putAttribute("body", new Attribute("/tiles/body.jsp"));
>>> container.register(mobile, request, response);
>>>
>>> the definition would be mobile, Is that correct?
>>>
>>>
>>> Thanks
>>>
>>>
>>>  On Fri, Sep 9, 2011 at 10:14 AM, Antonio Petrelli <
>>> antonio.petrelli@gmail.com> wrote:
>>>
>>>> 2011/9/9 Muneer Malik <tutti786@gmail.com>
>>>>
>>>>> it will overwrite the
>>>>>
>>>>> <result type="tiles" name="input">addHeparinMedication.tiles</result>
>>>>> addHeparinMedication.tiles??
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>> No, it will overwrite the possible definition that has the same name of
>>>> the created one.
>>>> Probably what you want to accomplish is Struts-related, not Tiles'. For
>>>> example, adding another result.
>>>>
>>>> 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.
>

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