Details
Description
If the link target isn't a proper anchor, the code generates a JS on-click handler, i.e.
tag.put("onclick", "window.location.href='" + url + "';");
which generates code such as
onclick='window.location.href="http://news.bbc.co.uk";'
The problem is that when this is used with a button /in a form/, while this works with IE & FF2, it appears that FF3 needs a 'return false;' at the end of the JS before it works, otherwise it just treats the button as a 'submit' action.
So, is there any down-side to changing the above line in
\org\apache\wicket\markup\html\link\ExternalLink.java
to be
tag.put("onclick", "window.location.href='" + url + "'; return false;"); ?
/Gwyn