0 Replies Latest reply on Feb 8, 2012 8:01 AM by shimon lifshitz

    Can't submit a form when ajax event defined on rich:dataTable inside the form

    shimon lifshitz Newbie

      Simple scenarion:

       

      I have a form. Inside that form I have rich:dataTable. I define rich:ajax event="onrow".

      I submit the form and getting an exception:

      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)

             at org.richfaces.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:819)

       

      I checked the source and found that there is no check for nullPointer in "if statement":

       

      if (!behaviorEvent.startsWith(ROW)).

       

      I patched the source:

       

      if (behaviorEvent == null || !behaviorEvent.startsWith(ROW))

       

      And now all works great.

       

      Is it a bug, or did I do something wrong?

       

      Thanks,

       

      Shimon