Problem with XHTML, Facelets and Chrome

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with XHTML, Facelets and Chrome

by Joao Monteiro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,
 
I am facing an issue while working with XHTML, Facelets, Chrome and ISO-8859-1. When I have a special character like 'ç' it is rendered to 'ç' and because of that Chrome (and other browsers that uses webkit's engine like Safari) complains about
"Entity 'ccedil' not defined". After some "googling" I found that occurs because Webkit is very strict about XML Entities. 'ç' should be coded as 'ç'. So i have changed every 'ç' to 'ç' in my xhtml files but when
I run it on Tomcat, 'ç' is rendered back to 'ç'. If I open the same xhtml directly pointing Chrome to file:///somefile.xhtml it is parsed without erros on encoding.
 
This make me believe that Facelet is changing my character codes.
Is it right?  How can I solve this problem? I really want to understand this!
 
Thanks!
 
My xhtml header:
 

<?

xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xhtml 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:s=http://jboss.com/products/seam/taglib
xmlns:ui=http://java.sun.com/jsf/facelets
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">

Short example:

<

h:outputText value="Endereço"
/> or <h:outputText value="Endere&#231;o" />

are rendered to:

Endere&ccedil;o

and apparently it should be rendered to:

Endere&#231;o  


Re: Problem with XHTML, Facelets and Chrome

by Andrew Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

<h:outputText value="Endereço" escape="false" />

2009/10/27 João Bosco Monteiro <joaobmonteiro@...>:
> <h:outputText value="Endereço" />

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...