You can buy this project and download/modify it how often you want.
function triggerShutdown() { var button=document.getElementById('form:stopInstance'); var options = { execute:button.id, render: '@none' }; options[button.id] = button.id; faces.ajax.request(button, null, options); } $attribute{loginId}) getUIComponent(clientId="#{loginId}" component=>$attribute{component}) includeFirstIntegrationPoint(type="org.glassfish.admingui:shutdownform" root="#{component}"); />