[richfaces-issues] [JBoss JIRA] Updated: (RF-997) Calendar - incorrect use of converters

Daniel Soneira (JIRA) jira-events at lists.jboss.org
Tue Mar 11 04:49:57 EDT 2008


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

Daniel Soneira updated RF-997:
------------------------------

    Attachment: richfaces.war

Here is the new modified version.

Steps to reproduce:

1) open http://localhost:8080/richfaces/calendar.jsf
2) type "asdf" into the calendar input field.
3) press cancel

The problem here is, that the renderer tries to access the submitted value and do some conversion with that. Which is clearly not its task. The renderer should not care about conversion - he should take the value as is (was already converted before).

> Calendar - incorrect use of converters
> --------------------------------------
>
>                 Key: RF-997
>                 URL: http://jira.jboss.com/jira/browse/RF-997
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Maksim Kaszynski
>         Assigned To: Nick Belaevski
>             Fix For: 3.2.0
>
>         Attachments: calendar.war, richfaces.war
>
>
> Calendar component uses converter.getAsObject on render phase. 
> This is wrong. 
> Correct behavior - use converter.getAsObject  on process validations phase.
> In case of bad user input - converter will give conversion exception, display submitted value in input field, in calendar grid select last user selected day (if exists).

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