Open link in new tab which are part of a label..
Hi Can anyone tell me how to make a link open in new tab which is part of a label like a paragraph? I cant usetags so how would I make sure that links which are part of that label open in new tab? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Open-link-in-new-tab-which-are-part-of-a-label-tp4651977.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Open link in new tab which are part of a label..
afaik the link should have attribute target=_blank On Thu, Sep 13, 2012 at 8:08 PM, kshitiz k.agarw...@gmail.com wrote: Hi Can anyone tell me how to make a link open in new tab which is part of a label like a paragraph? I cant usetags so how would I make sure that links which are part of that label open in new tab? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Open-link-in-new-tab-which-are-part-of-a-label-tp4651977.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Open link in new tab which are part of a label..
Hi, Thanks for the reply. I knew about target attribute abut was not able to figure out how to use it for links which are part of a paragraph. But it just clicked my mind to add it after reading your response...:) : text.replaceAll((\\A|\\s)((http|https|ftp|mailto):\\S+)(\\s|\\z), $1 \$2\ target=\_blank\*$2 $4); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Open-link-in-new-tab-which-are-part-of-a-label-tp4651977p4651989.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org