This content has been marked as final.
Show 4 replies
-
1. Re: Richfaces + Facelets + Chrome problem
ilya_shaikovsky Oct 25, 2010 5:46 AM (in response to spiritfox26)<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"> <div id="footer"> <p>© <h:outputText value="#{sessionBean.anioSistema}"/>, ITE - All rights reserved v <h:outputText value=" #{sessionBean.versionSistema}"/></p> </ui:composition>
That how it should looks like I guess.
With your current code as you could easilly check you have duplicated html-body structures and doctype declaration and that's breaks the page.
-
2. Re: Richfaces + Facelets + Chrome problem
spiritfox26 Oct 25, 2010 7:54 AM (in response to ilya_shaikovsky)Exactly, the problem (in chrome) this this line
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
if i remove this line, works fine!
-
3. Re: Richfaces + Facelets + Chrome problem
ilya_shaikovsky Oct 26, 2010 7:17 AM (in response to spiritfox26)I still recommend to use composition as I shown in snippet. In other case - html-body structure will still be duplicated and page will not be valid (you will get other errors in future)
P.S. using composition anything outside the composition like doctype - will be cut autmatically.
-
4. Re: Richfaces + Facelets + Chrome problem
spiritfox26 Oct 26, 2010 7:41 AM (in response to ilya_shaikovsky)Ok, i will keep your advice.