You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Aleksandra (JIRA)" <ji...@apache.org> on 2018/01/17 12:23:01 UTC
[jira] [Created] (WICKET-6520) ExternalLink should offer
possibility to open a link in a new tab/window
Aleksandra created WICKET-6520:
----------------------------------
Summary: ExternalLink should offer possibility to open a link in a new tab/window
Key: WICKET-6520
URL: https://issues.apache.org/jira/browse/WICKET-6520
Project: Wicket
Issue Type: New Feature
Components: wicket
Affects Versions: 8.0.0-M8
Reporter: Aleksandra
ExternalLink by default opens a link in the same window however it is very common use case to open external links in a new tab/window.
Of course It is possible to change this behavior by overriding onComponentTag method and do {color:#808080}tag.put("target", "_blank"){color}, but this generates unnecessary boilerplate code.
I think that ExternalLink could have additional parameter in constructor defining whether this link should be opened in a new or the same tab (It could just put target="_blank" on a hrefs and formtarget="_blank" on buttons with _type="submit")._
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)