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 2018/01/17 17:53:00 UTC
[jira] [Closed] (WICKET-6521) setEnable(false) on anchor should add
disabled="disabled" in HTML
[ https://issues.apache.org/jira/browse/WICKET-6521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier closed WICKET-6521.
------------------------------
Resolution: Won't Fix
Assignee: Sven Meier
Wicket won't render non-standard attributes.You can use a behavior for that - see WICKET-4904 for inspiration.
> setEnable(false) on anchor should add disabled="disabled" in HTML
> -----------------------------------------------------------------
>
> Key: WICKET-6521
> URL: https://issues.apache.org/jira/browse/WICKET-6521
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 8.0.0-M8
> Reporter: Aleksandra
> Assignee: Sven Meier
> Priority: Major
>
> When you setEnable(false) on a <button> then Wicket puts disabled="disabled" attribute in the markup.
> Unfortunately this is not the case with anchor tag - setEnable(false) on <a> does nothing.
> I know that not all browsers handle this attribute properly, but if you set it, I could at least match on this attribute in CSS like this:
> {code:java}
> a[disabled] {
> pointer-events: none;
> cursor: default;
> }{code}
> and therefore disable it manually
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)