]
Karsten Wutzke commented on RF-7249:
------------------------------------
This bug seems to have reappeared for version 3.3.3. See here:
. Please have a look at it.
rich:page dynamic pageTitle impossible with facelets page template
and <title><ui:insert name="title" /></title>
----------------------------------------------------------------------------------------------------------------
Key: RF-7249
URL:
https://issues.jboss.org/browse/RF-7249
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 3.3.1
Environment: Jboss4.2.2/jdk6/richfaces 3.3.1
Reporter: Adrien Adrien
Assignee: Mikhail Vitenkov
Fix For: 3.3.2.CR1
Time Spent: 6 hours
Remaining Estimate: 0 minutes
Impossible to user <ui:insert name="title" /></title> with
rich:page, title is generated twice, first page rich:page (empty) second py <f:facet
name="pageHeader">.
Maybe a solution if titlePage is not define in rich:page, then it will be not generated,
then the title generated in <f:facet name="pageHeader"> is used.
>>>
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232920#...
I m just start to migrate my application to use rich:page.
I have a page templating with facelets, title is a dynamic value for the template.
Before i used :
Code:
<title><ui:insert name="title" /></title>
to insert title page.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:ui="http://java.sun.com/jsf/facelets"
>
<head>
<title><ui:insert name="title" /></title>
<ui:insert name="keywords" />
<ui:insert name="description" />
<ui:include src="/WEB-INF/jspf/commons/metaspublic.xhtml" />
</head>
But with rich:page it s seem to be impossible to use ui:insert for pageTitle like that:
Code:
<rich:page
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j" markupType="xhtml"
contentType="text/html" theme="#{prefs.layout.theme}"
width="#{prefs.layout.width}"
sidebarWidth="#{prefs.layout.sidebarWidth}"
sidebarPosition="#{prefs.layout.position}" >
<f:view contentType="text/html" > <!-- safari compatibility -->
<f:facet name="pageHeader">
<h:panelGroup>
<title><ui:insert name="title" /></title>
<ui:insert name="keywords" />
<ui:insert name="description" />
<ui:include src="/WEB-INF/jspf/commons/metaspublic.xhtml" />
<script type="text/javascript"
src="/pub/javascript/norightbutton.js"></script>
</h:panelGroup>
</f:facet>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: