You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2015/01/20 22:06:34 UTC

[jira] [Reopened] (WICKET-4551) Enable components underneath disabled components

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

Sven Meier reopened WICKET-4551:
--------------------------------
      Assignee: Sven Meier  (was: Martin Grigorov)

The committed change requires the user to override two methods, #isLinkEnabled() and #canCallListenerInterface() to enable a link inside a disabled hierarchy. It is a solution solely for links.

With WICKET-4904 #isLinkEnabled() is no longer present in Wicket 7.

We should find a better solution, see http://markmail.org/message/aq7explobmfevwmi for a discussion.

> Enable components underneath disabled components
> ------------------------------------------------
>
>                 Key: WICKET-4551
>                 URL: https://issues.apache.org/jira/browse/WICKET-4551
>             Project: Wicket
>          Issue Type: Wish
>          Components: wicket
>            Reporter: J. Lind
>            Assignee: Sven Meier
>            Priority: Minor
>             Fix For: 7.0.0-M3
>
>         Attachments: AlwaysOnAjaxLink.java, quickstart.zip
>
>
> I would like to force some child components to be enabled regardless of the state of the parent component. For example, I would like to have an ajax link within a form that is enabled allthough the form itself is disabled. A suggested solution to override org.apache.wicket.markup.html.link.AbstractLink#isLinkEnabled() and
> org.apache.wicket.Component#canCallListenerInterface(Method) did not work (see quickstart). Method Component#isEnabledInhierarchy might do the trick but is marked final.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)