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

Categories

HOME
makefile
erlang
shopify
tinyos
project-management
reverse-engineering
jsviews
blockchain
json-ld
memory-leaks
computer-vision
tizen-wearable-sdk
file-io
urlencode
docker-windows
pygame
xlsx
apache-karaf
chocolatey
cython
backpropagation
flexboxgrid
os161
remove-method
go-cd
skmaps
ab-initio
bxslider
strophe
clockwork
picturebox
data-extraction
socketpair
sonarqube-scan
android-preferences
exiftool
tango
powermta
double-buffering
drawingarea
uiviewpropertyanimator
jenkins-jira-trigger
windows-95
photon-controller
nuget-server
in-memory-database
jcreator
emgu
cfeclipse
uistackview
linkageerror
aerogear
qt-linguist
asp.net-mvc-2
anythingslider
sonarqube5.3
kendo-menu
oai
fabric-twitter
futuretask
windowlistener
built-in
xjc
graphical-logo
crash-dumps
sparse-file
uos
git-checkout
ember-cli-addons
gmaps4rails
candidate-key
google-admin-audit-api
sortable
ghostdoc
java-collections-api
getimagedata
picat
sgml
config-files
cilk-plus
loop-invariant
sql-server-2012-web
jqmobi
stagefright
adomd.net
resgen
client-library
viewdidload
ubuntu-11.04
hinstance
gtk2hs
clause
drawtext
hibernate3-maven-plugin
webrat
graph-layout
swfloader
internals
inline-if
usergroups

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