Maybe it's because i am a new Wicket user, but i tried that, without any
luck.

I can't figure out how the calendar is called when clicked on the icon, it's
pretty tricky for me how
it's done.

Best Regards
Cemil

On Thu, Aug 20, 2009 at 3:33 PM, Eyal Golan <[email protected]> wrote:

> 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
> [email protected]
>
> 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
> <[email protected]>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 <[email protected]>
> 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<[email protected]> 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: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
>

Reply via email to