10 Replies Latest reply on Mar 10, 2011 11:44 AM by liuliu

    Help with getExternalContext()


        Hello all,


      I have this issue..


      <h:commandLink name="Table Data" actionListener="#{tabTest.getValues}"  value="Table Data"/>


      then I said to myself ..


      I want to change it to a4j:commandLink...


      so I put this...


      <a4j:commandLink action="#{tabTest.getValues}" ajaxSingle="true" value="get results" reRender="taskList"/>


      now in the bean ..


      in the getValues method...


      I have this   


      UserBean userBean = (UserBean) FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("userBean");



      it used to work when I used the <h:commandLink .. I can get the bean instance ...


      but when I changed to the <a4j:commandLink ...


      I cannot get the bean... it is NULL .. I dont know why .. weird...


      can any 1 explain please ??


      Please HELP