Return-Path: X-Original-To: apmail-tiles-users-archive@minotaur.apache.org Delivered-To: apmail-tiles-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EEAE78CAB for ; Fri, 9 Sep 2011 17:08:21 +0000 (UTC) Received: (qmail 90463 invoked by uid 500); 9 Sep 2011 17:08:21 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 90406 invoked by uid 500); 9 Sep 2011 17:08:21 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Received: (qmail 90398 invoked by uid 99); 9 Sep 2011 17:08:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 17:08:20 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tutti786@gmail.com designates 209.85.218.45 as permitted sender) Received: from [209.85.218.45] (HELO mail-yi0-f45.google.com) (209.85.218.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 17:08:14 +0000 Received: by yib2 with SMTP id 2so1152813yib.32 for ; Fri, 09 Sep 2011 10:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uTqhBySgp1qcZ4Pd2GRD6OUcztnuQmiDs/48iEs6Wmw=; b=HrCYdm+scYvb9tZx1nxnHdKXsZpQXJjZZwTgP3IvKfa61UOUa1aAH3Z+0NwDhkYROf tOvYbBJBYz5v95N3UD+83/eTmyAfYVpnpjWWmzORcclDVyAs+qfbK39AUsJmQCOYPPLT 6BCUcWF2Cfy5Z6VtRqx8+gA2p5EYzQKQZhioc= MIME-Version: 1.0 Received: by 10.231.26.132 with SMTP id e4mr2584903ibc.41.1315588073315; Fri, 09 Sep 2011 10:07:53 -0700 (PDT) Received: by 10.231.37.8 with HTTP; Fri, 9 Sep 2011 10:07:53 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Sep 2011 12:07:53 -0500 Message-ID: Subject: Re: MutableTilesContainer From: Muneer Malik To: Antonio Petrelli Cc: users@tiles.apache.org Content-Type: multipart/alternative; boundary=0015177413eec7dc3904ac85376f --0015177413eec7dc3904ac85376f Content-Type: text/plain; charset=UTF-8 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 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 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 >>> >>>> it will overwrite the >>>> >>>> addHeparinMedication.tiles >>>> 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. --0015177413eec7dc3904ac85376f--