I had a similar problem. After trying many things the only solution was to do as the devs suggested: make sure the ModalWindow that opens the modal with the form in it is ITSELF in a form. Not sure why this is the only way to get modal forms with DatePickers working on IE 8 - it just is.
We fixed this in the Wicketstuff ModalX framework by setting up n ModalWindowS each enclosed in a form - all set up in your base page class. This ensures that every page in your app has available at any time n 'already form wrapped' ModalWindowS to you. N is chosen by the developer to be the maximum number of nested forms that you will ever need. 2-3 is fine for most apps. 3 is good because it allows nesting to 2 levels of modals + 1 for an extra ModalX MessageBox if required to alert the user while on the 2 form. >-----Original Message----- >From: Matt [mailto:matthieu.laurent-...@sgcib.com] >Sent: Friday, 10 February 2012 12:13 AM >To: users@wicket.apache.org >Subject: Problem DatePicker, ModalWindow and IE8 > >Hi everybody, > >I've got some issue about the DatePicker. > >I'm using Wicket 1.4.17 with wicket extension 1.4.17 as well. > >I'v got a modal window, with a form and inside a datetextfield with a >datepicker. Everything is working fine with firefox but not with IE8. > >In fact, i can display the calendar when i click on the calendar icon, i >can >select a day (which closes the datepicker), but i can't close it with the >close button nor change the current month displayed ... . > >When i put my mouse over one of those buttons (close or change month), i >don't have the "pointer" cursor and when i click it does nothing. > >I don't have any javascript error neither. > >I tried the datepicker on IE8 but not in a modal window, and it's working. > >The only thing that succeded, is that a changed the css attribute >"position" >of the close button (set to "relative"), and then i can click the button >but >the style is broken and i the the text "Close" above the image in backround >(tried to fix the style then but it's a pain in the ass). > >Here is some of my code : > >/<form wicket:id="modalForm"> > <div wicket:id="modal"></div> > </form>/ > >Panel added inside the modal : > >/<form wicket:id="insideForm" class="form"> > <ul> > <li> ....... > ...... ><li> > <label>Wicket message</label> > <input wicket:id="date" type="text" ></input> ></li>/ > >Java code is "classical", may be not useful (as html may be lol). > >I try hard to fix this but nothing is really working. Maybe it comes from >the way i'm doing it but i can't figure out where ... . > >If somebody has an idea, or had and fixed this issue in the past .... > >Thanks ^^ > >-- >View this message in context: http://apache- >wicket.1842946.n4.nabble.com/Problem-DatePicker-ModalWindow-and-IE8- >tp4372772p4372772.html >Sent from the Users forum mailing list archive at Nabble.com. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org