[richfaces-issues] [JBoss JIRA] Commented: (RF-4222) Nice to have multiple events in a4j:support tag

Schevus Osborne (JIRA) jira-events at lists.jboss.org
Thu Apr 28 15:15:18 EDT 2011


    [ https://issues.jboss.org/browse/RF-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598852#comment-12598852 ] 

Schevus Osborne commented on RF-4222:
-------------------------------------

I have two <a4j:support> tags under a <rich:simpleTogglePanel>, one for oncollapse and one for onexpand. I need them both to have ajaxSingle="true", but when the first one has this, the second one's actionListener is not called when its event is fired. 

I suppose this may be a bug, but being able to define multiple events for the same support would eliminate this, as well as an additional line of code for another support, that may well do exactly the same thing, just for a different event.

> Nice to have multiple events in a4j:support tag
> -----------------------------------------------
>
>                 Key: RF-4222
>                 URL: https://issues.jboss.org/browse/RF-4222
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.2.2
>            Reporter: Jan Hoeve
>            Assignee: Nick Belaevski
>            Priority: Minor
>              Labels: ajax, event, multiple
>             Fix For: 3.Future
>
>
> in the a4j:support tag, it is now possible enter an event for which you want to occur something (e.g. reRender):
>  <a4j:support event="onblur" reRender="usernameDecorate"/>
> Sometimes it would be very userful if reRenders occur for multiple events.
> For example there are two events in which you are interesed: onblur and onkeyup.
> The onblur should check where a username containts valid characters (by using a regexp)
> The onkeyup should display the current length of the username (in an <h:outputText />)
> So, based on above example it would me nice if the support tag supported (hehe) more than one event).
> For example:  <a4j:support event="onblur,onkeyup" reRender="usernameDecorate"/>
> I already tried to create a separate a4j:support for each event, but then only the first one is executed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list