without looking into code, you probably need to add a behavior with onclick to the text field. look how it's done in the click on icon.
Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Aug 20, 2009 at 4:19 PM, copenhag copenhagen <copenha...@gmail.com>wrote: > Hi Troy, > > Thanks for the swift answer. > > I know that you can attach a TextField to a DatePicker, but how would i > make > the > calendar popup by just pressing the text field. > > As it is now i have to click the calendar icon, but i want to pop the > calendar, by clicking on the field also. > > Just as in the example: > http://blog.davglass.com/files/yui/cal2/< > http://www.ajaxbestiary.com/2008/10/19/yui-calendar-popup-from-text-input/ > > > > Best Regards > Cemil > > On Thu, Aug 20, 2009 at 2:52 PM, Troy Cauble <troycau...@gmail.com> wrote: > > > I'm doing this in 1.3.6. > > -troy > > > > > > import org.apache.wicket.extensions.markup.html.form.DateTextField; > > import org.apache.wicket.extensions.yui.calendar.DatePicker; > > > > ... > > DateTextField date = new DateTextField("date", > > "MM/dd/yyyy"); > > date.add(new DatePicker()); > > form.add(date); > > > > > > On Thu, Aug 20, 2009 at 7:52 AM, copenhag > > copenhagen<copenha...@gmail.com> wrote: > > > Hi, > > > > > > Has anyone made it possible to attached an input field to the > datepicker, > > > so that the calendar popup's when the input field is selected ? > > > > > > I have tried, but i could not make it work. > > > > > > Also searching did not provide any wicket examples. > > > > > > I want the calendar to work as the example in this link: > > > > > > http://www.ajaxbestiary.com/2008/10/19/yui-calendar-popup-from-text-input/ > > > > > > Only difference is i want it to work in a Wicket environment. > > > > > > Please assist if anyone can help. > > > > > > Best Regards > > > Cemil > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >