[JBoss JIRA] Created: (RF-7354) ELContextWrapper do not delegate property ELContext.resolved
by Danny Worm (JIRA)
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: doc
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
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
15 years, 3 months
[JBoss JIRA] Created: (RF-7472) PickList: converter is called too much times.
by Alexander Dubovsky (JIRA)
PickList: converter is called too much times.
---------------------------------------------
Key: RF-7472
URL: https://jira.jboss.org/jira/browse/RF-7472
Project: RichFaces
Issue Type: Bug
Components: component-input
Affects Versions: 3.3.2.CR1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Priority: Optional
Attachments: Custom.java, CustomizePage.jsp
Sources with pickList and its converter are attached.
# Do not select anything. Click submit.
=> getAsObject was not called.
=> getAsString was called 2 times: for both items -- all is OK
# Select only "item-1" in pickList. Click submit.
=> getAsObject was called 2 times: both for item-1
=> getAsString was called 3 times: 2 times for item-1 and 1 time for item-2 -- unnecessary call for item-1
# Select only "item-2" in pickList. Click submit.
=> getAsObject was called 3 times: 2 times for item-2 and 1 time for item-1 -- different from the 2th case. Why?
=> getAsString was called 3 times: 2 times for item-2 and 1 time for item-1 -- unnecessary call for item-2
# Select both items in pickList. Click submit.
=> getAsObject was called 5 times: 2 times for item-2 and 3 times for item-1
=> getAsString was called 4 times: 2 times for item-2 and 2 times for item-1 -- unnecessary calls for both items
--
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
15 years, 3 months
[JBoss JIRA] Created: (RF-7347) Rich editor fails to convert "_" character to seam text
by David Herrera Alonso (JIRA)
Rich editor fails to convert "_" character to seam text
-------------------------------------------------------
Key: RF-7347
URL: https://jira.jboss.org/jira/browse/RF-7347
Project: RichFaces
Issue Type: Bug
Components: component-input
Affects Versions: 3.3.1
Environment: Testing on: Linux kernel 2.6.28-11 Ubuntu i686 GNU/Linux - Web browsers: Firefox 3.0.10, Opera beta 10, Konqueror 4.2.2
But this issue should appear on any enviroment
Reporter: David Herrera Alonso
When useSeamText option is enabled, rich editor component do nothing to convert "_" character to seam text format. And when s:formattedText goes to interpret rich editor output, it fails because it finds underline begin special character "_", but doesn't find underline end special character (another "_").
With other special characters like "*", "|", "^", "\", rich editor convert there to "\*", "\|", "\^", "\\". But with "_" doesn't convert it and remains "_".
This issue happens too in richfaces demo (on rich editor section) and is easy to test. Simply activate "Use seam text" (and "Toggle preview" to see conversion of "*" and others) and type "_" character. Let rich editor convert text and see the error result.
The solution is easy, simply add "_" character to conversion rules and put "\" before it. Because s:formattedText works well with "\_" and don't interpret it like underline character.
At last, sorry for my poor english expression. I am not manage these language 100%. Sorry. But I hope description would be enough to understand the problem. Thank you.
--
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
15 years, 3 months