-
1. Re: web:character-encoding-filter
pmuir Jun 13, 2007 8:19 AM (in response to dd_la_frime)It's there in 1.2.1.GA
-
2. Re: web:character-encoding-filter
dd_la_frime Jun 13, 2007 8:33 AM (in response to dd_la_frime)I don't understand what you're saying.
I'm already using seam 1.2.1 GA.
What I'm saying is that in the components.cml you have to add these lines "http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd" to use the we:character-encoding-filter and this attribute name doesn't exist in web-1.2.xsd.
Do I have to change the declaration of the xsd ?
Cheers.
Christophe -
3. Re: web:character-encoding-filter
pmuir Jun 13, 2007 8:42 AM (in response to dd_la_frime)It exists in the one I have (but as an element, not an attribute, which is correct)
pmuir@animal:~$ cat jboss-seam-1.2.1.GA/src/main/org/jboss/seam/web-1.2.xsd <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://jboss.com/products/seam/web" xmlns:web="http://jboss.com/products/seam/web" xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified"> <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/> ... <xs:element name="character-encoding-filter"> <xs:complexType mixed="true"> <xs:attributeGroup ref="components:attlist.component"/> <xs:attributeGroup ref="web:attlist.filter"/> <xs:attribute name="encoding" type="xs:string"/> <xs:attribute name="override-client" type="xs:boolean"/> </xs:complexType> </xs:element> ... </xs:schema>
-
4. Re: web:character-encoding-filter
dd_la_frime Jun 13, 2007 8:45 AM (in response to dd_la_frime)Ok me too I've got it in seam sources.
So how did you declare it in the components.xml ? You must not use the http one, right ?
Cheers. -
5. Re: web:character-encoding-filter
pmuir Jun 13, 2007 8:48 AM (in response to dd_la_frime)Make sure you have the namespace available - add to the element
xmlns:core="http://jboss.com/products/seam/core"
and then add configuration as needed -<web:character-encoding-filter encoding="UTF-16" override-client="true" url-pattern="*.seam"/>
-
6. Re: web:character-encoding-filter
pmuir Jun 13, 2007 8:49 AM (in response to dd_la_frime)N.B. This is all in the ref. manual
-
7. Re: web:character-encoding-filter
dd_la_frime Jun 13, 2007 8:52 AM (in response to dd_la_frime)you must have this one also : xmlns:web="http://jboss.com/products/seam/web"
Anyway it's still not working I can't have my french character [é|à|è|...]
Christophe -
8. Re: web:character-encoding-filter
pmuir Jun 13, 2007 8:54 AM (in response to dd_la_frime)oops sorry, bad copy and paste ;) Sorry, I'm no expert on i8ln. You can check whether the seam character encoding filter is running using your debugger...
-
9. Re: web:character-encoding-filter
nhpvti Aug 28, 2007 12:00 PM (in response to dd_la_frime)"dd_la_frime" wrote:
I can't override the character encoding of the client and the fact that I can't get my well formed html params in GET action.
According to the reference http://docs.jboss.com/seam/1.2.1.GA/reference/en/html_single/ character encoding filterSets the character encoding of submitted form data.
I suppose that this means POST requests and explanes why this filter doesn't work for the POST requests, am I right?
If yes how is it possible to override the character encoding for GET requests?