Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h:form id="form" prependId="false">
- <h:commandLink id="button2"
- onclick="$('#myDialog').dialog('destroy');$('#myDialog').remove(); jsf.ajax.request(this,event,{execute:'@this', render:'myDialog_placeHolder'} ); return false;"
- action="#{myBean2.doSearch}" value="press me for next ajax"
- >
- </h:commandLink>
- </h:form>
- <h:panelGroup id="myDialog_placeHolder">
- <h:panelGroup styleClass="myDlg" id="myDialog">
- <h:form id="form2" prependId="false">
- <h:panelGroup id="content">
- #{myBean2.refresh}
- <h:commandLink id="submitMe" value="Press me for more action" action="#{myBean2.doSearch}">
- <f:ajax executed="@this" render="content" />
- </h:commandLink>
- </h:panelGroup>
- </h:form>
- </h:panelGroup>
- <script type="text/javascript">
- /**
- * we delay the dialog buildup slightly
- * that way everything should be updated in the dom
- */
- $("#myDialog").dialog();
- </script>
- </h:panelGroup>
Advertisement
Add Comment
Please, Sign In to add comment