You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by esajjkh <pr...@gmail.com> on 2012/07/10 14:40:21 UTC

DatePicker does not work in IE9

I am using  .extensions.yui.calendar.DateTimeField  component and overriding
the newDatePicker method.  It works fine in firefox,chrome but in IE9 when I
click on the datepicker icon it does not show the datepicker calendar. 
This dateTimeField is inside the Form component. Below is the code snippet.

endDateTimeField = new DateTimeField("endDateInput", endDateModel) {

            @Override
            protected boolean use12HourFormat() {
                return false;
            }

            @Override
            protected DatePicker newDatePicker() {
                return getConferenceDatePicker();
            }
        };

//add into form
 form.add(endDateTimeField);

 private DatePicker getConferenceDatePicker() {
        return new DatePicker() {

            private final SimpleDateFormat format = new
SimpleDateFormat(MONTH_DAY_YEAR);

            @Override
            protected void configure(Map<String, Object> widgetProperties,
IHeaderResponse response, Map<String, Object> initVariables) {
                super.configure(widgetProperties, response, initVariables);
                widgetProperties.put("mindate", format.format(new Date()));
            }

            @Override
            protected boolean showOnFieldClick() {
                return true;
            }

            @Override
            protected boolean autoHide() {
                return true;
            }
        };

I have added this field into SPAN in the html.


The same code works with ModelWindow even in IE9 but the only problem is
when it is added in the Form it stops working. Any idea?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-in-IE9-tp4650428.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DatePicker does not work in IE9

Posted by esajjkh <pr...@gmail.com>.
Thanks for your help, I tried it but no luck. I tried this one:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html
    xmlns="http://www.w3.org/1999/xhtml"
   
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
    xml:lang="en"
    lang="en">

It works fine with ModalWindow but inside the Form component the same
component DateTimeField's datePicker icon is not working. To strange
sometimes It works but most of the time no change. 
Any idea please?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-in-IE9-tp4650428p4650437.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DatePicker does not work in IE9

Posted by lang <de...@telfort.nl>.
Try this in your html document on the first line

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org">

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-in-IE9-tp4650428p4650429.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DatePicker does not work in IE9

Posted by esajjkh <pr...@gmail.com>.
It is fixed:
Instead of adding direct the DateTimeField in the Form, I added it into the
WebMarkupContainer and then I added this markupcontainer into the Form, this
is how I make it  work :)




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-in-IE9-tp4650428p4650443.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org