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

icefaces outputConnectionStatus in javascript
How can I add a title to a disabled icefaces commandbutton?
Hide menuBar on click icefaces
ice:paneConfirmation - is it really so bad?
SessionRenderer not rendering throws ViewExpiredException
icefaces 1.8.2 Datapaginator unexpected PaneltabSet content swap
How can i download ICEfaces-1.7.0 Netbeans plugin?
Icefaces ace:autoCompleteEntry not working
ICEFaces: values for the “icon” attribute
EffectQueue and chaining effects in IceFaces 1.8
Ace Datatable row selector with paginator
How to customize internal server error popup?
How to use more than one ace:fileEntry tag in the same page?
Enabling ICEfaces compat leads to not recognizing h:head and h:body
Passing parameter to <ice:rowSelector>'s clickListener attribute
ICEfaces configured for view, but h:head and h:body components are required

Categories

HOME
websphere
vb6
itext
playframework
hana
h2
rocketmq
javamail
terrain
gspread
simpy
netflix-feign
eclipse-cdt
uiactivityviewcontroller
hosts
android-source
gatsby
store
arm-template
jsonserializer
boolean-expression
iup
rworldmap
philips-hue
scalajs-react
printdocument
visual-c++-2017
opencart2.3
continuous-deployment
lync-2013
pentaho-report-designer
pari
oracle-xml-db
preg-grep
fractals
npm-shrinkwrap
phpspreadsheet
mmdrawercontroller
agent
nsexception
crop
pytest-django
catia
bids
ogre3d
gce
react-native-fbsdk
jcreator
autoresize
restivejs
ebtables
spring-ioc
backstop.js
mongoose-populate
gameanalytics
qregexp
jackson-databind
project-online
console-redirect
freefem++
yoothemes
fortran90
brackets-shell
plone-3.x
datainputstream
persistence.xml
geodjango
digits
findcontrol
coypu
musl
google-earth-plugin
jai
android-search
client-side-validation
django-1.6
left-recursion
sid
json-patch
confusion-matrix
layered
manage.py
fileconveyor
fluidsynth
angularjs-timeout
icsharpcode
git-filter-branch
web-safe-fonts
getstring
responsetext
objective-c-protocol
port-scanning
ihttphandler
gethashcode
zend-form-element
open-graph-beta
requestfactory
quick-search
camtasia
idictionary
act
system-codedom-compiler

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