You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <my...@incubator.apache.org> on 2005/08/16 21:03:54 UTC

[jira] Created: (MYFACES-415) inputCalendar with converter loses value data during rendering when renderAsPopup=true

inputCalendar with converter loses value data during rendering when renderAsPopup=true
--------------------------------------------------------------------------------------

         Key: MYFACES-415
         URL: http://issues.apache.org/jira/browse/MYFACES-415
     Project: MyFaces
        Type: Bug
  Components: Tomahawk  
    Versions: Nightly Build    
    Reporter: Mike Kienenberger


t:inputCalendar's implicit and transient inputText gets assigned the
same converter as inputCalendar when isRenderAsPopup=true.

This doesn't work well since the inputCalendar converter is expected
to work on Date objects, and the inputText has a string representation
of the date.

The conversion fails in RendererUtils.getStringValue(facesContext,
component) at converter.getAsString(facesContext, component, value),
and the value in the inputCalender gets lost on rendering.

The value assigned to the inputText is already converted using the inputCalendar's converter during encode, and the component doesn't exist during decode, so the converter needs to be nullified for inputText.

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


[jira] Closed: (MYFACES-415) inputCalendar with converter loses value data during rendering when renderAsPopup=true

Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-415?page=all ]
     
Martin Marinschek closed MYFACES-415:
-------------------------------------

    Assign To: Sylvain Vieujot

> inputCalendar with converter loses value data during rendering when renderAsPopup=true
> --------------------------------------------------------------------------------------
>
>          Key: MYFACES-415
>          URL: http://issues.apache.org/jira/browse/MYFACES-415
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: Nightly Build
>     Reporter: Mike Kienenberger
>     Assignee: Sylvain Vieujot
>      Fix For: Nightly Build
>  Attachments: HtmlCalendarRenderer.patch.txt
>
> t:inputCalendar's implicit and transient inputText gets assigned the
> same converter as inputCalendar when isRenderAsPopup=true.
> This doesn't work well since the inputCalendar converter is expected
> to work on Date objects, and the inputText has a string representation
> of the date.
> The conversion fails in RendererUtils.getStringValue(facesContext,
> component) at converter.getAsString(facesContext, component, value),
> and the value in the inputCalender gets lost on rendering.
> The value assigned to the inputText is already converted using the inputCalendar's converter during encode, and the component doesn't exist during decode, so the converter needs to be nullified for inputText.

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


[jira] Updated: (MYFACES-415) inputCalendar with converter loses value data during rendering when renderAsPopup=true

Posted by "Mike Kienenberger (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-415?page=all ]

Mike Kienenberger updated MYFACES-415:
--------------------------------------

    Attachment: HtmlCalendarRenderer.patch.txt

Fix to set inputText's converter to null.

> inputCalendar with converter loses value data during rendering when renderAsPopup=true
> --------------------------------------------------------------------------------------
>
>          Key: MYFACES-415
>          URL: http://issues.apache.org/jira/browse/MYFACES-415
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: Nightly Build
>     Reporter: Mike Kienenberger
>  Attachments: HtmlCalendarRenderer.patch.txt
>
> t:inputCalendar's implicit and transient inputText gets assigned the
> same converter as inputCalendar when isRenderAsPopup=true.
> This doesn't work well since the inputCalendar converter is expected
> to work on Date objects, and the inputText has a string representation
> of the date.
> The conversion fails in RendererUtils.getStringValue(facesContext,
> component) at converter.getAsString(facesContext, component, value),
> and the value in the inputCalender gets lost on rendering.
> The value assigned to the inputText is already converted using the inputCalendar's converter during encode, and the component doesn't exist during decode, so the converter needs to be nullified for inputText.

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


[jira] Resolved: (MYFACES-415) inputCalendar with converter loses value data during rendering when renderAsPopup=true

Posted by "Sylvain Vieujot (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-415?page=all ]
     
Sylvain Vieujot resolved MYFACES-415:
-------------------------------------

    Fix Version: Nightly Build
     Resolution: Fixed

Just commited the patch.
Thank you Mike.

> inputCalendar with converter loses value data during rendering when renderAsPopup=true
> --------------------------------------------------------------------------------------
>
>          Key: MYFACES-415
>          URL: http://issues.apache.org/jira/browse/MYFACES-415
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: Nightly Build
>     Reporter: Mike Kienenberger
>      Fix For: Nightly Build
>  Attachments: HtmlCalendarRenderer.patch.txt
>
> t:inputCalendar's implicit and transient inputText gets assigned the
> same converter as inputCalendar when isRenderAsPopup=true.
> This doesn't work well since the inputCalendar converter is expected
> to work on Date objects, and the inputText has a string representation
> of the date.
> The conversion fails in RendererUtils.getStringValue(facesContext,
> component) at converter.getAsString(facesContext, component, value),
> and the value in the inputCalender gets lost on rendering.
> The value assigned to the inputText is already converted using the inputCalendar's converter during encode, and the component doesn't exist during decode, so the converter needs to be nullified for inputText.

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