You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Guido Dubois (JIRA)" <de...@myfaces.apache.org> on 2007/03/25 15:49:33 UTC

[jira] Created: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

field value can't be setted or cleared if state changes from enabled to disabeld
--------------------------------------------------------------------------------

                 Key: TOBAGO-337
                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.10
         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
            Reporter: Guido Dubois


if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Reopened: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guido Dubois reopened TOBAGO-337:
---------------------------------


I think it is a bug...

Have a look at field date2. It is disabled and never changes the state. For this field it works correct, the field will be setted and cleared every time.

Change the value of field1 that its value never goes over 100,00. You see that the state of field4 and date1 doesn't change and they will be cleared and setted every time.

Now change the value of field1 that its value is allways over 100,00. For this case it works fine too. field4 and date1 are cleared and setted...

But if you enter:
- field1 = 110,00 :: the fields are setted and enabled
- field2 = 220,20 :: the fields are cleared
- field1 = 10,00 :: field4 and date are not setted and disabled, date2 is setted
- field1 = 110,00 ::  the fields are setted and enabled
- field2 = 20,20 :: the fields are cleared
- field1 = 120,00 ::  the fields are setted and still enabled

What I want to show, is that if the state changes from enable to disable, it works not correct. The field contents are not cleared or setted. In the case the state doesn't change, it works fine. So I think there is something wrong...

If I understand it correctly, the bean <f:facet name="change"> is executed after the model is updated. If I change a model value in the according bean, this value has to be renderd. Or not...?




> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Commented: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485742 ] 

Volker Weber commented on TOBAGO-337:
-------------------------------------

Please attach example code which shows this behavor.

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Commented: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490623 ] 

Volker Weber commented on TOBAGO-337:
-------------------------------------

For three weeks no futher comment, and i still can't see why this should b a bug 

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Resolved: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volker Weber resolved TOBAGO-337.
---------------------------------

       Resolution: Invalid
    Fix Version/s: 1.0.11

Closing this because this is no bug, but application missbehavior

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Commented: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485775 ] 

Guido Dubois commented on TOBAGO-337:
-------------------------------------

I have allready attached sample code - disabled.war - by creation of this issue...

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Commented: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485887 ] 

Volker Weber commented on TOBAGO-337:
-------------------------------------

I just looked at field1 and field4:

you have at field4 disabled="#{bbg.f1double lt 100.0}", this is true if the 'modelvalue' of field1 is < 100. 

if now the value of field1 is changed, on the client, to less than 100 on the client, the form is submitted.
The lifcycle runs normaly until update modelPhase. at this point all submited values are stored in the components as submitedValues. At next the model value of f1 is updated, now is field4 disabled and not updated,
this means also the submitedvalue is not cleared. So on the next rendering the previous submited value is rerendered.

Until the disabled attribute of field4 evaluates to true, or a new view is created, always the previous submited value is rerendered for field4.

This is no bug, this is jsf lifecycle behavior.

If you move the field1 tag behind the others you app will work as expected. 

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Commented: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490622 ] 

Volker Weber commented on TOBAGO-337:
-------------------------------------

for tree weeks no futher comment, and i still can't see why this should b a bug

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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


[jira] Commented: (TOBAGO-337) field value can't be setted or cleared if state changes from enabled to disabeld

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484351 ] 

Volker Weber commented on TOBAGO-337:
-------------------------------------

I'm not fully sure what you are talking about, but if you are changing the evaluated value of a disabled (or readonly) expression during the jsf lifecycle (exept between after updateModel and before renderResponse) you will get such unexpected behavior.

if (i guess) in your case the value of field1 updates (in updateModel) to less than 100 the other fields are disabled and not updated.
The submited values stays in the component and are rerendered to the client, even if the model has another value.

I'm closing this because ther is no bug, please reopen if you still think this is a bug in tobago.

> field value can't be setted or cleared if state changes from enabled to disabeld
> --------------------------------------------------------------------------------
>
>                 Key: TOBAGO-337
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-337
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap (23.03.2007), tobago 1.0.11 snap (17.03.2007)
>            Reporter: Guido Dubois
>             Fix For: 1.0.11
>
>         Attachments: disabled.war
>
>
> if field state changes from enabled to disabled it is not possible to set or clear the fields content

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