Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14A3011AFE for ; Tue, 1 Jul 2014 18:31:18 +0000 (UTC) Received: (qmail 22312 invoked by uid 500); 1 Jul 2014 18:31:18 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 22262 invoked by uid 500); 1 Jul 2014 18:31:18 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 22251 invoked by uid 99); 1 Jul 2014 18:31:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 18:31:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul@intekon.com designates 207.8.156.30 as permitted sender) Received: from [207.8.156.30] (HELO internal.intekon.com) (207.8.156.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 18:31:15 +0000 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Content of variable not appearing in include fragment. From: Paul Spencer In-Reply-To: Date: Tue, 1 Jul 2014 14:30:52 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <259A1424-84C3-4D3B-BBF3-C0B0F703671C@intekon.com> References: To: MyFaces Discussion X-Virus-Checked: Checked by ClamAV on apache.org Leonardo, I changed to = and I am = now seeing the desired results. Thank you. =20 On Jul 1, 2014, at 1:53 PM, Leonardo Uribe wrote: > Hi >=20 > Use ui:decorate instead ui:include in the parts you need an ui:define > to be taken into account when the templates are resolved. >=20 > regards, >=20 > Leonardo Uribe >=20 > 2014-07-01 9:29 GMT-05:00 Paul Spencer : >> Using MyFaces 2.2.3 >>=20 >> The intent is for the contents of the variable page_title = to appear both in the browser title bar and in the page=92s content = header area while using a common template across many pages. The = content header area is displayed in the of the page and is there = to give each page a consistent look. >>=20 >> In the example below, =93My Page1 Title=94 appears as the title of = the page1.jsp, but not in the header content of the page. >>=20 >> Why does the variable page_title evaluate to blank/null = in includes pages? >>=20 >> Is there a better way to accomplish the intended behavior? >>=20 >>=20 >> *** >> * Page1.xhtml >> *** >> >> >> > xmlns:f=3D"http://java.sun.com/jsf/core" >> xmlns:h=3D"http://java.sun.com/jsf/html" >> xmlns:ui=3D"http://java.sun.com/jsf/facelets"> >> >> >> My Page1 = Title >> >> >>

Page 1

>>
>>
>>=20 >>
>>
>> >>=20 >>=20 >>=20 >> *** >> * commonLayout.xhtml >> *** >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> > xmlns:h=3D"http://java.sun.com/jsf/html" >> xmlns:ui=3D"http://java.sun.com/jsf/facelets"> >>=20 >> >> >> >> >> <ui:insert name=3D"page_title" /> >> >>=20 >> >> >>
>>
>> >> >> >>
>>
>>
>> >> >> >>
>>=20 >>
>> >> >> >>
>> >>
>>
>> >> >> >>
>>=20 >>
>>
>> >>=20 >> *** >> * commonHeader.xhtml >> *** >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> > xmlns:ui=3D"http://java.sun.com/jsf/facelets"> >> >> >>

>> >>

>>
>> >> >>=20 >>=20 >> Paul Spencer >>=20