Re: Form with backing loadabledetachable model

2016-12-19 Thread Sven Meier
Hi, you should brush up your model usage: final MyBean tst = poItemsListModel.getObject(); Your pulling the model object from the model *once* only. The reference 'tst' never gets updated, when the model changes. I've attached an alternative solution below. I'd recommend not changing mo

Re: Form with backing loadabledetachable model

2016-12-19 Thread ganea iulia
Hello, =Here is the RefreshingView link item. When clicking on this link, the form should be filled with the values of this RefreshingView line. When click on the link, I set the property itemmodel with the line model. The itemmodel is then used by the LoadableDetacheableModel, to get the values f

Re: Form with backing loadabledetachable model

2016-12-16 Thread Sven Meier
Hi, >Or if using getModelObject(), all values are null, because, the backing >model of the form is null. how does your LDM load its model object? Show us some code or better create a quickstart so someone can take a look at it. Sven On 16.12.2016 16:24, ganea iulia wrote: Hello, I have a

Form with backing loadabledetachable model

2016-12-16 Thread ganea iulia
Hello, I have a list of items in a Refreshing View. When I click on a link inside the Refreshing View, a form in the same page should get populated with the values from the line. I have managed to do this, by having inside the Form a LoadableDetacheableModel and then use this model as backing mode

Re: [7.2] LoadableDetachable model attached but object null?

2016-03-16 Thread nino martinez wael
Our backend threw a null, which gave problems in other places..SO this is not a wicket problem :) On Wed, Mar 16, 2016 at 9:18 AM, nino martinez wael wrote: > Now this is really strange! I can confirm that load are being called. > I will digg further, looks like it could be some kind of injection

Re: [7.2] LoadableDetachable model attached but object null?

2016-03-16 Thread nino martinez wael
Now this is really strange! I can confirm that load are being called. I will digg further, looks like it could be some kind of injection issue.. Which probably are related to the other problem I have with the modal window as it only occurs when the user have two tabs open.. On Wed, Mar 16, 2016 at

Re: [7.2] LoadableDetachable model attached but object null?

2016-03-16 Thread nino martinez wael
Hi Sven I agree. But in this case it seems that load are never being called because state=attached.. :( I will check whether detached are ever being called. On Wed, Mar 16, 2016 at 8:52 AM, Sven Meier wrote: > Hi, > > load() may return null, nothing (inherently) wrong with that. > > Sven > > On

Re: [7.2] LoadableDetachable model attached but object null?

2016-03-16 Thread Sven Meier
Hi, load() may return null, nothing (inherently) wrong with that. Sven On 16.03.2016 08:48, nino martinez wael wrote: Hi Any ideas on how a loadableDetachableModel can become in attached state but the refered object are null? Seems to be out of sync? --

[7.2] LoadableDetachable model attached but object null?

2016-03-16 Thread nino martinez wael
Hi Any ideas on how a loadableDetachableModel can become in attached state but the refered object are null? Seems to be out of sync? -- Best regards / Med venlig hilsen Nino Martinez - To unsubscribe, e-mail: users-unsubscr...@

Re: LoadableDetachable Models

2010-04-06 Thread James Carman
on Solutions Engineering, LLC > > | russell.morri...@missionse.com | www.missionse.com > 304 West Route 38, Moorestown, NJ 08057 > > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: Monday, April 05, 2010 10:16 PM > To: users@wicket.a

RE: LoadableDetachable Models

2010-04-06 Thread Russell Morrisey
sulting.com] Sent: Monday, April 05, 2010 10:16 PM To: users@wicket.apache.org Subject: Re: LoadableDetachable Models It doesn't hold onto the persistent object. Here's an example usage: IModel personModel = ...; // Some LDM here! ProxyModelManager mgr = new ProxyModelManager(); add(new T

Re: LoadableDetachable Models

2010-04-05 Thread James Carman
om > 304 West Route 38, Moorestown, NJ 08057 > > > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: Monday, April 05, 2010 9:05 PM > To: users@wicket.apache.org > Subject: Re: LoadableDetachable Models > > You can use what we call a &

RE: LoadableDetachable Models

2010-04-05 Thread Russell Morrisey
arman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 05, 2010 9:05 PM To: users@wicket.apache.org Subject: Re: LoadableDetachable Models You can use what we call a "shadow model" or a "proxy model." https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wic

Re: LoadableDetachable Models

2010-04-05 Thread James Carman
the same > request, so that the information is current. > > HTH, > > RUSSELL E. MORRISEY > Programmer Analyst Professional > Mission Solutions Engineering, LLC > > | russell.morri...@missionse.com | www.missionse.com > 304 West Route 38, Moorestown, NJ 08057 > > --

RE: LoadableDetachable Models

2010-04-05 Thread Russell Morrisey
russell.morri...@missionse.com | www.missionse.com 304 West Route 38, Moorestown, NJ 08057 -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Sent: Monday, April 05, 2010 3:26 PM To: users@wicket.apache.org Subject: LoadableDetachable Models I am having issues with LDM, Hi

LoadableDetachable Models

2010-04-05 Thread Jeffrey Schneller
I am having issues with LDM, Hibernate lazy loaded lists, and ajax. I create a CompoundPropertyModel of a LDM and set that as the default model for the page. I then pass the model to the form and to a custom component in the form. The custom component is a list editor. Basically a ListView w

Re: LoadableDetachable

2010-01-07 Thread Ilja Pavkovic
Hi, > I was under the assumption that wicket calls detach on LoadableDeatchable > automatically on each request. > > Is this not true? One of your components must have your model as default model. Either setModel(myModel); Otherwise you have to do the detach on your own: public void onDetach

Re: LoadableDetachable

2010-01-06 Thread James Carman
If you use it as the default model it will, but otherwise, you have to override onDetach() and call detach() on all your non-default models. On Thu, Jan 7, 2010 at 1:14 AM, Douglas Ferguson wrote: > I was under the assumption that wicket calls detach on LoadableDeatchable > automatically on each

LoadableDetachable

2010-01-06 Thread Douglas Ferguson
I was under the assumption that wicket calls detach on LoadableDeatchable automatically on each request. Is this not true? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-