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

#20535

xuzhike
Participant

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

prettyfaces-jsf2-3.1.1-20101216.064100-55.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/fireFox: http://localhost:8080/echaoshi/fileUpload/%20%87%F6?jsfParam=%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B62

Bean log:

09:40:40,656 INFO TestView:41 – TestView.setJsfParam = 上传文件2

09:40:40,656 INFO TestView:51 – TestView.setQuery1 =

????

URL incorrect, <query-param value correct for backendBean