This content has been marked as final.
Show 2 replies
-
1. Re: <a4j:keepAlive> question
sergeysmirnov Jun 4, 2007 3:41 AM (in response to vh)keepAlive has ajaxOnly attribute. If it set to true, the previous state of the bean will not restored during the regular (non-ajax) request.
-
2. Re: <a4j:keepAlive> question
vh Jun 6, 2007 8:38 PM (in response to vh)If the following AJAX call? I have <a4j:keepAlive beanName="vcBean" ajaxOnly="true"/>
But when I kit the OK button, I can see a new vcBean is created.<form> <table> <tr><td><h:outputText value="#{bundle.confirmVC}"/></td></tr> <tr> <td align="center"> <a4j:commandButton actionListener="#{vcBean.saveVC}" value="#{bundle.OK}" oncomplete="Richfaces.hideModalPanel('confirmVcMp');closeWindow('editVcForm:errPanel','editVcMp');" reRender="vcTable,editVcMp,error" > </a4j:commandButton> <rich:spacer height="4px" width="10px"></rich:spacer> <a4j:commandButton actionListener="#{vcBean.clearTestFlag}" oncomplete="Richfaces.hideModalPanel('confirmVcMp');Richfaces.showModalPanel('editVcMp');" reRender="vcTable,editVcMp,error" value="#{bundle.Cancel}"> </a4j:commandButton> </td> </tr> </table> </form>