You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Marcel May (JIRA)" <ji...@apache.org> on 2009/03/06 14:05:58 UTC
[jira] Updated: (WICKET-2147) Missing final semicolon in onclick JS
for Link
[ https://issues.apache.org/jira/browse/WICKET-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel May updated WICKET-2147:
--------------------------------
Description:
When using a Link for a DIV, Wicket automatically renderes JS for the onclick handler.
The JS should 'nicely' end with a semicolon, otherwise additionally appended JS can get messed up (eg by an added behavior).
Other Link implementations do include a final semicolon (SubmitLink.java etc) and therefore work smoothly.
Example:
<div ... onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../SomeWhere; } ;return false">
</div>
should include a final semicolon in the onclick JS, after the 'return false':
<div ... onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../SomeWhere'; } ;return false;">
</div>
was:
When using a Link for a DIV, Wicket automatically renderes JS for the onclick handler.
The JS should 'nicely' end with a semicolon, otherwise additionally appended JS can get messed up (eg by an added behavior).
Other Link implementations do include a final semicolon (SubmitLink.java etc) and therefore work smoothly.
Example:
<div ... onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../SomeWhere; } ;return false">
</div>
should include a final semicolon in the onclick JS, after the 'return false':
<div ... onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../../ticket/name/SUP-107'; } ;return false;">
</div>
> Missing final semicolon in onclick JS for Link
> ----------------------------------------------
>
> Key: WICKET-2147
> URL: https://issues.apache.org/jira/browse/WICKET-2147
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4-RC2
> Reporter: Marcel May
>
> When using a Link for a DIV, Wicket automatically renderes JS for the onclick handler.
> The JS should 'nicely' end with a semicolon, otherwise additionally appended JS can get messed up (eg by an added behavior).
> Other Link implementations do include a final semicolon (SubmitLink.java etc) and therefore work smoothly.
> Example:
> <div ... onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../SomeWhere; } ;return false">
> </div>
> should include a final semicolon in the onclick JS, after the 'return false':
> <div ... onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../SomeWhere'; } ;return false;">
> </div>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.