You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jens Alenius (JIRA)" <ji...@apache.org> on 2008/11/18 08:57:44 UTC

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

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
            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.


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

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764808#action_12764808 ] 

Gabriel LANDON commented on WICKET-1940:
----------------------------------------

The solution is indeed to put the modal inside a wicket form (not only the HTML tag):

Example :

-----html ----
<form wicket:id="form">
    <div wicket:id="modale">[Modale]</div>
</form>


----- Java -------
Form<Void> form = new Form<Void>("form");
add(form);
/** La modale. */
ModalWindow modal = new ModalWindow("modale");
form.add(modal);


Like that DatePicker works like a charm with IE...


> 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.


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

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748162#action_12748162 ] 

Gabriel LANDON commented on WICKET-1940:
----------------------------------------

I've included my modal in a form and Yes! it works :
<form>
	 <div wicket:id="modal">[Modal]</div>
</form>

So it's not really a YIU problem, but more likely a wicket bug... I'm going to vote for #2214 right now as it will solve this one...

> 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.


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

Posted by "Farhan (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Martynas Jurkus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738353#action_12738353 ] 

Martynas Jurkus commented on WICKET-1940:
-----------------------------------------

There is an extra form tag in modal window html code (modal.js -> Wicket.Window.getMarkup function), it causes problems when ModalWindow is used with panel that contain forms. 

You can read here how to fix this (in the last comment): https://issues.apache.org/jira/browse/WICKET-2214

> 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.


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

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748911#action_12748911 ] 

Gabriel LANDON commented on WICKET-1940:
----------------------------------------

But as with a page as it's an Iframe, sometimes when the calendar appears, it's displayed a little bit under the main page (only if the date picker is at the bottom of the page).
An also with a page you can't put a modal inside another modal (2 or more modal windows inside each other).


> 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.


[jira] Issue Comment Edited: (WICKET-1940) DatePicker in ModalWindow for IE7

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748176#action_12748176 ] 

Gabriel LANDON edited comment on WICKET-1940 at 8/26/09 2:59 PM:
-----------------------------------------------------------------

At first I tought it was working.. but no! Still got a Js error on line :
this.oDomContainer.innerHTML = html.join("\n");

I've tried the workaround (replace <form by <div in the resource) posted in #WICKET-2214.
I've also tried to put the modal in a form.

So still got no solution but to use a modal window with a page (iframe) instead of a panel.


      was (Author: tahitiangabriel):
    At first I tought it was working.. but no! Still got a Js error on line :
this.oDomContainer.innerHTML = html.join("\n");

I've tried the workaround (replace <form by <div in the resource) posted in #WICKET-2214.
I've also tried to put the modal in a form.

So still got no solution but to use a modal window with a page (iframe) instead of a panel.





  
> 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.


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

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel LANDON updated WICKET-1940:
-----------------------------------

    Comment: was deleted

(was: I've included my modal in a form and Yes! it works :
<form>
	 <div wicket:id="modal">[Modal]</div>
</form>

So it's not really a YIU problem, but more likely a wicket bug... I'm going to vote for #2214 right now as it will solve this one...)

> 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.


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

Posted by "Jens Alenius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848611#action_12848611 ] 

Jens Alenius commented on WICKET-1940:
--------------------------------------

I solved this problem by using a pagecreator instead. The problems with 
the datepicker whent away. But I sooner found out that pagecontent was 
hard to work against if you wanted to add some standard buttons on 
everymodal window. Like cancel ok. I solver this by creating a 
ModalWindowPage that I could att a pnael content to. Just use the 
pagecreator and the modalwindow will work
Jens



> 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.


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

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700911#action_12700911 ] 

Gabriel LANDON commented on WICKET-1940:
----------------------------------------

I've got the same problem with the datepicker component in a modalWindow with IE.

I have tried with the wicket-stuff Calendar component. It works great with firefox, but it is diplay behind the ModalWindow in IE6/7 (zindex trouble?).
So no solution for tihs bug at the moment...




> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1940.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

looks like the error is coming from inside the yui library so we cant exactly fix it. you can try wicket-calendar project in wicket-stuff for an alternative implementation of a datepicker.

> 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.


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

Posted by "Gabriel LANDON (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748176#action_12748176 ] 

Gabriel LANDON commented on WICKET-1940:
----------------------------------------

At first I tought it was working.. but no! Still got a Js error on line :
this.oDomContainer.innerHTML = html.join("\n");

I've tried the workaround (replace <form by <div in the resource) posted in #WICKET-2214.
I've also tried to put the modal in a form.

So still got no solution but to use a modal window with a page (iframe) instead of a panel.






> 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.