How do I end the conversation without letting hibernate commit the entity changes?
Editing is a two stage process: edit, then verify. If I call my action's quit method
from the edit page (with immediate="true" on the button), all is fine. If I go
to the verify page and make the same call to the quit method, the entities are updated
anyway.
Button:
<h:commandButton type="submit" value="Quit without Saving"
action="#{myaction.quit}" immediate="true"/>
Method:
@End
| @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
| public String quit()
| {
| logger.debug("Quitting without saving");
| return PAGE_MAIN;
| }
|
If I don't use the @End annotation, nothing is persisted, but then the conversation is
out there in memory. Any advice?
Thanks,
Jon
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110991#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...