1 Reply Latest reply on Oct 17, 2008 5:34 AM by Nick Belaevski

    Ajax4JSF Nullpointerexception

    eswar k Newbie

      I am using Netbeans 6.1, Glassfish server, ajax4jsf1.1.1 , web application verion 2.5 and faces-config version 1.2.......
      when i navigate to any jsf where i have lot of ajax tags like <a4j:support>,... page...i am getting
      NullPointerExcepton:

      Caused by: java.lang.NullPointerException
      at org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildAjaxFunction(AjaxRendererUtils.java:368)
      at org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildAjaxFunction(AjaxRendererUtils.java:347)
      at org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildOnEvent(AjaxRendererUtils.java:156)
      at org.ajax4jsf.ajax.UIAjaxSupport.getEventString(UIAjaxSupport.java:115)
      at org.ajax4jsf.framework.ajax.EventValueBinding.getValue(EventValueBinding.java:92)
      at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:73)


      Jsp Code:

      <h:selectOneMenu id="makeid" value="#{common$modelSelectionPage.selectedMake}" >
      <f:selectItem itemLabel="-Select Make-" itemValue=""></f:selectItem>
      <f:selectItems value="#{common$modelSelectionPage.makeList}"></f:selectItems>

      <a:support event="onchange" reRender="modelid,yearid" id="renderMake"
      action="#{common$modelSelectionPage.onChangeMake}" />
      </h:selectOneMenu>

      Could any one please help me out to solve this issue?