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

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
How can Websphere PUMA SPI (PumaLocator) be used with an ICEfaces Portlet?
IceFaces and FileResource - delete after session expires
icefaces 2 beta 1: binding selectmanycheckbox to map raises conversion error
icefaces modal popup timeout issue
ICEfaces messages
ICEFACES : Multiple Parameters in link
Realtime website using Icefaces
Icefaces: Multiple actionListeners for command button

Categories

HOME
answer-set-programming
blockchain
translation
mainframe
vlc
jrebel
tizen-wearable-sdk
data-science-experience
contact-form-7
deeplearning4j
uiactivityviewcontroller
rfid
tee
mongodb-query
datagrip
spring-cloud-config
sql-tuning
aspell
bootstrap-popover
tree-traversal
jogl
plupload
raphael
scalaz7
searchbar
fabric
bus-error
referenceerror
lmdb
postgresql-9.2
backup-strategies
skygear
graph-databases
windows-10-iot-core
sql-like
mongoexport
floating-accuracy
microdata
distributed-transactions
excel-interop
upsert
mod-fcgid
amazon-machine-learning
sapui
ticker
tcserver
pagefile
photography
python-hypothesis
emoticons
addin-express
rxvt
efxclipse
gulp-typescript
rsqlite
build-process
system.web.ui.webcontrols
picasa
gitweb
scriptlet
django-south
amazon-kcl
difference
sonarqube5.3
plone-3.x
schtasks.exe
retro-computing
textkit
abas
visual-studio-code
xjc
coypu
apache-mina
callstack
stackframe
jython-2.7
google-earth-plugin
cloudpebble
left-recursion
libsndfile
dmp
ogr2ogr
log4cplus
author
sgml
httpcontext
visualstatemanager
unison
broadcasting
android-json-rpc
visual-studio-addins
haskell-platform
localtime
mailcore
device-emulation
snapjs
plone-funnelweb
mpmovieplayer
wcf-web-api
shim
z-machine
responsetext
ou
testunit
squeel
rijndael
hardware-acceleration
oggvorbis
weborb
project-lifecycle
divx

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