DateTime.setLabel() issue and a related (but general) setLabel() question

2008-03-12 Thread Phil Grimm
Hey Guys, I'm building my first Wicket app and, so far, am really loving Wicket! I've built my first form and am stumped on a issue with the DateTime component. I call setLabel() on all the fields in my form and all the labels I provide appear in the validation error messages except one, the

Re: DateTime.setLabel() issue and a related (but general) setLabel() question

2008-03-12 Thread Gerolf Seitz
you can override newDateTextField(..) and call .setLabel() directly on the DateTextField in there. Gerolf On Wed, Mar 12, 2008 at 10:26 PM, Phil Grimm [EMAIL PROTECTED] wrote: Hey Guys, I'm building my first Wicket app and, so far, am really loving Wicket! I've built my first form and am

Re: DateTime.setLabel() issue and a related (but general) setLabel() question

2008-03-12 Thread Igor Vaynberg
shouldnt DateField forward its label to the internal field? -igor On Wed, Mar 12, 2008 at 2:32 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: you can override newDateTextField(..) and call .setLabel() directly on the DateTextField in there. Gerolf On Wed, Mar 12, 2008 at 10:26 PM, Phil

Re: DateTime.setLabel() issue and a related (but general) setLabel() question

2008-03-12 Thread phil59
Igor, That's what I was thinking to suggest too, but I think that solution breaks down when the component has more than one internal field like DateTimeField does. Gerolf, Thanks for the tip. I think that should work for the dateField. Any ideas on what would one do to set the label on the