]
Alexandr Levkovsky updated RF-5196:
-----------------------------------
Original Estimate: 1 day
Remaining Estimate: 1 day
Component/s: planning_all
Due Date: 14/Dec/08
Editor does not rerender after converter error.
-----------------------------------------------
Key: RF-5196
URL:
https://jira.jboss.org/jira/browse/RF-5196
Project: RichFaces
Issue Type: Bug
Components: planning_all
Affects Versions: 3.3.0
Environment: 3.3.0.BETA2
Reporter: Alexander Dubovsky
Assignee: Alexandr Levkovsky
Priority: Critical
Fix For: 3.3.0
Original Estimate: 1 day
Remaining Estimate: 1 day
# Input incorrect html in source mode (e.g. some tag is not closed and
useSeamText=true):
<ol>
<li>first item</li>
<li>second item<li>
<li>and even the <i>third</i> item</li>
</ol>
# Rerender editor => converter error is triggered
# Correct html:
<ol>
<li>first item</li>
<li>second item</li>
<li>and even the <i>third</i> item</li>
</ol>
# Rerender editor
Result: error is disappeared. Seems like all is Ok, but...
# Submit page
Result: editor was disappeared from page
The same occurs in case custom converter was triggered.
If rerender editor after converter error in visual mode in JSP following exception was
sent:
SEVERE: An exception occurred
javax.faces.FacesException: Exception while calling encodeEnd on component :
{Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId:
/pages/Rich/Rich.jsp][Class: javax.faces.component.html.HtmlForm,Id: formID][Class:
javax.faces.component.html.HtmlPanelGrid,Id: richGridID][Class:
javax.faces.component.html.HtmlPanelGroup,Id: j_id_jsp_1726272691_12][Class:
javax.faces.component.UINamingContainer,Id: editorSubviewID][Class:
javax.faces.component.html.HtmlPanelGrid,Id: EditorPanelID][Class:
org.richfaces.component.html.HtmlEditor,Id: editorID]}
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
...................
Caused by: javax.faces.convert.ConverterException: Converter error
at editor.Editor$1.getAsString(Editor.java:95)
at org.ajax4jsf.util.InputUtils.getConvertedStringValue(InputUtils.java:114)
at
org.richfaces.renderkit.EditorRendererBase.getConvertedStringValue(EditorRendererBase.java:87)
at
org.richfaces.renderkit.EditorRendererBase.getFormattedComponentStringValue(EditorRendererBase.java:117)
at org.richfaces.renderkit.html.EditorRenderer.doEncodeEnd(EditorRenderer.java:234)
at org.richfaces.renderkit.html.EditorRenderer.doEncodeEnd(EditorRenderer.java:305)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
... 49 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: