[
http://jira.jboss.com/jira/browse/JBSEAM-1408?page=comments#action_12364408 ]
Hung Tang commented on JBSEAM-1408:
-----------------------------------
Load test.xhtml and you'll see one input text box for updating the name.
Type in "false" to see first problem--the update button will disappear.
Type in "d" or any other single character to see second problem--an exception
will be thrown.
EntityHome.managed is modified when ValidationException is thrown
-----------------------------------------------------------------
Key: JBSEAM-1408
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1408
Project: JBoss Seam
Issue Type: Bug
Components: Framework
Affects Versions: 1.3.0.ALPHA
Reporter: Hung Tang
Attachments: demo.zip
Two problems:
First, EntityHome.managed property is inadvertently (correct me if I'm wrong) set to
false when ValidationException is thrown when using @Validator and applied to an input
text. Not sure why the em.contains(getInstance()) in managed() reports false.
Second, when combining @Validator with Hibernate validators, Seam throws an exception
[org.hibernate.validator.InvalidStateException] when hibernate validators fail instead
restoring the view with a nice message.
I'll try to attach a simple example to demonstrate these problems.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira