You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by nazeem <md...@gmail.com> on 2012/03/04 03:16:40 UTC

reload model on render

Hi

I have a content area in which I am displaying say PanelA. In PanelA I have
a link to navigate to PanelB. When I click that I replace the content area
with PanelB. When I construct PanelB i pass the instance PanelA via
PanelA.this so that PanelB can show a link to go back to PanelA. When the go
back link in panelB is clicked I do a replace content area with the object
(instance of panelA) I recieved in the construtor. 

This works perfectly fine and the to n fro navigation is quick. It does not
reload the whole stuff again. Done. But I need to reload some of the data
changed in backend when coming from PanelB back to PanelA. Right now the
PanelA shows the old data it does not re-load.  I tried using the
LoadableDetachableModel but that does not get triggered. 

Any clue please..

-naz


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4442813.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: reload model on render

Posted by Per Newgro <pe...@gmx.ch>.
Any code please,

Per

Am 04.03.2012 03:16, schrieb nazeem:
> Hi
>
> I have a content area in which I am displaying say PanelA. In PanelA I have
> a link to navigate to PanelB. When I click that I replace the content area
> with PanelB. When I construct PanelB i pass the instance PanelA via
> PanelA.this so that PanelB can show a link to go back to PanelA. When the go
> back link in panelB is clicked I do a replace content area with the object
> (instance of panelA) I recieved in the construtor.
>
> This works perfectly fine and the to n fro navigation is quick. It does not
> reload the whole stuff again. Done. But I need to reload some of the data
> changed in backend when coming from PanelB back to PanelA. Right now the
> PanelA shows the old data it does not re-load.  I tried using the
> LoadableDetachableModel but that does not get triggered.
>
> Any clue please..
>
> -naz
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4442813.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: reload model on render

Posted by nazeem <md...@gmail.com>.
Yes I understand your point. But i have to get the object manipulate it then
only feed it to the label. In this case i cannot pass the model directly. 

For this i had to workaround this problem bit differently. I had moved the
section to a fragment and then inside onBeforeRender i am reconstructing the
fragment by fetching data from db and attaching to the container. This works
for me. 

Thank you. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4443821.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org