Re: [Wicket-user] Playing with models:)/wicket.extensions.markup.html.form.palette.Palette;

2006-07-18 Thread Johan Compagner
n Behalf Of Igor Vaynberg Sent: 17. juli 2006 17:32 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Playing with models:)/wicket.extensions.markup.html.form.palette.Palette;   components whose model is backed by a collection do not always call setobject() because they work on the col

Re: [Wicket-user] Playing with models:)/wicket.extensions.markup.html.form.palette.Palette;

2006-07-18 Thread Nino Wael
Vaynberg Sent: 17. juli 2006 17:32 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Playing with models:)/wicket.extensions.markup.html.form.palette.Palette;   components whose model is backed by a collection do not always call setobject() because they work on the collection

Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Igor Vaynberg
Of Eelco HilleniusSent: 17. juli 2006 12:14To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;>> When is setObject supposed to get called, Cause I only see it get called during > construct?Whenever a (for

Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Nino Wael
: Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette; > > When is setObject supposed to get called, Cause I only see it get called > during > construct? Whenever a (form)component has to update it's model contents. Or if you call setObj

Re: [Wicket-user] Playing with models:) / wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Eelco Hillenius
> > When is setObject supposed to get called, Cause I only see it get called > during > construct? Whenever a (form)component has to update it's model contents. Or if you call setObject explicitly of course :() Typically, a component update is done by Form, which visits all it's children and cal

Re: [Wicket-user] Playing with models:)

2006-07-16 Thread Nino Wael
Thanks;)   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 14. juli 2006 15:07 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Playing with models:)   Disableding/Enableing can be done with pull (attributemodifiers on C/D

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Johan Compagner
.net Subject: Re: [Wicket-user] Playing with models:)   ok you just want to prefill it everytime the page/textarea is rendered? What happens then to the previous value the user just typed in?? If for example you used a normal detachable model (so not readonly) And the first time you load some defa

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
      From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 14. juli 2006 14:18 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Playing with models:)   ok you just want to prefill it everytime the page/textarea is rendered? What happens then

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Johan Compagner
t;, detachdebugmodel);-Original Message- From:   [EMAIL PROTECTED] on behalf of Johan CompagnerSent:   Fri 14-07-2006 13:37To:     wicket-user@lists.sourceforge.netCc:Subject:Re: [Wicket-user] Playing with models:)But what do you set then?another id?You can't set the object really. Bec

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
} } }; TextArea myText = new TextArea("debugmodel", detachdebugmodel); -Original Message- From: [EMAIL PROTECTED] on behalf of Johan Compagner Sent: Fri 14-07-2006 13:37 To: wicket-user@lists.sourceforge.net Cc:

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Johan Compagner
ge-From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Gwyn EvansSent: 14. juli 2006 12:39To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Playing with models:) You'd normally set all the internal objects up during the initialload() processing, which is called once

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gwyn Evans Sent: 14. juli 2006 12:39 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Playing with models:) You'd normally set all the internal objects up during the initial load() proce

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Gwyn Evans
lenius > Sent: 14. juli 2006 09:26 > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Playing with models:) > > IModel#getObject is called anytime a component accesses it. Basically, > you should never depend on that method getting called a fixed number > o

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
: Re: [Wicket-user] Playing with models:) IModel#getObject is called anytime a component accesses it. Basically, you should never depend on that method getting called a fixed number of times; it is not designed for that. Typically if you need to do heavy operations such as loading data from a

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Igor Vaynberg
i wanna play with models too, but my wife wont let me :( -Igor On 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: IModel#getObject is called anytime a component accesses it. Basically,you should never depend on that method getting called a fixed numberof times; it is not designed for that. Typ

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Eelco Hillenius
IModel#getObject is called anytime a component accesses it. Basically, you should never depend on that method getting called a fixed number of times; it is not designed for that. Typically if you need to do heavy operations such as loading data from a database, you should use detachable models. A g

[Wicket-user] Playing with models:)

2006-07-13 Thread Nino Wael
Hah got your Attention there, though sadly enough its only abstractmodels.   Im not sure when getObject are supposed to be called(what triggers a call).   The following I can see are that my model are called on page construct(which makes sense to me). But on form submit the model are ca