Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ZkAuthenticationEntryPoint.java
 
 {{IS_NOTE
 	Purpose:
 		
 	Description:
 		
 	History:
 		Thu Dec 21 16:17:28     2006, Created by Henri
}}IS_NOTE
Copyright (C) 2006 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.zkplus.acegi;

This implementation would forward to onAcegiLogin event and popup a login page.

Applicable to Acegi Security version 1.0.3

Deprecated:
As of release 7.0.0
Author(s):
Henri
See also:
ZkAuthenticationProcessingFilter
ShowWindowEventListener
	/*package*/ static final String ON_ACEGILOGIN = "onAcegiLogin";
    

This implementation forward request to onAcegiLogin command.

	public void commence(ServletRequest requestServletResponse responseAuthenticationException authException)
    throws IOExceptionServletException {
    	final Component comp = (Componentrequest.getAttribute(.);
    	
    	//remember the original event that cause the security login in session
    	final Event evt = (Eventrequest.getAttribute(.);
		if (!comp.isListenerAvailable(true)) {
			final EventListener<Eventlistener = new ShowWindowEventListener<Event>();
			comp.setAttribute(listener);
		}
		final String url = getLoginFormUrl();
    	Events.postEvent(new Event(compurl != null ? url : "~./acegilogin.zul"));
    }
New to GrepCode? Check out our FAQ X