[
https://issues.apache.org/jira/browse/WICKET-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-1605.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4-RC2
1.3.6
Assignee: Igor Vaynberg
> onclick is null or not an object in IE6, IE7; Form.appendDefaultButtonField
> ---------------------------------------------------------------------------
>
> Key: WICKET-1605
> URL: https://issues.apache.org/jira/browse/WICKET-1605
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.3, 1.4-M1
> Environment: Windows XP Professional, glassfish, Internet Explorer 6
> and Internet Explorer 7
> Reporter: Martin Müller
> Assignee: Igor Vaynberg
> Priority: Minor
> Fix For: 1.3.6, 1.4-RC2
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> JavaScript error when radio button has focus and return key is pressed:
> IE6 and IE7 report a script error ("'onclick' is null or not an object"),
> which IMHO may be fixed in method
> - protected void
> org.apache.wicket.markup.html.form.Form.appendDefaultButtonField(final
> MarkupStream markupStream, final ComponentTag openTag)
> on line:
> buffer.append("'); if (typeof(b.onclick) != 'undefined') { var r =
> b.onclick.bind(b)(); if (r != false) b.click(); } else { b.click(); };
> return false;\" ");
> It works for me replacing this line by:
> buffer.append("'); if ((b.onclick != null) && (typeof(b.onclick) !=
> 'undefined')) { var r = b.onclick.bind(b)(); if (r != false) b.click(); }
> else { b.click(); }; return false;\" ");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.