Hallo Leute, ich habe eine Loginseite erstellt (Glassfish Security JDBC Realm) und möchte in meiner web.xml die weiterleitung zum anmeldeformular so ändern das ein PrimeFaces Dialog aufpopt.
Im Moment geht dies nur über einen integrierten Button.
Denkt ihr das geht und hat jemand eine Idee wie ich das machen kann?
Button:
Dialog:
WEB.XML:
freundliche Grüße und Danke im vorraus, Alex
Im Moment geht dies nur über einen integrierten Button.
Denkt ihr das geht und hat jemand eine Idee wie ich das machen kann?
Button:
HTML:
<h:panelGrid columns="1" class="sidenavi">
<p><h:link class="link" outcome="admin/acl/List" value="Adminbereich" /></p>
<p><h:link class="link" outcome="customer/index" value="Kundenlogin" /></p>
<p><h:link class="link" outcome="employee/index" value="Mitarbeiter" /></p>
<p><p:commandButton class="link" value="Login" onclick="PF('dlg1').show();"/></p>
</h:panelGrid>
Dialog:
HTML:
<p:dialog header="Login Dialog" modal="true" widgetVar="dlg1" resizable="false" >
<h:panelGrid columns="2" cellpadding="5">
<form method="POST" action="j_security_check">
<h:panelGrid columns="2">
<h:outputLabel value="User Name"/>
<input type="text" name="j_username" />
<h:outputLabel value="Password"/>
<input type="password" name="j_password" />
<input type="submit" value="Login" />
</h:panelGrid>
</form>
</h:panelGrid>
</p:dialog>
WEB.XML:
Code:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>setix-secure-realm</realm-name>
<form-login-config>
<form-login-page>/faces/index.xhtml</form-login-page>
<form-error-page>/faces/loginerror.xhtml</form-error-page>
</form-login-config>
</login-config>
freundliche Grüße und Danke im vorraus, Alex