Extension:J2EE FORM Authentication Hook (Legacy)
This version of our Learning Center is unmaintained.
This article may be out-of-date or contain incorrect information.
Please visit the new Sencha Learning Center for up-to-date material.
From Sencha - Learn
| 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.
