[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1596) Unique Constraint Validator
Adam Warski (JIRA)
jira-events at lists.jboss.org
Fri Oct 26 10:09:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1596?page=comments#action_12384569 ]
Adam Warski commented on JBSEAM-1596:
-------------------------------------
But isn't the lack of a unique constraint validator a violation of DRY?
I think it's quite a common constraint, but is quite hard to handle right now. The only reasonable choice is a custom validator ... as verifying it the model can cause problems --- in case of a validation error detected, you have to prevent changes in entity beans to be commited, and the only possible way to do that is rolling back the transaction. As a rollback exception can't be caught, it's not possible to display a user-friendly message on the same page, from thich the form was submitted.
Adam
> Unique Constraint Validator
> ---------------------------
>
> Key: JBSEAM-1596
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1596
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: JSF
> Affects Versions: 2.0.0.BETA1
> Reporter: Pete Muir
> Priority: Minor
>
> We could have a generic unique constrain validator as part of the model validation.
>
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059691#4059691
--
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
More information about the seam-issues
mailing list