Johan Compagner wrote:
> 
> or i can make it so that it returns really an page copy with that version.
> 

Just some thoughts about the idea of copying a page:

I have been experimenting with making copies of pages, and there are some
tricky things to take care of. The page has internal flags that indicate
temporary state, which you might not want in the copy. And you should
manipulate the versionManager of that copy, so that it points to the correct
versionNumber.


Johan Compagner wrote:
> 
> The question is what api doe we want:
> 
> Page page = page.getVersion(versionnumber)
> Page page = pagemap.get(pageid,versionnumber)
> 

I prefer:

Page page = pagemap.get(pageid,versionnumber)

Jan.
-- 
View this message in context: 
http://www.nabble.com/Page.getVersion...-shouldn%27t-we-depricate-it-in-1.3-2.0--tf3202885.html#a8928893
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to