[seam-issues] [JBoss JIRA] (SEAMFACES-226) Jsf VilidatorException caused a EJBRollbackException
Cody Lerum (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Jan 4 16:29:09 EST 2012
[ https://issues.jboss.org/browse/SEAMFACES-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653898#comment-12653898 ]
Cody Lerum commented on SEAMFACES-226:
--------------------------------------
ValidatorException is meant to be used inside a FacesValidator
If you are throwing it from an EJB method call then it is at it's base a RuntimeException and will cause a container rollback. - http://docs.oracle.com/javaee/6/api/javax/faces/validator/ValidatorException.html
> Jsf VilidatorException caused a EJBRollbackException
> ----------------------------------------------------
>
> Key: SEAMFACES-226
> URL: https://issues.jboss.org/browse/SEAMFACES-226
> Project: Seam Faces
> Issue Type: Bug
> Reporter: hantsy bai
>
> Please check out my demo application and browse /tags.xhtml.
> 1. click the Button to create a Tag,
> 2. input something
> 3. press Create 6
> I used new ViliadtorException to throw a custom validation error in the create6 method, it SHOULD display the message in the current page, but I got EJBRollbackException in the background JBAS console, and the conversation data was discarded.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list