[richfaces-issues] [JBoss JIRA] Resolved: (RF-2450) rich:calendar - currentDateChangeListener not working

Vladislav Baranov (JIRA) jira-events at lists.jboss.org
Thu Apr 10 06:05:54 EDT 2008


     [ http://jira.jboss.com/jira/browse/RF-2450?page=all ]

Vladislav Baranov resolved RF-2450.
-----------------------------------

    Resolution: Done
      Assignee: Tsikhon Kuprevich  (was: Vladislav Baranov)

Added "oncurrentdateselected" event. The "oncurrentdateselect" event is fired when the "next/previous month" or "next/previous year" button is pressed, but the value is not applied yet (user can change the logic of upplying the value) and the "oncurrentdateselected" event is fired when the new value is applied.

> rich:calendar - currentDateChangeListener not working
> -----------------------------------------------------
>
>                 Key: RF-2450
>                 URL: http://jira.jboss.com/jira/browse/RF-2450
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.4
>            Reporter: Nick Belaevski
>         Assigned To: Tsikhon Kuprevich
>             Fix For: 3.2.1
>
>
> Listener method is not invoked. 
> RichFaces version 3.1.4
> -----------------------------------
> <h:form>
> <rich:calendar value="#{calBean.now}" 
> currentDateChangeListener="#{calBean.changeSendDate}">
> <a4j:support event="oncurrentdateselect"></a4j:support>
> </rich:calendar>
> </h:form>
> ----------------------------------
> /**
> */
> package example;
> import org.richfaces.event.CurrentDateChangeEvent;
> /**
> @author max
> *
> */
> public class CalBean { 
> private java.util.Date now = new java.util.Date ();
> public java.util.Date getNow() { return now; }
> public void setNow(java.util.Date now) { this.now = now; }
> public CalBean() {
> }
> public void changeSendDate (CurrentDateChangeEvent event){ System.out.println("ValueChangeEvent"); }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list