Hi, For this you will need to use Javascript. E.g. you can use jQuery#ajax() to make a HEAD request to the url. If it returns an error, then remove the "target" attribute and apply some JS to show a popover when the link is clicked. This is not Wicket related so you will have to use Google for more information.
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 11, 2016 at 7:56 PM, ASHU_JAVA <[email protected]> wrote: > Hi Martin, > > I've implemented the External Links as shown in below code > > > Can you please suggest how to provide a Pop-up if the External link doesn't > work i.e. if a link is clicked and the link is an invalid URL, it should > open a pop-up with error message instead of a new tab? > > Thanks in advance. > > > -- > View this message in context: http://apache-wicket.1842946. > n4.nabble.com/java-wickets-menu-on-image-button-tp4675602p4675739.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
