Sounds like a clever shortcut, but does it offer any benefit? Michael
-----Original Message----- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 3:15 PM To: [email protected] Subject: Re: PropertyModel of textfield not being updated new PropertyModel(eventSchedule,"foo") where is eventschedule referenced, how is it loaded? i would make that a property of the page and do it like this: new PropertyModel(this, "eventSchedule.foo") -igor On Mon, Apr 21, 2008 at 12:07 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I got a textfield: > > > > add(fooTextField = new TextField("foo", new PropertyModel(eventSchedule, > "foo"), Integer.class)); > > > > eventSchedule is a bean that has a foo field which is an integer. > > > > For some reason it's never being updated, although the field picks it up > when I programmatically call eventSchedule.setFoo(). > > > > I'm using this with AJAX and have all my component ids set and the > textfield added to the target. > > > > Any ideas? > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
