[richfaces-issues] [JBoss JIRA] (RF-11970) Ajax event create exception on form submission when defined on dataTable inside that form
Ján Jamrich (JIRA)
jira-events at lists.jboss.org
Tue Mar 6 07:37:37 EST 2012
[ https://issues.jboss.org/browse/RF-11970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ján Jamrich reassigned RF-11970:
--------------------------------
Assignee: (was: Ján Jamrich)
Add problem simulation into Metamer. It still appears in RF 4.2.0-SNAPSHOT.
For more info see following commit: https://github.com/richfaces/qa/commit/d50647d277a47ba1833cfda75d5a8e2053233694
(metamer/application/src/main/webapp/components/richDataTable/rf-11970.xhtml)
> Ajax event create exception on form submission when defined on dataTable inside that form
> -----------------------------------------------------------------------------------------
>
> Key: RF-11970
> URL: https://issues.jboss.org/browse/RF-11970
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.1.0.Final
> Environment: All
> Reporter: shimon lifshitz
>
> I defined ajax support event="rowclick" on rich:dataTable. This table is defined inside a form. When I tried to submit the form (h:command). I got an exception:
> {code}
> Caused by: java.lang.NullPointerException
> at org.richfaces.renderkit.DataTableRenderer.doDecode(DataTableRenderer.java:111)
> at org.richfaces.renderkit.RendererBase.decode(RendererBase.java:80)
> at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:787)
> {code}
> Problem can be easily fixed by addind check for null in relevent line:
> {code}
> if (!behaviorEvent.startsWith(ROW)) { --->
> if (behaviorEvent == null ||!behaviorEvent.startsWith(ROW))
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list