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.
Original status: 5-Cause Known; Suggested Status: NEW Original Target Release: thresher_dev; Suggested Target Milestone : TBD Description: 1. Open a project that was imported from Reef 2. Drop the Encoding component on a page 3. Component Error occurs with the following information: javax.faces.FacesException: javax.faces.el.PropertyNotFoundException: localeCharacterEncoding at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1367) at com.sun.jsfcl.renderer.EncodingRenderer.renderStart(EncodingRenderer.java:41) at com.sun.jsfcl.renderer.AbstractRenderer.encodeBegin(AbstractRenderer.java:135) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683) Caused by: javax.faces.el.PropertyNotFoundException: localeCharacterEncoding at com.sun.rave.jsfsupp.container.DesignTimePropertyResolver.getValue(DesignTimePropertyResolver.java:77) at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167) at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151) at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:178) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:159) at com.sun.jsfcl.component.EncodingComponent.getValue(EncodingComponent.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1359) ... 20 more Evaluation: It seems that when a Encoding component is dropped on a page it inserts the following tag: <j:encoding binding="#{Page1.encoding1}" value="#{ApplicationBean1.localeCharacterEncoding}"/> The value attribute of the j:encoding tag is bound to the ApplicationBean1's localeCharacterEncoding property. However in Reef the ApplicationBeans and any of it's super classes did not have that property and the project migration does not touch any of user's code such as ApplicationBean1.java. *** (#1 of 1): 2005-08-24 16:43:54 PDT xxx@xxxx Actually it turns out that while evaluating the expression "#{ApplicationBean1.localeCharacterEncoding}" - the localeCharacterEncoding property of the super class of ApplicationBean1 which is com.sun.jsfcl.app.AbstractApplicationBean is not being correctly found by the com.sun.rave.jsfsupp.container.DesignTimePropertyResolver's getValue() method. It does correctly find the DesignBean for the "ApplicationBean1" part of the expression.
The J2EE 1.4 Sun Web UI Component library based on JSF 1.1 is now under maintenance mode. Only P1/P2 bugs reported on these components will be addressed. All current development efforts are being focused on Java EE 5 Project Woodstock component library based on JSF 1.2.