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

Reply via email to