Re: bad encoding for f:param value in pretty-config

Splash Forums PrettyFaces Users bad encoding for f:param value in pretty-config Re: bad encoding for f:param value in pretty-config

#20546

xuzhike
Participant

Hey, Christian, here is the testing result:

setting: tomcat server.xml: URIEncoding=”UTF-8″;

prettyfaces-jsf2-3.1.1-20110116.132021-65.jar


test 1

xhtml:

<pretty:link mappingId=”fileUpload”>

<f:param value=”上传文件” />

<f:param name=”jsfParam” value=”上传文件2″ />上传文件

</pretty:link>

pretty-config.xml

<url-mapping id=”fileUpload”>

<pattern>/fileUpload/#{query1:testView.query1}</pattern>

<view-id>/ui/test/fileUpload.xhtml</view-id>

<query-param name=”jsfParam”> #{testView.jsfParam} </query-param>

</url-mapping>

test result:

URL: IE: http://localhost:9090/echaoshi/fileUpload/%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6?jsfParam=%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B62

FireFox: correct

backend bean: —- correct, great.

22:49:15,281 INFO TestView:47 – TestView.setQuery1 = 上传文件

22:49:15,281 INFO TestView:37 – TestView.setJsfParam = 上传文件2