looking for some tips from the experienced...

i've developed a simple wiki as a learning project. for my wiki crud pages, i've given them a WikiPage property so i can retrieve a WikiPage object from the database, and set it on the page along the lines of

WikiPageUpdate:
 @Persist
 public abstract void setWikiPage(WikiPage page);

then other pages can send to WikiPageUpdate e.g.

 @InjectPage("WikiPageUpdate")
 public abstract WikiPageUpdate getWikiPageUpdate();

 getWikiPageUpdate.setWikiPage(pageFromDatabase);

two questions currently:
1. is it better to have my crud pages define a property representing the whole domain object WikiPage so that i can just pass objects around, or should they only store the WikiPage id and be responsible for pulling this object from storage by the id?

2. i've had to define the WikiPage property as persistent to get it to "stick" between form posts... is this the best/proper way to do it? i'm worried about concurrent users sharing the WikiPage objects.

thanks in advance


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to