[
https://issues.jboss.org/browse/RF-12360?page=com.atlassian.jira.plugin.s...
]
Dupont Dupont commented on RF-12360:
------------------------------------
Hi Brian,
onchange event is fired when the event loses focus
I confirm,
onchange is fired when component loses focus.
Problem is :
1. this is not consistent with standard h:selectOneMenu onchange behaviour (which fires
onchange event immediately).
2. if I want to send ajax notification without waiting for focus change, I need to write
the following - it seems a bit awkward :
{code}
<f:ajax event="additems" execute="@form"
render="pickListOutput"/>
<f:ajax event="removeitems" execute="@form"
render="pickListOutput"/>
<f:ajax event="sourceblur" execute="@form"
render="pickListOutput"/>
<f:ajax event="sourcefocus" execute="@form"
render="pickListOutput"/>
<f:ajax event="targetblur" execute="@form"
render="pickListOutput"/>
<f:ajax event="targetfocus" execute="@form"
render="pickListOutput"/>
{code}
rich:picklist using f:ajax wired to the event "change" does
nothing
-------------------------------------------------------------------
Key: RF-12360
URL:
https://issues.jboss.org/browse/RF-12360
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Dupont Dupont
Labels: waiting_on_user
I wanted to know if anyone has succesfully wired an ajax behaviour to a picklist
component on the change event.
{code}
<rich:pickList value="#{listSelectBean.selectedCapitals}"
listWidth="170px" listHeight="100px"
orderable="true">
<f:selectItems value="#{listSelectBean.capitals}" var="capital"
itemValue="#{capital}" itemLabel="#{capital.name}" />
<f:ajax event="change" execute="@this"
render="dependentFields"/>
</rich:picklist>
{code}
Adding an onchange event handler on the component does not produce any effect.
onchange="alert('Changed');"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira