1 Reply Latest reply on Dec 31, 2009 11:03 AM by Nick Belaevski

    Problem with a4j:commandButton rich:dataTable integration

    Kazan Kazan Newbie

      I have the following xml in my .xhtml file:

      <a4j:commandButton id="cmdBuy" reRender="tblProducts" ajaxSingle="true" image="/images/addtocart.gif" value="Add To Cart"   oncomplete="this.src='/images/item_added.gif'">
        <f:setPropertyActionListener value="#{row}" target="#{producthandler.currentRow}" />
      </a4j:commandButton>

       

      ...and

      the producthandler.correntRow is pointint to a getter/setter in my bean.

       

      producthandler is setup as a request scope bean.

       

      when I run this, nothing happens when I click on it.

       

      If I chnage the scope to session, it works.  However, if I run it as session, then I start to get duplicate id exceptions when I navigate to different pages.

       

      I saw this web site:

      http://mkblog.exadel.com/jsf/view-scope-in-richfaces/ which describes what I am trying to do.

       

      Also, I am setting the keepAlive tag.

       

      Can someone help me out. This issue has taken 2 days out of my life.

       

      Thanks.