This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Character Encoding defect when using Visual Web JSF & Portal Pack 3.0 | ||
---|---|---|---|
Product: | contrib | Reporter: | liufuyang <liufuyang> |
Component: | Portalpack | Assignee: | Satyaranjan D <satyaranjan> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Picture of JSF-Portlet-Encoding-Issue
Picture of JSF-Portlet-Encoding-Issue-ide-design Picture of JSF-Portlet-Encoding-Issue-ide-jsp |
Description
liufuyang
2009-03-03 04:28:41 UTC
More details on this: The jsp file of the Visual Web JSF porject: <?xml version="1.0" encoding="UTF-8"?> <!-- Document : JSFPortletPage1 Created on : Feb 27, 2009, 4:19:02 PM Author : Freddy.Liu --> <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:p="http://java.sun.com/jsf/portlet/components" xmlns:webuijsf="http://www.sun.com/webui/webuijsf"> <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> <f:view> <p:portletPage> <div style="-rave-layout: grid; position: relative; height: 400px; width: 400px;"> <webuijsf:themeLinks binding="#{JSFPortletPage1.themeLinks1}" id="themeLinks1" parseOnLoad="false" webuiAll="true"/> <webuijsf:form binding="#{JSFPortletPage1.form1}" id="form1"> <webuijsf:staticText id="staticText1" style="position: absolute; left: 144px; top: 96px" text="测试中文1"/> 测试中文2 <h:inputText id="textField1" style="position: absolute; left: 144px; top: 216px" value="测试中文3"/> </webuijsf:form> </div> </p:portletPage> </f:view> </jsp:root> **************** The result on the page is like: "????????????1 测试中文2 测试中文3" And you can see that only <webuijsf:staticText failed to encoding text to UTF-8 on the page, while standard component and the text written in jsp file both works ok. Created attachment 77599 [details]
Picture of JSF-Portlet-Encoding-Issue
Created attachment 77600 [details]
Picture of JSF-Portlet-Encoding-Issue-ide-design
Created attachment 77601 [details]
Picture of JSF-Portlet-Encoding-Issue-ide-jsp
Can you please try the same thing with a Woodstock web application (without portlet) ? If the behavior is same then we need to file a bug on woodstock component. https://woodstock.dev.java.net Without portal is OK. And even using OpenPortal Container there is NO problem. Just when Woodstock used in the Webspace 10 (liferay portal) the problem shows up. |