Ext JS - Learning Center

Extension:J2EE FORM Authentication Hook

From Learn About the Ext JavaScript Library

Revision as of 16:24, 27 June 2008 by Marte (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Summary: AJAX authentication hook for J2EE FORM auth.
Author: Daniel M. Lambea
Published: 2008-02-15
Version: 1.1
Ext Version: 2.x
License: LGPLv3 for non-commercial use
Demo Link: [# View Demo]
Forum Post: View Post

Contents

Extension

The J2EE FORM Authentication hook allows you to handle form-based authentication requests from inside AJAX-driven applications, to avoid page reloads. This reduces significantly the overhead of restarting the application. The hook installs automatically, then intercepts all Ext.Ajax requests and asks the user to provide authentication credentials when needed. The authenticated server's response is transparently forwarded to the originating request when the authentication succeeds.

Usage

  • Download Ext.ux.J2EEAuth library
  • Include j2eeauth.js after all Ext libraries
  • Modify your web.xml application descriptor to be ready for AJAX (see the examples inside examples folder; a sample servlet is included)

View Forum Posts

Changelog

Ver. 1.1: Bugfixing.

  • Fixed response.argument coming null (as in Panel's "autoLoad" responses). Thanks to coderobo.

Ver. 1.0: Initial Release

Screenshots

No screenshots available, this is not a visual component.