This content has been marked as final.
Show 2 replies
-
1. Re: scrollerListener Not Firing With rich:datascroller
neilac333 Aug 20, 2008 1:33 PM (in response to neilac333)I remain stumped on this issue, but what is funny is that I can assign an action to my rich:datascroller. In other words, if I add this attribute:
action="#{searchAction.doScroll}"
...then the action does indeed fire. Unfortunately, this is not sufficient for me since I need access to the DataScrollerEvent object, and action methods cannot take parameters.
Any help you can provide is appreciated.
Thanks. -
2. Re: scrollerListener Not Firing With rich:datascroller
shadowcreeper Aug 20, 2008 2:32 PM (in response to neilac333)Parameter component for action or actionListener:
<a4j:actionparam name="unusedParameterToHelpDocumentYourCode" assignTo="#{bean.propertyToSet}" value="#{elExpresionOfValueToSet}"/>
Note: There is currently a bug (I forget the exact details) where either action or actionListener will happen before the actionparams are called. Using the other is the workaround.
Also, if this is used in a jsFunction called with parameters, you do not need the value attribute.