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

Categories

HOME
tensorflow
converter
shopify
sed
jbehave
decorator
thunderbird-addon
mainframe
codeeffects
apollo
file-io
diagram
android-source
hashicorp-vault
cosmicmind
jacoco
cross-platform
sql-tuning
jcl
tree-traversal
jsonserializer
jogl
uiautomator
deb
restfb
fabric
opencart2.3
xilinx-ise
hana-studio
mangodb
encase
swiftcharts
readfile
image-compression
topic-modeling
s3cmd
lexical-analysis
bayesian-networks
catia
asmx
filepath
walmart-electrode
webdatagrid
component-pascal
chrome-remote-desktop
uicollectionviewlayout
laravel-query-builder
pspice
libtiff.net
ebtables
iostat
libreadline
windows-nt
com-interop
kendo-combobox
console-redirect
date-format
lmfit
qbfc
built-in
achartengine
castle-windsor-3
prezto
epl
android-search
orientation-changes
sysctl
alphablending
cloudpebble
cocoascript
candidate-key
dmp
libssh2
data-generation
joox
bounds
openkinect
lov
facebook-chat
gamepad
bignum
cdata
cilk-plus
jqmobi
localtime
sharpmap
htmltextwriter
device-emulation
android-contextmenu
zend-framework-modules
pys60
socketstream
git-filter-branch
blockingqueue
getusermedia
objective-c-protocol
concurrent-programming
nsindexpath
galaxy-tab
newsstand-kit
easygui
msbuildextensionpack
nvelocity
zend-form-element
hadoop-plugins
quick-search
kpi
associativity

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