private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.ObjectInputStream in)
throws IOException, ClassNotFoundException;
No but what does that solve?
It will save a lot of complexity for the serialization because you can delegate to the standard serialization facilities.
And remember we don't want to serialize to a byte array. That is just a quick way todo a deep clone
If possible i don't want to do that. I just want to copy the real values of everything
And if that is completely feasible i don't know but i think we could make this to work
And if it works and if it is pretty quick we could do it for the complete page. just make a snapshot by object graph of the complete
page when the page is asked for. And when it is called on we get another object graph compare it and keep only the changes in a undo buffer and make a page version.
I think it will be really useful to have something like this, but it can get very complex.
Especially the determination of differences between object graphs might get complex. By the way, it might be useful to look at Hibernate and JDO because these tools do something similar, detecting changes made to an object-graph and performing the appropriate (minimal) updates (changes) towards a database. I think we are looking at something of the same complexity here.
It looks like I will be meeting Gavin King tomorrow or the day after that and would be curious to hear how he would approach this problem since a similar problem was already solved by Hibernate. Just have a look at appendix B2 in "HIbernate in Action" where he explains the Interceptor and Inspection approaches to dirty checking. Looks like hibernate uses the inspection approach as well. Perhaps we can extract a common library out of that.
Then nobody has to make undo change objects or call model changing. it is fully automatic.
As a user I would be thrilled.
johan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user