icefaces


how to redirect to j_security_check in the managed bean?


i've successfully run a based FORM authentication project and trying to do the same with an icefaces project. In other terms i want to use ice:form instead of form, so i was wondering if i could redirect the login request to j_security_check in the managed bean:
public void myMethod(ActionEvent e){
//some code that redirects to j_security_check
}
and in my login page:
<ice:commandButton value="login" ActionListener="#{myBean.myMethod}"/>
But i don't really know how to do it, and i don't really find documentation about j_security_check and how it really works.
You can have a form with action="j_security_check", with text fields or hidden fields containing the username and password. You can bind these fields to variables in your managed bean. You can use a submit button in the form instead of <ice:commandButton>.
If you have to use the <ice:commandButton>, you can use Javascript to send a "myform.submit()" script:
public void myMethod(ActionEvent e)
{
//Some other code...
JavascriptContext.addJavascriptCall(
FacesContext.getCurrentInstance(), "document,forms.myForm.submit()");
}
You can also dynamically create a form element in Javascript, assign username/password values and submit it, using the JavascriptContext.addJavascriptCall() method

Related Links

ace:tabSet style is corrupted when using ICEFaces 3
How to configure rime style in ICEfaces 3
scrolling changes the size of the ice datatable headers
How to get values in dropdown list from database in icefaces?
Data pager in icefaces not paging
use sbt for generate a webapp with icefaces
Cancel button Icefaces with immediate=true
how to redirect to j_security_check in the managed bean?
How do I disable a column using icefaces?
icefaces menu bar handling
ui:repeatn tag inside ui:repeat..not working
<ice:outputMedia> and <ui:repeat>
HOW TO HIDE/IGNORE ?RVN in Icefaces
Two ICEfaces panel positioned interacting
java.lang.ClassNotFoundException: com.icesoft.faces.util.event.servlet.ContextEventRepeater
how to push component state changes to multiple different pages using icefaces

Categories

HOME
cil
answer-set-programming
winapi
drupal-7
performancecounter
ncurses
youtube-livestreaming-api
wms
playframework
checksum
webdav
snap.svg
dataframe
data-science-experience
contact-form-7
pca
dropbear
pjsip
ssr
wysiwyg
spinnaker
intellij-plugin
ctypes
viber
typeahead
sendkeys
sql-tuning
linq-to-sql
embedly
os161
memsql
tflearn
continuous-deployment
pentaho-report-designer
multichoiceitems
dd-wrt
entity-system
hotmail
node-horseman
openpgp
rider
jboss-esb
restful-url
worker
onmouseover
nsjsonserialization
udev
fedora20
hpcc
objloader
keycode
rmongodb
packagemaker
galleriffic
aescryptoserviceprovider
freetype2
picking
spinlock
axes
license-key
anythingslider
self-hosting
built-in
stream-framework
castle-windsor-3
sparse-file
jython-2.7
obfuscar
orientation-changes
inputaccessoryview
moai
cpu-speed
collabnet
genetic-programming
sthttprequest
author
dache
getimagedata
adaptive-compression
indexing-service
dbsetup
dvcs
mbox
sim900
convex-polygon
cilk-plus
html-form-post
client-side-scripting
symphony-cms
vt100
dynamic-data
legacy-code
dashcode
j-interop
webrat
dotproject

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App