downloadsha3by / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

Cannot attach a DatePicker to a div or span (inline mode) #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In DatePicker Java doc it says:

 "By default, the datepicker calendar opens in a small overlay onFocus and closes
  automatically onBlur or when a date if selected. For an inline calendar, simply attach the datepicker to a div or span."

This is not possible because it extends TextField<T> class which has the 
following in the onComponent(...) method: 

// Must be attached to an input tag
        checkComponentTag(tag, "input");

Original issue reported on code.google.com by corneliu...@gmail.com on 21 May 2012 at 9:37

GoogleCodeExporter commented 9 years ago
use InlineDatePicker instead of DatePicker

Original comment by hielke.hoeve on 21 May 2012 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 22 May 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Hallo,

how do i pass a PropertyModel to InlineDatePicker?
Or is there any other way to use InlineDatePicker to _set_ some Date object I 
pass to the form?

There is no constructor with Model parameter.
Adding it per setDefaultModel also doesn't seam to do what I want.

Original comment by roman...@gmail.com on 2 Nov 2012 at 11:57