You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Maxim Solodovnik (JIRA)" <ji...@apache.org> on 2018/01/17 14:06:00 UTC
[jira] [Commented] (WICKET-6520) ExternalLink should offer
possibility to open a link in a new tab/window
[ https://issues.apache.org/jira/browse/WICKET-6520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328803#comment-16328803 ]
Maxim Solodovnik commented on WICKET-6520:
------------------------------------------
There are too many possible options here ...
I would use: [https://ci.apache.org/projects/wicket/apidocs/8.x/org/apache/wicket/behavior/AttributeAppender.html] ....
> 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
> Priority: Minor
>
> 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)