0 Replies Latest reply on Sep 30, 2008 12:20 PM by kpraveen

    DataTable - Unable to pass Object from dataTable (navigation

    kpraveen

      Hi,

      I am using rich:dataTable to display object information. The last column being a link (Edit), which takes the user to a different page.
      <rich:column>
      <f:facet name="header"><h:outputText styleClass="headerText"
      value="Action" />
      </f:facet>
      <s:link id="showItem" action="#{personAction.selectPerson(var)}"
      value="Edit" />
      </rich:column>

      The method on personAction is being invoked - but a null value is being passed to the method. Following the exception:

      Exception during request processing:
      Caused by javax.el.ELException with message: "java.lang.NullPointerException"

      org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333)
      org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)
      org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
      org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65)
      org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
      org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      org.jboss.seam.core.Expressions$2.invoke(Expressions.java:173)
      org.jboss.seam.navigation.Pages.callAction(Pages.java:643)
      org.jboss.seam.navigation.Pages.preRender(Pages.java:296)
      org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:560)
      org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:471)
      org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144)
      org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114)
      com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)


      P.S - I am following the example that was provided along with Seam 2.0.1 distribution. Using it along with RichFaces 3.2.2

      navingation:
      <page view-id="/personSearch.xhtml">
      <navigation from-action="#{personSearchAction.selectPerson(var)}">
      <redirect view-id="/editPerson.xhtml"/>



      Can anyone tell me whats missing in the puzzle?