icefaces


Icefaces: Multiple actionListeners for command button


Is it possible to have multiple actionListeners on a command button?
If not is there any way around this?
Thanks for your help!
No, you can only add two server-side callback methods:
actionListener and
action.
<ice:commandButton action="#{bean.navigateTo}" actionListener="#{bean.doSomething}"/>
actionListener has to point to a public method which returns void and takes an ActionEvent as an argument. It is generally used for any tasks which are not related to any navigation logic and has the advantage, to provide you with the old and new (= changed) value of the control. This makes particular sense in input controls like checkboxes.
action has to point to a public method which returns a String without taking any arguments. The method will do everything what is needed for navigating - for example additional validation (if it hasn't been handled by some basic JSF validator). The outcome has to match the navigation rules from faces-config.xml.
That should give you enough possibilities to handle multiple tasks (which I assume is your reason for having multiple actionListener) within your server logic.
Additionally, if you need to do only some client-side tasks, you can take advantage of several on* JavaScript properties.
Reference: ICEfaces Custom Components Taglib

Related Links

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
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

Categories

HOME
vue.js
vhdl
ncurses
decorator
youtube-livestreaming-api
memory-leaks
phpstorm
recyclerview
hyperledger-fabric
phaser-framework
proguard
gimp
goutte
criteria
flexbox
getorgchart
hashicorp-vault
spinnaker
simple-injector
multiple-monitors
cloudflare
scaling
jquery-terminal
ng-show
zoho
ip-camera
jconsole
google-maps-android-api-2
prediction
explode
philips-hue
rhmap
codelite
web-frontend
google-api-dotnet-client
dd-wrt
picturebox
oracle-xml-db
idl
division
fax
lexical-analysis
react-native-router-flux
dojox.mobile
stress-testing
startapp
nsjsonserialization
chunked-encoding
jexl
pycurl
festival
vici
build-process
gradle-script-kotlin
wcf-ria-services
firepath
freetype2
unsatisfiedlinkerror
jackson-databind
gradle-eclipse
difference
subresource-integrity
urn
criteria-api
ember-cli-addons
django-1.6
errorprovider
snmp4j
yahoo-boss-api
opensocial
visual-studio-addins
onselect
image-zoom
multiple-login
haskell-platform
vmware-server
dynamics-ax-2009
objcmongodb
returnurl
mpmovieplayer
macruby
die
signals2
concurrent-programming
separation-of-concerns
selectonemenu
galaxy-tab
audiostreamer
rijndael
libavformat
chatroom
j-interop
communicationexception
visual-c++-2008-express
interface-design

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