146147148149150151152153154155156
if (publisherId != null) bean.updateBook(bookId, attributes); else { bean.updateBook(bookId, attributes, publisherName); vengine.clearCache(); } break; } catch (FinderException ex)
182183184185186187188189190191192
{ vengine.rmiFailure("Remote exception updating user attributes.", ex, i++); } } vengine.clearCache(); getMyLibrary().activate(); } public void pageBeginRender(PageEvent event)
176177178179180181182183184185186
130131132133134135136137138139140
{ operations.addBook(attributes, publisherName); // Clear the app's cache of info; in this case, known publishers. vengine.clearCache(); } break; } catch (CreateException ex)
208209210211212213214215216217218
{ vengine.rmiFailure("Remote exception updating user attributes.", ex, i++); } } vengine.clearCache(); MyLibrary myLibrary = (MyLibrary) cycle.getPage("MyLibrary"); myLibrary.activate(cycle); }
191192193194195196197198199200201
} } // Clear any cached info about publishers. vengine.clearCache(); } public void pageBeginRender(PageEvent event) { readPublishers();
135136137138139140141142143144145