Author: ivaynberg Date: Thu Oct 30 13:51:43 2008 New Revision: 709240 URL: http://svn.apache.org/viewvc?rev=709240&view=rev Log: some api cleanup
Modified: wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/library/EditBook.java Modified: wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/library/EditBook.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/library/EditBook.java?rev=709240&r1=709239&r2=709240&view=diff ============================================================================== --- wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/library/EditBook.java (original) +++ wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/library/EditBook.java Thu Oct 30 13:51:43 2008 @@ -157,7 +157,8 @@ PageParameters parameters = new PageParameters(); final Book book = getModelObject(); parameters.put("id", book.getId()); - cycle.setResponsePage(getPageFactory().newPage(BookDetails.class, parameters)); + cycle.setResponsePage(getSession().getPageFactory().newPage(BookDetails.class, + parameters)); cycle.setRedirect(true); } }