  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - two basic questions for EntityHome | - two basic questions for EntityHome 2007-07-11 - By azalea
Back 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 jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |