[richfaces-issues] [JBoss JIRA] Resolved: (RF-2600) Calendar: date/value of backing bean is not updated correctly

Vladislav Baranov (JIRA) jira-events at lists.jboss.org
Wed Mar 19 11:38:10 EDT 2008


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

Vladislav Baranov resolved RF-2600.
-----------------------------------

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

Try to use ajax event="onchanged" instead of "ondateselected" to submit new calendar input value on server.
Event "ondateselected" is event is invoked when new date is selected, but it hasn't been applied to the calendar input. That's why the server date value is set to the previous value of calendar input.
Example:
<a4j:support event="onchanged" reRender="schedule"/> 

> Calendar: date/value of backing bean is not updated correctly
> -------------------------------------------------------------
>
>                 Key: RF-2600
>                 URL: http://jira.jboss.com/jira/browse/RF-2600
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>         Environment: Seam 2.0.1 GA, JBoss AS 4.2.1 GA, Richfaces 3.2.0 nightly build from 16.03.2008, Facelets
>            Reporter: Bj￶rn Stahmer
>         Assigned To: Tsikhon Kuprevich
>            Priority: Critical
>             Fix For: 3.2.0
>
>
> The following view does not work correctly under 3.2.0, but it does unter 3.1.4. Selecting a date does not set the clicked date on the backing bean, but the one you selected before. If you make a full page reload before the date selection it works.
> <h:form>
> <a4j:outputPanel>
> <rich:calendar id="calendar" value="#{smallCalendarBean.selectedDate}" 
> 	dataModel="#{smallCalenderDataModel}" mode="ajax"
>         popup="#{smallCalendarBean.popup}" ajaxSingle="true"
>         datePattern="#{smallCalendarBean.pattern}">
>   <a4j:support event="ondateselected" reRender="schedule"/>
> </rich:calendar>
> </a4j:outputPanel>
> </h:form>

-- 
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