This content has been marked as final.
Show 4 replies
-
1. Re: Change default encoding pages
gavin.king Mar 8, 2008 4:05 AM (in response to mcsous)AFAIK, these are the things that are needed:
- <?xml version='1.0' encoding='iso-8859-1'?>
- <f:view encoding="iso-8859-1"/>
- <web:character-encoding-filter encoding="iso-8859-1" override-client="true" url-pattern="*.seam"/>
Though the last one may not be needed...
-
2. Re: Change default encoding pages
mcsous Mar 8, 2008 6:01 AM (in response to mcsous)Hi Gavin,
The problem is not iso enconding, but application/xhtml xml the content type. This issue, I think, that is something in Facelets and JSF 1.2. But the question is, where?
-
3. Re: Change default encoding pages
christian.bauer Mar 8, 2008 6:09 AM (in response to mcsous)Put this:
<f:view contentType="text/html"/>
before <head> and after <html> in your XHTML template. Yes, it does nothing except tell the Facelets/JSf engine to generate text/html as the content type of the Faces servlet response.
-
4. Re: Change default encoding pages
martin3.waldensianspirit.gmail.com Mar 30, 2008 2:38 PM (in response to mcsous)Thanks Christian,
First person I found that talked about the
<f:view contentType="text/html"/>
up to date and where and that it simply terminates. I needed it desperately to solve moving from FF 2.x to Firefox 3 beta 4 and serve xhtml with svg. Needed xhtml as... <html 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" xmlns:s="http://jboss.com/products/seam/taglib"> <f:view contentType="application/xhtml+xml"/> <head> ...
This made seam 2.1.0.GA, richfaces-ui-3.1.4.GA, facelets-1.1.14, glassfish b58g work with FF 3 beta 4 where the xhtml is mixed richfaces and svg with FF 3's filter implementation.