with this wacky email server on sourceforge i have your response but not johan's original post!


DetachableModel was replaced by AbstractDetachableModel, which is designed for anonymous subclassing.

yes, a UUID ought to be a low security risk in most cases and would be less of a performance problem than other options for client side state.

however, i think AbstractDetachableModel is useful in its own right and that we ought to keep it as-is.

i'm having trouble with your sketch below for several reasons i can't quite articulate yet...

the main problem is that i don't understand (and johan probably posted this but i don't have it)... exactly what problem are we trying to solve here?

i don't see any real advantage to storing a UUID on the client if you still have a Page and a model on the server. you haven't reduced the server state to zero. if you want zero server state, that is already supported via bookmarkable pages. a bookmarkable page constructs itself entirely from request information. you can stick your UUID in PageParameters and pass that to BookmarkablePageLink and away you go. when the request comes in your page will be created and you can synthesize your page's model and structure based on the abstracted request information in PageParameters. i think this is actually quite elegant and simple in terms of solving the problem of constructing zero-state pages.

Jan Blok wrote:

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





-------------------------------------------------------
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