On 1/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> >
> > If I start over and do:
> > circular (displays the list)
> > "edit" ->
> > circular?path=1 (displays show view)
> > "edit" ->
> > circular?path=2 (displays edit view)
> > "save" ->
> > circular?path=1 (displays the same show view as before and NOT updated)
>
>
> why would it change?

Good question! :) I thought that the CircularPage would be processed
again and that would reflect the changes of the Circular - object.

> You just set a backpage back as the response.
> Is that page really changed somehow? And why should that be done, what is
> changed?

The Circular attached to the model.

When I go from the listview directly to the edit view the list
immediately reflects the changes.

I derived my code from the phonebook example and basically what I
would like to do is to insert a view page and not go directly to the
edit page.

I'm guessing that my poor understanding of how the Models are suppose
to work come into play here. :)

>
> I also see you do this:
>
> add(new Label("name", new PropertyModel( circularModel.getObject(this),
> "name")));
>
> I find that very strange because circularModel is a detachable model if that
> is the case then
> the object is reloaded. Then you shouldn't get that object on creation time
> of the label/property model
> But always when needed.
>
> add(new Label("name", new PropertyModel(circularModel, "name")));

Ok, I'll try that.

>
> So give just the model not the object inside the model.

Thanks!


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to