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 AB7C91154F for ; Tue, 22 Apr 2014 08:45:09 +0000 (UTC) Received: (qmail 49102 invoked by uid 500); 22 Apr 2014 08:45:07 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 48508 invoked by uid 500); 22 Apr 2014 08:44:58 -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 48473 invoked by uid 99); 22 Apr 2014 08:44:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 08:44:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [212.82.99.235] (HELO nm4-vm8.bt.bullet.mail.ir2.yahoo.com) (212.82.99.235) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 08:44:48 +0000 Received: from [212.82.98.41] by nm4.bt.bullet.mail.ir2.yahoo.com with NNFMP; 22 Apr 2014 08:44:25 -0000 Received: from [212.82.98.38] by tm2.bt.bullet.mail.ir2.yahoo.com with NNFMP; 22 Apr 2014 08:44:25 -0000 Received: from [127.0.0.1] by omp1007.bt.mail.ir2.yahoo.com with NNFMP; 22 Apr 2014 08:44:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 768845.81295.bm@omp1007.bt.mail.ir2.yahoo.com Received: (qmail 13514 invoked by uid 60001); 22 Apr 2014 08:37:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=s1024; t=1398155865; bh=TwubX72BK83LAc16XdYZcjP6hj5/eSqUaH+RKqMFqi8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wh9t4XnWqk9aLCRamv6XCusCpYWehctibWEauJszb1nLuunqPoysLtADz8yB7ANyZn3dc0hT0HVjslfMzCzrIViTAn+hY4+Ia+Yt5RnaJPr5I/SURUbHZpaUb3sND/tigkdTsNaXRF+397txtY+FjnZRy5pMuXNrLC9ZCzBrhAk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bvzEpb9BNiEnHptsl7diyDKDA/d6Exj038J0USvjNpSD36o4XfTPUJbSXpJMMCJFmE3NZGopGHvY+D8X31SkUui9FXFBQ1xZ7hqYyPkRou9VbWaftC5Egp8jbs/slo8NX3bVTuOuAB0BVH4c42IHmbV/jC/IEGXriuChcbhY11c=; X-YMail-OSG: g3qKgtMVM1mHbwLYl.ujmBmD9I3g9Ti6tU1fNh8QnkUGi8r WuhrUMgnEXneVInBiriTEph2IAku8Nh2vX.fpFZnBBTtxhuNlrcVwYywX6XY brG1q9yuUGURn_rSu3GvCxGER5qywlHxfPEUswbkmhpEQmW8BtQeHSLQuprr b4gRKD1E8Ppy7aAx8vNQoCK67rQFHB3_9Iy.jZ2lZG9c8AaydEclZqEeE6nS _8c9BIOmccAyjnWhYB7uZAh6ojCQYPxBobVV7tvU9Wo8ad7gVlaqJJNnUYE4 .AbNRypzrMbU16iZW3Ef77I2sBFkyCn.gwbbiF65nhe5xGrV.s3nnAKbe_Sd f17jllNkrbmhCEq72VJR0DuZIa6CrO5hZCq0CB6DPYRiff2QgPqRks_kSGH4 mLmt.E.MwOx1P2n6_9Z0JuIa2MAadfSZ9fu0yp4Z6c1fPMRFfa7Lr1uIxA5e RW91Pjg53fZt8gp2bD8yAZs0FejOxZ.XVOY_GwV53McltGPsj4p6H3AAJMkC Qp1eVd1HlVl6BN67QBFvKtDmj9jbk66k2VcA7mmtwI7NlOQUatxT4IS93s58 Duu.kxWiPVNATfKw7GPQArR5cXOBhPMlskfpROK6leVQhtF6uVDQ3pgEgOOF ZCP3Bjhpc5BcznFpT_g-- Received: from [194.9.188.22] by web87804.mail.ir2.yahoo.com via HTTP; Tue, 22 Apr 2014 09:37:45 BST X-Rocket-MIMEInfo: 002.001,SGkgTHVrYXN6LApUaGF0J3MgYSBncmVhdCBzb2x1dGlvbiwgdGhhbmtzIGZvciB5b3VyIGFzc2lzdGFuY2UuCgpSZWdhcmRzClN0ZXZlCgoKCgotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tCkZyb206IEx1a2FzeiBMZW5hcnQgPGx1a2FzemxlbmFydEBhcGFjaGUub3JnPgpUbzogU3RydXRzIFVzZXJzIE1haWxpbmcgTGlzdCA8dXNlckBzdHJ1dHMuYXBhY2hlLm9yZz47IFN0dWFydCBKYW1lcyA8cmF2ZW5ob2xtQGJ0aW50ZXJuZXQuY29tPgpDYzogClNlbnQ6IE1vbmRheSwgMTQgQXByaWwgMjAxNCwgMjABMAEBAQE- X-Mailer: YahooMailWebService/0.8.185.657 References: <1397044856.17303.YahooMailNeo@web87801.mail.ir2.yahoo.com> <1397055203.65024.YahooMailNeo@web87806.mail.ir2.yahoo.com> Message-ID: <1398155865.18888.YahooMailNeo@web87804.mail.ir2.yahoo.com> Date: Tue, 22 Apr 2014 09:37:45 +0100 (BST) From: Stuart James Reply-To: Stuart James Subject: Re: I would like help with the template theme changes in 2.3.16.1 To: Struts Users Mailing List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Lukasz,=0AThat's a great solution, thanks for your assistance.=0A=0ARega= rds=0ASteve=0A=0A=0A=0A=0A----- Original Message -----=0AFrom: Lukasz Lenar= t =0ATo: Struts Users Mailing List ; Stuart James =0ACc: =0ASent: Monday, 1= 4 April 2014, 20:03=0ASubject: Re: I would like help with the template them= e changes in 2.3.16.1=0A=0AI have posted the solution, you can simple add m= issing templates by=0Adefining them under 'webapp/jquery/template'=0A=0A=0A= Regards=0A-- =0A=C5=81ukasz=0A+ 48 606 323 122 http://www.lenart.org.pl/=0A= =0A2014-04-09 16:53 GMT+02:00 Stuart James :=0A> = Hi Lukasz,=0A> I have raised an issue=0A> https://issues.apache.org/jira/br= owse/WW-4319=0A> and included an demo app.=0A> Please let me know if there = are any problems with the demo.=0A>=0A> Thanks=0A> Steve=0A> ----- Original= Message -----=0A> From: Lukasz Lenart =0A> To: St= ruts Users Mailing List ; Stuart James =0A> Cc:=0A> Sent: Wednesday, 9 April 2014, 13:11=0A> Subject= : Re: I would like help with the template theme changes in 2.3.16.1=0A>=0A>= And register an issue?=0A>=0A> 2014-04-09 14:10 GMT+02:00 Lukasz Lenart :=0A>> Can you prepare a small Maven based demo app?= =0A>>=0A>> 2014-04-09 14:00 GMT+02:00 Stuart James :=0A>>> Hi,=0A>>> I am developing an application which has been predomina= ntly written with Struts2 version 2.3.15.3 and the struts2-jquery-plugin ve= rsion 3.6.1.=0A>>> I have recently upgraded to Struts2 version 2.3.16.1 and= struts2-jquery-plugin version 3.7.0.=0A>>> The application has used the cs= s_xhtml theme throughout, defined in struts.xml.=0A>>> Since the upgrade, t= he HTML markup of the struts2-jquery-plugin (sj:) components has been adver= sly affected.=0A>>> I have debugged the application and found that the issu= e is caused by the changes made to themes under WW-4145.=0A>>> The situatio= n appears to be this:=0A>>> The struts2-jquery-plugin has implemented custo= m tags for their components and these classes will return the value of 'jqu= ery' in response to the getTheme() method. They do appear to correctly stor= e a 'parentTheme' parameter with the correct value (in my case from the par= ent form element) of 'css_xhtml'.=0A>>> The struts2-jquery-plugin custom te= mplates are successfully found on the templates/jquery path, but some of th= em contain 'include' statements, for example, the datepicker.ftl contains t= he following snippet:=0A>>>=0A>>>=C2=A0 <#if parameters.parentTheme =3D=3D = 'css_xhtml'>=0A>>>=C2=A0 <#include "/${parameters.templateDir}/css_xhtml/co= ntrolheader.ftl" />=0A>>>=C2=A0 =0A>>>=0A>>> So, at this point, all i= s well, the correct controlheader.ftl template for the css_xhtml theme is f= ound and included, however this template (now) contains the following inclu= de:=0A>>>=0A>>> <#include "/${parameters.templateDir}/${parameters.expandTh= eme}/controlheader-core.ftl">=0A>>>=0A>>> And this is where it starts to go= wrong. The ${parameters.expandTheme} resolves to '~~~jquery' and, after re= ading the WW-4145 change info, I understand that this will cause the ThemeM= anager to load the template from the parent theme as defined in the theme.p= roperties file. This, in the case of the struts2-jquery-plugin, is defiend = as 'xhtml' and NOT 'css_xhtml' as discovered from the parent form component= . Consequently, the wrong controlheader-core.ftl template is included, and = the resulting HTML includes incorrect and tags which ultimately b= reak the page.=0A>>>=0A>>> Other than hacking the templates, I cannot see a= satisfactory way of resolving this problem, so any assistance would be gra= tefully received.=0A>>>=0A>>> Thanks=0A>>> Steve=0A>>>=0A>>> --------------= -------------------------------------------------------=0A>>> To unsubscrib= e, e-mail: user-unsubscribe@struts.apache.org=0A>>> For additional commands= , e-mail: user-help@struts.apache.org=0A>>>=0A>=0A> -----------------------= ----------------------------------------------=0A> To unsubscribe, e-mail: = user-unsubscribe@struts.apache.org=0A> For additional commands, e-mail: use= r-help@struts.apache.org=0A>=0A> ------------------------------------------= ---------------------------=0A> To unsubscribe, e-mail: user-unsubscribe@st= ruts.apache.org=0A> For additional commands, e-mail: user-help@struts.apach= e.org=0A>=0A=0A------------------------------------------------------------= ---------=0ATo unsubscribe, e-mail: user-unsubscribe@struts.apache.org=0AFo= r 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