[ 
https://issues.apache.org/jira/browse/MYFACES-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916382#action_12916382
 ] 

Christian Kaltepoth commented on MYFACES-2931:
----------------------------------------------

Hi Leonardo,

I think you are right. I wasn't aware of the problems described in 
MYFACES-2753. I originally thought that inheriting template areas to files 
imported via <ui:include> would be some kind of nice-to-have feature that won't 
break anything and is spec compliant (as the spec doesn't explicitly include a 
statement regarding this). I see you did some intensive research on this topic! 
;-)

Keep up the good work! :-)

> Regression: Template areas get lost when using <ui:include> 
> ------------------------------------------------------------
>
>                 Key: MYFACES-2931
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2931
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.2
>            Reporter: Christian Kaltepoth
>
> Template areas specified with <ui:define> are not visible in files that the 
> template includes with <ui:include>.
> See the following example.
> The template:
> http://github.com/chkal/myfaces-tests/blob/vdl-insert-bug/src/main/webapp/template.xhtml
> The file included by the template:
> http://github.com/chkal/myfaces-tests/blob/vdl-insert-bug/src/main/webapp/header.xhtml
> The page using the template:
> http://github.com/chkal/myfaces-tests/blob/vdl-insert-bug/src/main/webapp/page.xhtml
> MyFaces 2.0.2 will show "Wrong Title" in the title div, which is the default 
> value of the <ui:insert>. MyFaces 2.0.1 and Mojarra will instead display 
> "Correct Title", which is the value definied in page.xhtml via <ui:define>.  
> You can download an example application demonstrating this issue here:
> http://github.com/chkal/myfaces-tests/archives/vdl-insert-bug
> Start the app with:
> mvn jetty:run
> The page is then available here:
> http://localhost:9090/

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to