You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Haimberger (JIRA)" <de...@myfaces.apache.org> on 2007/04/27 10:29:15 UTC

[jira] Commented: (MYFACES-1563) Re-rendered input components redisplay their locale value on non-immediate action

    [ https://issues.apache.org/jira/browse/MYFACES-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492224 ] 

Martin Haimberger commented on MYFACES-1563:
--------------------------------------------

Hi,

are u sure that you have tried this with jsf 1.2? The example is not working at all with the jsf 1.2 impl right now.

Regards,
Martin Haimberger

> Re-rendered input components redisplay their locale value on non-immediate action
> ---------------------------------------------------------------------------------
>
>                 Key: MYFACES-1563
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1563
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-252
>    Affects Versions: 1.1.5
>         Environment: Tomcat 5.5, Jetty 6.1, Java 1.4.2, Java 1.5.0
>            Reporter: sarah haas
>            Priority: Critical
>             Fix For: 1.1.5
>
>         Attachments: NonRenderedComp.java, nonRenderedComp.jsp, PersonBean.java
>
>
> Since the component was previously not rendered, its submitted value is null. The local value that is set in restoreState is not null.  This does not get reset by validation since non-rendered components are not validated (processValidators). Therefore the associated value-binding expression is not evaluated in getValue,and hence the local value is returned. 
> It seems to me that restoreState should set the local value to null. This would result in the value-binding expression being evaluated and displayed.
> Example:
> I have a number of input text fields and a select-one-menu (which has an immedate valueChangeListener) a command button (with an non-immedate action). The menu switches the rendered mode of some display fields. The button saves the entered text and clears the input fields.
> In addition I have a data-table which displays the saved data and contains a column with a button, whose on-immediate action puts the selected data item into the input fields.   
> I enter data in the input fields and save the data. It is displayed in the table. Then I use the menu to select a mode in which some of the input text fields are no longer rendered. I then select the original data from the table. The fields which remain rendered are displayed and filled correctly. However the fields which were previously NOT rendered are displayed but are EMPTY.
> This bug does not occur with Sun's reference implementation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.