[
https://issues.apache.org/jira/browse/WICKET-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985385#action_12985385
]
Willis Blackburn commented on WICKET-3338:
------------------------------------------
That's great, thanks!
Should get rid of "label" from ExternalLink in that case.
W
> Provide a way to set Link's label/body without using Label child
> ----------------------------------------------------------------
>
> Key: WICKET-3338
> URL: https://issues.apache.org/jira/browse/WICKET-3338
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5-RC1
> Reporter: Willis Blackburn
> Assignee: Martin Grigorov
> Fix For: 1.5-RC2
>
>
> This pattern occurs so frequently that Wicket should support it directly:
> Link myLink = new Link("myLink") { ... }
> myLink.add(new Label("my Label", "A Link"));
> add(myLink);
> becomes:
> LabelLink myLink = new LabelLink("myLink", "A Link");
> Obviously the second parameter could be a string or an iModel<?> that would
> be converted to a string.
> I see that there have been some discussions about this before; unfortunately
> apparently the thread has been deleted. But whatever arguments there are
> against LabelLink are IMHO defeated by the fact that ExternalLink *does* have
> a label model! So why are labels okay for external links but not for
> internal links?
> I actually think that ExternalLink should have its label removed; there are
> many cases in which external links do not have labels, and this would save
> several bytes per label. But there should be a LabelExternalLink as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.