You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/11/23 18:15:44 UTC

[jira] Resolved: (WICKET-1953) isEnabled called even if component is not Visible

     [ https://issues.apache.org/jira/browse/WICKET-1953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1953.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC2
         Assignee: Igor Vaynberg

> isEnabled called even if component is not Visible
> -------------------------------------------------
>
>                 Key: WICKET-1953
>                 URL: https://issues.apache.org/jira/browse/WICKET-1953
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC1
>            Reporter: Jim Larsen
>            Assignee: Igor Vaynberg
>             Fix For: 1.4-RC2
>
>
> in the Form class i came across this code (not by accident thow :-))
> if (component.isEnabled() && component.isEnableAllowed() &&
>     component.isVisibleInHierarchy())
> {
>         ((IFormModelUpdateListener)component).updateModel();
> }
> The result of this is that isEnabled is called on components that is not even visible
> I would like this changed to:
> if (component.isVisibleInHierarchy() &&
>     component.isEnabled() && component.isEnableAllowed())
> {
>         ((IFormModelUpdateListener)component).updateModel();
> }

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