|
Well, I've also tested those issues in current version demo site, and it gave me the same errors.
Is that becuase you simply didn't concern about those issues in demos? What I've tested in Appfuse-jsf demo was not the encoding problem. The error occurs in the following situation; "Edit Profile" once and save it, and then click the "Edit Profile" again. It gives the error page. In case of equinox, I put following lines to web.xml. However, it didn't work. <filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> ... <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>*.html</url-pattern> </filter-mapping> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping> I using MYSQL for Database and its default character set is UTF-8. Correct, the demo site hasn't been updated to match the code in CVS. So most of your bugs are valid - but I don't know when I'll have time to fix them. If you figure out solutions, please let me know.
For the JSF encoding problem, I found an answer.
In faces-config.xml, set the <default-locale> element of the <locale-config> according to your needs. For example, I set the value as "ko". <faces-config> <!-- Spring VariableResolver for JSF --> <application> <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver> <locale-config> <default-locale>ko</default-locale> <supported-locale>en</supported-locale> <supported-locale>es</supported-locale> </locale-config> <message-bundle>messages</message-bundle> </application> For the displaytag's export Unicode-encoding problem, I am still struggling to find an answer. Anyone who knows how to export foreign language using displaytag, please give me an answer. And one more, Is JSF having a hard dependency of JWSDP or jsr173? cuz I get a maven error message when I try to deploy equinox-jsf 1.6. I guess that I've made quite many useless threads in this sites. I apologize my poor English and poor knowledge. And I thank everyone who helped and guided me to a right way. I wish that I can be one of those who are able to help these problems in one day. There was same problem in my equinox applcation
I've placed encodingFilter mappings on top of all filter mappings in web.xml and its solved http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String) Regards. Added Spring's CharacterEncodingFilter to solve foreign-language issues. Also added UTF-8 encoding indicators to JSPs.
|
|||||||||||||||||||||||||||||||||||||||
APF-250(moving the localeFilter's mapping after the encodingFilter's mapping). The Equinox issues you pointed out might be fixable by including Spring's CharacterEncodingFilter in your web.xml.