DateField strangeness

2008-05-20 Thread Michael Mehrle
I'm adding a DateField like this:

 

DateField endTimeField = new DateField(eventSchedule.endTime);

 

Now, when I open my page I see two fields - one with the id
eventSchedule.endTime and one next to it, before the JS calendar icon
called 'date83'.  All I want to do is to show one field followed by the
JS calendar icon.

 

Is there something I'm missing here?

 

Michael



Re: DateField strangeness

2008-05-20 Thread Gerolf Seitz
iirc, that happens when the corresponding markup of the DateField is
an input tag and not a div tag.
DateField is a Panel (or FormComponentPanel), but not a FormComponent
like TextField.

hth,
  Gerolf

On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:

 I'm adding a DateField like this:



 DateField endTimeField = new DateField(eventSchedule.endTime);



 Now, when I open my page I see two fields - one with the id
 eventSchedule.endTime and one next to it, before the JS calendar icon
 called 'date83'.  All I want to do is to show one field followed by the
 JS calendar icon.



 Is there something I'm missing here?



 Michael




RE: DateField strangeness

2008-05-20 Thread Michael Mehrle
Grrr - of course!! I originally mocked it as a TextField. Thanks :-)

Michael

-Original Message-
From: Gerolf Seitz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 1:52 PM
To: users@wicket.apache.org
Subject: Re: DateField strangeness

iirc, that happens when the corresponding markup of the DateField is
an input tag and not a div tag.
DateField is a Panel (or FormComponentPanel), but not a FormComponent
like TextField.

hth,
  Gerolf

On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:

 I'm adding a DateField like this:



 DateField endTimeField = new DateField(eventSchedule.endTime);



 Now, when I open my page I see two fields - one with the id
 eventSchedule.endTime and one next to it, before the JS calendar icon
 called 'date83'.  All I want to do is to show one field followed by the
 JS calendar icon.



 Is there something I'm missing here?



 Michael




Re: DateField strangeness

2008-05-20 Thread Igor Vaynberg
you should make it check what tag it is attached to :)

-igor

On Tue, May 20, 2008 at 1:52 PM, Gerolf Seitz [EMAIL PROTECTED] wrote:
 iirc, that happens when the corresponding markup of the DateField is
 an input tag and not a div tag.
 DateField is a Panel (or FormComponentPanel), but not a FormComponent
 like TextField.

 hth,
  Gerolf

 On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED]
 wrote:

 I'm adding a DateField like this:



 DateField endTimeField = new DateField(eventSchedule.endTime);



 Now, when I open my page I see two fields - one with the id
 eventSchedule.endTime and one next to it, before the JS calendar icon
 called 'date83'.  All I want to do is to show one field followed by the
 JS calendar icon.



 Is there something I'm missing here?



 Michael




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]