Hi, I'm writing a CRUD app using a extended EntityHome class.
*** Q1 *** I want to reuse one EntityHome instance for more than one CRUD operations in a long-running conversation. But EntityHome instance is caching the entity and other states. How can I reset the state of EntityHome instance before each CRUD operations? | setInstance(null); | setInstance(createInstance()); | initInstance(); | clearDirty(); | ... ... | I'm confusing... Does EntityHome provide such a reset method now? *** Q2 *** If calling persist(), update(), or remove() method of EntityHome is successful, EntityHome adds a JSF message automatically(ex. "successfully created"). How can I clear this message? facesMessages.clear() didn't work. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063114#4063114 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063114 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
