I think (1) is a better option because it means we fix the problem once in WikiPageTypeConverter, and don't have to write special handling code in every WikiPage-related ActionBean. However, I don't fully understand how this would interact with ContentManager. Can you create new "temporary" Nodes that aren't persisted? Do we need a WikiPage method like isSaved() or similar to indicate whether it's been persisted to JCR? Dunno how hard this is.
Well, 2) means that the page name has to be stored as an attribute as well, since you can no longer call m_page.getName().
1) should be fairly easy to do - you can call ContentManager.addPage() to get a valid, unsaved WikiPage, which won't be persisted until you call save(). It does not matter that multiple Sessions call addPage() either, since possible conflicts aren't checked until persistence time. It's also a fairly lightweight operation, since at least in Priha, Nodes are small.
/Janne
