You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Farhan (JIRA)" <ji...@apache.org> on 2010/03/23 08:52:27 UTC

[jira] Commented: (WICKET-1940) DatePicker in ModalWindow for IE7

    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848604#action_12848604 ] 

Farhan commented on WICKET-1940:
--------------------------------

I am also getting a scripting error in IE when using YUI DatePicker. The DatePicker is part of a form contained within a panel, and the panel is rendered in a modal-window. As suggested by Matej/Gabriel, (and as per the ModalWindow javadocs) I added the modal-window itself in another wicket form. Now that does resolve the DatePicker scripting-error, but my form within the panel is no longer working as expected. 

Strangely, enclosing the modal-window in another form results in the form tag (within the panel) getting replaced by a <div> tag in the resulting page, with onSubmit() event attached to it, which is weird, and hence the Submit button reacts to the (default) form part of the modal window implementation, which is the very parent form in the hierarchy. 

Below is the <div> tag with the onsubmit event which i am referring to above, which really should be a <form> tag, as it was before i tried the solution. 

<div id="id269" onsubmit="var wcall=wicketSubmitFormById('id269', '?x=l*F2Z-vvlsgtuteLhpGYqUP-p0Prju6WvbPKvK5rCXmocNnl4xgDlMC2oiv7jeApNIdJJUpaJoLpF10SUaMz1QALvs4BdU5NUjwPEIYl0WlBchN86VEYhYQ0N5EbaYaPgRY*F0cYbevfcrN2TJfXJMi4phSfh59YXU5VUWXtZhvdFoEfo0KksqlpIxqO6U*8', null,null,null, function() {return Wicket.$$(this)&amp;&amp;Wicket.$$('id269')}.bind(this));return false;;"> 

> DatePicker  in ModalWindow for IE7
> ----------------------------------
>
>                 Key: WICKET-1940
>                 URL: https://issues.apache.org/jira/browse/WICKET-1940
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4-M3
>         Environment: Windows XP, tomcat 6, jdk 6 
>            Reporter: Jens Alenius
>            Assignee: Igor Vaynberg
>            Priority: Critical
>
> Hi. This is what I have done: 
> I'm populating the modalwindow with a panel. 
> In that Panel I have a DateTextField (not the extensions DateTextField). I add a DatePicker to that DateTextField. The DatePicker is shown in both IE 7 and firefox. 
> Now I add a form in the panel and adds the DateTextField to the form. The DatePicker is shown in FireFox but in IE7 i get 
> "unknown runtime error" at line 2994. 
> I have read somewhere that you can get by this error if you add a page to the modalwindow instead of a Panel. I dont want to do that because I have a superclass panel that add save and cancel buttons in the modalwindow. 
> Jens Alenius

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.