[
https://jira.jboss.org/jira/browse/RF-7354?page=com.atlassian.jira.plugin...
]
Danny Worm commented on RF-7354:
--------------------------------
I've found a workaround.
I extend ELContextWrapper with this method's.
@Override
public boolean isPropertyResolved() {
return parent.isPropertyResolved();
}
@Override
public void setPropertyResolved(boolean resolved) {
parent.setPropertyResolved(resolved);
}
And patch the jar with the new class file.
It seems to work.
Kind regards,
daworm
ELContextWrapper do not delegate property ELContext.resolved
------------------------------------------------------------
Key: RF-7354
URL:
https://jira.jboss.org/jira/browse/RF-7354
Project: RichFaces
Issue Type: Bug
Components: component-input
Affects Versions: 3.3.1
Environment: JSF 1.2_04-b07-FCS
Richfaces 3.3.1
Facelets 1.1.11
Java 1.5
Reporter: Danny Worm
Assignee: Nick Belaevski
Fix For: 3.3.2.CR1
We switch from Version 3.2.1 to 3.3.1
Now the Picklist got an NullpointerException
java.lang.NullPointerException
at org.ajax4jsf.util.ELUtils.getContainerClass(ELUtils.java:167)
at org.richfaces.component.UIPickList.getConverterForValue(UIPickList.java:93)
at org.richfaces.component.UIPickList.getConverter(UIPickList.java:72)
at org.richfaces.renderkit.PickListRenderer.encodeRows(PickListRenderer.java:245)
at org.richfaces.renderkit.PickListRenderer.encodeSourceRows(PickListRenderer.java:359)
at
org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:371)
at
org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:279)
Beacause this line returns null: (ELUtils:165)
Class<?> type = expression.getType(new ELContextWrapper(initialELContext,
capturingELResolver));
While the searchroutine for getType() look up all resolver, the code stops at the
com.sun.faces.el.DummyPropertyResolverImpl - Resolver.
This resolver set the property "resolved" in this line:
(DummyPropertyResolverImpl:93)
FacesContext context = FacesContext.getCurrentInstance();
context.getELContext().setPropertyResolved(false);
The searchroutine stops because the property isnt set to false in the ELContextWrapper
object and the Wrapper do not delegate the property to the origin ELContext inside.
How can I solve this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira