[
https://issues.apache.org/jira/browse/WICKET-5608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054854#comment-14054854
]
Martin Grigorov edited comment on WICKET-5608 at 7/8/14 11:36 AM:
------------------------------------------------------------------
Changing the <span> with <div> didn't help. But I think it is a good change
because the currently produced HTML is invalid!
The only way I was able to see it working in IE8 is by replacing
{code}
this.oDomContainer.innerHTML = html.join("\n"); // this is line 3336
{code}
to
{code}
Wicket.DOM.replace(this.oDomContainer.firstChild, html.join("\n"));
{code}
Quite ugly, isn't it?
Now I see that calendar.js #renderBody() produces invalid HTML when doing:
{code}
html[html.length] = tempDiv.innerHTML;
{code}
Only in IE it doesn't wrap the id values in quotes. E.g. <td id=some_cell_id
class="some classes">...
I'll try to fix it with some Regex and see whether it helps.
was (Author: mgrigorov):
Changing the <span> with <div> didn't help. But I think it is a good change
because the currently produced HTML is invalid!
The only way I was able to see it working in IE8 is by replacing
{@code}
this.oDomContainer.innerHTML = html.join("\n"); // this is line 3336
{@code}
to
{code}
Wicket.DOM.replace(this.oDomContainer.firstChild, html.join("\n"));
{code}
Quite ugly, isn't it?
Now I see that calendar.js #renderBody() produces invalid HTML when doing:
{code}
html[html.length] = tempDiv.innerHTML;
{code}
Only in IE it doesn't wrap the id values in quotes. E.g. <td id=some_cell_id
class="some classes">...
I'll try to fix it with some Regex and see whether it helps.
> Calendar (DataPicker) javascript error in modal window under IE 8
> -----------------------------------------------------------------
>
> Key: WICKET-5608
> URL: https://issues.apache.org/jira/browse/WICKET-5608
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 6.9.1, 6.15.0
> Reporter: Lech S.
> Attachments: calerr.7z
>
>
> When:
> * modal window was created using modal.setContent()
> * containing calendar
> * calendar (datePicker) component is clicked under IE 8
> Then Javascript error is being thrown:
> {code}
> Webpage error details
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
> Timestamp: Wed, 4 Jun 2014 15:17:47 UTC
> Message: Unknown runtime error
> Line: 3336
> Char: 9
> Code: 0
> URI:
> http://localhost:8080/calerr/wicket/resource/org.apache.wicket.extensions.yui.YuiLib/calendar/calendar.js
> {code}
> This bug exist since Wicket 6.9.1 (6.15.0 still present)
--
This message was sent by Atlassian JIRA
(v6.2#6252)