WikiDirectory forumDir = nodeDAO.findWikiDirectory(100l);
Contexts.getPageContext().set("currentDirectory", forumDir);
}
protected void invokeApplication() throws Exception {
ForumHome home = (ForumHome)getInstance(ForumHome.class);
home.newForum();
}
}.run();
new FacesRequest() {
protected void beforeRequest() {
setParameter("cid", conversationId);
}
protected void updateModelValues() throws Exception {
WikiNodeDAO nodeDAO = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
WikiDirectory forumDir = nodeDAO.findWikiDirectory(100l);
Contexts.getPageContext().set("currentDirectory", forumDir);
}
protected void invokeApplication() throws Exception {
ForumHome home = (ForumHome)getInstance(ForumHome.class);
home.getInstance().setName("New Forum");
home.getInstance().setDescription("This is a new forum");
assert invokeMethod("#{forumHome.persist}") == null;
}
protected void renderResponse() throws Exception {