[richfaces-issues] [JBoss JIRA] Created: (RF-5196) Editor does not rerender after converter error.

Alexander Dubovsky (JIRA) jira-events at lists.jboss.org
Tue Dec 2 10:56:36 EST 2008


Editor does not rerender after converter error.
-----------------------------------------------

                 Key: RF-5196
                 URL: https://jira.jboss.org/jira/browse/RF-5196
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: 3.3.0.BETA2
            Reporter: Alexander Dubovsky
            Assignee: Nick Belaevski
            Priority: Critical


# 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list