浏览 544 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (11) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
时间:2008-03-31 关键字: seam jsf ejb
com.sun.facelets.FaceletViewHandler handleRenderException 2、Jboss下面内嵌了Tomcat容器,修改/default/deploy/jboss-web.deployer/server.xml,在<Connector port="8080" 中增加URIEncoding="UTF-8",问题解决。
特征2:JSF页面中有中文字段或标签,出现错误信息: Error Parsing /CustomerList.xhtml: Error Traced[line: 21] Invalid byte 2 of 2-byte UTF-8 sequence. 处理方法:设置该页面的 文本文件编码 为UTF-8,在重新输入中文标签或字段。问题解决。
第二种方法有些勉强,指标不治本,暂时没有找到更好的方法,找到后在告诉大家。 也希望大家能提供更多的错误信息,及解决方法。
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
| 返回顶楼 | |
|
时间:2008-04-01
在二中方法中你可以利用以下方式进行解决:定义jsf为gbk格式
<?xml version="1.0" encoding="gbk"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
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">
<head>
<title>SEAM</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
</head>
<body>
中文解决方式
</body>
</html>
注意:<?xml version="1.0" encoding="gbk"?> <meta http-equiv="Content-Type" content="text/html; charset=GBK" /> |
|
| 返回顶楼 | |
|
时间:2008-04-03
楼上的是正解,已经在项目中使用。
|
|
| 返回顶楼 | |
|
时间:2008-04-24
我的解决方法供你参考。http://xxqn.javaeye.com/blog/182442
|
|
| 返回顶楼 | |





