Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E194710BC9 for ; Sun, 15 Dec 2013 13:21:30 +0000 (UTC) Received: (qmail 32768 invoked by uid 500); 15 Dec 2013 13:21:27 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 32245 invoked by uid 500); 15 Dec 2013 13:21:23 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 32232 invoked by uid 99); 15 Dec 2013 13:21:21 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 13:21:21 +0000 Received: from localhost (HELO mail-pa0-f46.google.com) (127.0.0.1) (smtp-auth username lukaszlenart, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 13:21:20 +0000 Received: by mail-pa0-f46.google.com with SMTP id kl14so1830659pab.19 for ; Sun, 15 Dec 2013 05:21:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=8zPs6yPf7Sdxk50WOCmjS96zfD85pFENoQUYhGM0c8M=; b=ZVCHNxTInWrGzsHF83Kl0kEJoRZg1eGY7/9mujuNY6zY6gXLlr3OF2PMmO5BURf3TQ jA1H4kWnzMxx+30n0ymrS3+VmUWc+3aXTo1AwI2J9cNxeCS0+HUAy3cg/tvOBeGYz1TN 0qLLXpFs55RgoHpa5Tr6fWoQx+NYyEHMjrTk3gnOmlR88LWL3vbe7ZHLxyatZFICL253 IgPCvYNmYX+iGR+ZNXmqlLZlti6ph5BTCc7lcCWwr2eak/9bTcR+CTuwK+gdVN7hZWUd bSuHmzn2cqaAJmwcL9FkhOWyqdn+vFyIujTkzVTLwCcdzovrgynDb/6C6TWUDpd1h+aJ Y0uQ== X-Received: by 10.68.189.165 with SMTP id gj5mr14316989pbc.111.1387113680207; Sun, 15 Dec 2013 05:21:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.229.170 with HTTP; Sun, 15 Dec 2013 05:21:00 -0800 (PST) In-Reply-To: <1386841746.61601.YahooMailNeo@web171403.mail.ir2.yahoo.com> References: <1386841746.61601.YahooMailNeo@web171403.mail.ir2.yahoo.com> From: Lukasz Lenart Date: Sun, 15 Dec 2013 14:21:00 +0100 Message-ID: Subject: Re: Theme problem after update to 2.3.16 -- loading parent theme templates? To: Struts Users Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Theme must be accessible via classpath but I think I found the problem and with next version it'd be possible to place it under webapp folder as well. Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/12/12 Chris : > Hi, > struts-2.3.16-all.zip 65,6 Mo (only ) > struts-2.3.15.3-all.zip 83,2 Mo > Chris > > One more thing: everything editable will be moved to struts-site (i.e. > the new plugin.md) to don't mess with things generated by Maven > So the project source code will contain only source code and JavaDocs, > the rest will be outside it. > Lukasz Lenart > > > > > Le Mercredi 11 d=C3=A9cembre 2013 22h29, Lukasz Lenart a =C3=A9crit : > > With 2.3.16 a proper theme inheritance mechanism was introduced - you > don't have copy the whole theme to extend it, just override file you > need, the rest will be loaded from parent theme and parent and so on. > > The docs were updated to include information about 'expandTheme' > variable which should be used when you want to use that mechanism > inside your custom template. > > http://struts.apache.org/release/2.3.x/docs/extending-themes.html > https://issues.apache.org/jira/browse/WW-4145 > > > Regards > -- > =C5=81ukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/12/11 rgm : >> I'm getting this error from my JBoss 7 application server: >> >> ERROR [freemarker.runtime] (http--0.0.0.0-8443-3) Template processing >> error: "Error reading included file >> /mx/themes/~~~rgm/dynamic-attributes.ftl": freemarker.temp >> late.TemplateException: Error reading included file >> /mx/themes/~~~rgm/dynamic-attributes.ftl >> at freemarker.core.Include.accept(Include.java:167) >> [freemarker.jar:2.3.19] >> at freemarker.core.Environment.visit(Environment.java:221) >> [freemarker.jar:2.3.19] >> ---snip--- >> >> I have a theme called "rgm" in a directory called mx/themes: >> >> $ ls -1d mx/themes/* >> mx/themes/archive >> mx/themes/css_xhtml >> mx/themes/html5 >> mx/themes/rgm >> mx/themes/simple >> mx/themes/xhtml >> >> I've updated my copies of xhtml, css_xhtml, and simple themes from here: >> ./struts-2.3.16/src/core/src/main/resources/template/* >> >> My "rgm" theme has a theme.properties file with "parent =3D css_xhtml", = which >> itself uses parent =3D xhtml, which itself uses parent =3D simple. >> >> The "rgm" theme does not include dynamic-attributes.ftl, but the "parent= " >> chain back to "simple" does. I was under the impression that because I = had >> a "theme.properties" declaring a parent that I didn't need to include ev= ery >> file in my theme? I've read "Extending Themes" document carefully. I h= ad >> no trouble when using Struts 2.3.15.3. >> >> My struts.xml has these constants: >> >> >> >> Has anyone else successfully extended a theme using Struts 2.3.16 on JBo= ss >> 7? What am I missing? >> >> Sincerely, >> rgm > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org