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
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
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;
>
> 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
>
> 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
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
.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
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
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
}
}
};
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:
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
-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
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:)
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
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
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
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
17 matches
Mail list logo