You are viewing a plain text version of this content. The canonical link for it is here.
Posted to announce@wicket.apache.org by Andrea Fantappiè <an...@gmail.com> on 2011/12/02 14:37:54 UTC

Change model object problem

Hi, this is my problem.

I've code from 1.4 that doesn't work with 1.5 wicket version:

I have a page with a form with a panel inside that hold a collection model
of linked files. On the panel I have a link to an abstract page that it
open in a new popup where i can upload a new file. After the upload the
page notify by an abrstract method, implemented on the panel, the new file.
On the panel I add the new file to the model, then i had to render the
panel to show the new item, and this is done by an ajax "refresh" link that
render the list on the event trigger. In 1.4 the ajax call load the model
with the new elemet inside. In the 1.5 version the model loaded on the ajax
event is the original model, without the new file. Why? How can i update
the model of the panel without any form submit?
I've tried to call modelChanging and modelChanged on the panel and on the
page, but nothig. The model changes are lost after the popup page close.

Re: Change model object problem

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

You just announced that your application doesn't work with Wicket 1.5 :-)
You sent the message to announce@wicket.apache.org, and Reply-to: users@.
Please use users@ from now on.

Is the popup a ModalWindow ?
If yes, then check the changelog for Wicket 1.5.2. There were two
tickets closed as "No problem" and explanation of the real problem.

2011/12/2 Andrea Fantappiè <an...@gmail.com>:
> Hi, this is my problem.
>
> I've code from 1.4 that doesn't work with 1.5 wicket version:
>
> I have a page with a form with a panel inside that hold a collection model
> of linked files. On the panel I have a link to an abstract page that it
> open in a new popup where i can upload a new file. After the upload the
> page notify by an abrstract method, implemented on the panel, the new file.
> On the panel I add the new file to the model, then i had to render the
> panel to show the new item, and this is done by an ajax "refresh" link that
> render the list on the event trigger. In 1.4 the ajax call load the model
> with the new elemet inside. In the 1.5 version the model loaded on the ajax
> event is the original model, without the new file. Why? How can i update
> the model of the panel without any form submit?
> I've tried to call modelChanging and modelChanged on the panel and on the
> page, but nothig. The model changes are lost after the popup page close.
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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