0 Replies Latest reply on Feb 8, 2009 10:06 PM by Shridhar N S

    A4J and Shale problem

    Shridhar N S Newbie

      Hi,

      I am facing the exact issue that is mentioned in:
      https://issues.apache.org/struts/browse/SHALE-409

      I did all the adjustments so that it starts working. But whenever I have a control that communicates with the backend bean (e.g. a4j:commandButton, a4j:support etc) I must surround them with a4j:region. If I do this, a4j action refreshes the whole page instead of the region specified.

      If I don't surround them with a4j:region, then I get NPE like below:
      java.lang.NullPointerException
      at org.ajax4jsf.renderkit.AjaxRendererUtils.buildAjaxFunction(AjaxRendererUtils.java:411)
      at org.ajax4jsf.renderkit.AjaxRendererUtils.buildAjaxFunction(AjaxRendererUtils.java:388)
      at org.ajax4jsf.renderkit.AjaxRendererUtils.buildOnEvent(AjaxRendererUtils.java:173)
      at org.ajax4jsf.component.UIAjaxSupport.getEventString(UIAjaxSupport.java:97)


      Any pointer would help a lot.

      Thanks,
      Shridhar