[
http://issues.apache.org/jira/browse/TAPESTRY-788?page=comments#action_12367575
]
Raphael Jean commented on TAPESTRY-788:
---------------------------------------
I found out that the problem happens when the Calendar main DIV is appended to
the document body. This happens at the very end of the Calendar.create()
function. If IE hasn't finished rendering the page at this moment, then an
error occurs.
This problem is not limited to portlets by the way. I've heard people having
the same problem when including a jsp footer.
Using a timer would probably help but will probably not eliminate the problem
completely as rendering a portal page can take a long time.
Another way to fix this specific problem with DatePicker is to delay the
creation of the floating DIV until the DatePicker is opened:
Calendar.prototype.toggle = function(element) {
+ if (this._calDiv == null)
+ create();
if(this._showing) {
this.hide();
} else {
this.show(element);
}
}
and remove the this.create() call in Calendar.initialize()
This seems to work fine.
> DatePicker doesn't work in a portlet. Initialization script is run before
> window finishes loading.
> --------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-788
> URL: http://issues.apache.org/jira/browse/TAPESTRY-788
> Project: Tapestry
> Type: Bug
> Components: Portlet
> Versions: 4.0
> Environment: Tapestry 4.0-beta-13
> Jetspeed 2 portal
> Reporter: Raphael Jean
> Assignee: Jesse Kuhnert
> Fix For: 4.1
>
> When using a DatePicker in a Tapestry portlet, IE displays an error message
> during page loading and aborts:
> "Internet Explorer cannot open the site http://localhost. Operation aborted"
> It appears that this is caused by the initialization script of the DatePicker
> component being run before the window finishes loading. The script is run
> right before the portlet finishes rendering, which, in a portal environment,
> is not necessarily the end of the page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]