Hi,

> somehow we have to have more state loaded into the client 
> (but i don't like this, get .NET feelings now...)
> so that the right model can first be created again before any action 
> (form population from the request and the action handling)
> any other ideas?
> johan



I totally agree with Johan, is it an idea to change IDetachableModel to?
:

public interface IDetachableModel extends IModel
{
        public String getUUID();//max length 36 chars, limit this to
prevent flooding the page like .NET

        public void attach(String uuid);

        public void detach();
}

Hmm, IDetachableModel is changed to IDetachable? Recently?

If you pass the uuid into the pagereponse (forms/links) if the model
returns one, it can be used to lookup the correct modelstate at all
times.

Max length 36 is for a GUID alike thing like:
10030100-E260-11CF-AE68-00AA004A34D5 so you can address any molecule in
the universe :-), instead of a GUID you could use a uuid like
"orders_23461567" for specific hibernate "order" object.
By keeping the length limited you also prevent HTTP-POST req. as .NET
has for any action.

Regards Jan Blok



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to