[richfaces-issues] [JBoss JIRA] (RF-12182) a4j:ajax listener does not work with rich:calendar (inputchange, inputblur events)
Nick Dev (JIRA)
jira-events at lists.jboss.org
Tue Apr 17 22:08:17 EDT 2012
[ https://issues.jboss.org/browse/RF-12182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Dev updated RF-12182:
--------------------------
Summary: a4j:ajax listener does not work with rich:calendar (inputchange, inputblur events) (was: a4j:ajax listener does not work with rich:calendar (oninputchange, oninputblur events))
Workaround Description:
Workaround is to leave "change" event and trigger it on client-side from inputchange, inputblur events.
Helper JS function:
{code}
function invokeCalendarOnChange(event, id) {
var c = RichFaces.$(id);
c.invokeEvent("change", RichFaces.getDomElement(c.id), event, c.selectedDate);
}
{code}
Usage:
{code}
<rich:calendar id="calendar" enableManualInput="true" value="#{testBean.calendarDate}" oninputchange="invokeCalendarOnChange(event,'#{rich:clientId('calendar')}');">
<a4j:ajax event="change"
listener="#{testBeanController.dateChanged}" render="out" />
</rich:calendar>
{code}
> a4j:ajax listener does not work with rich:calendar (inputchange, inputblur events)
> ----------------------------------------------------------------------------------
>
> Key: RF-12182
> URL: https://issues.jboss.org/browse/RF-12182
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.2.1.Final
> Environment: JSF Mojarra 2.1.7
> Reporter: Nick Dev
>
> a4j:ajax listener does not work with rich:calendar (inputchange, inputblur events).
> AJAX request is fired but listener is not called.
> Works only for "change" event.
--
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
More information about the richfaces-issues
mailing list