-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCK Challenge: faces23/validateWholeBean test does not meet spec requirements #1715
Comments
@BalusC @arjantijms what do you think? In my opinion, this is valid and should be accepted. The proposed changes to the test are straightforward and make sense to me. |
@arjantijms @BalusC what do you think about this one? |
Following up so this challenge isn't forgotten. Thanks! |
What are the next steps with this? |
The whole bean validation tests check for an exact message match. However, MyFaces prefixes the id (after trying to get a label): Line 96 in 3431822
Could the the test be updated to check for contains instead? |
PR merged, which should fix the challenge. |
Challenged Tests:
ee.jakarta.tck.faces.test.javaee8.validateWholeBean.Issue4313IT#testValidateWholeBean
ee.jakarta.tck.faces.test.javaee8.validateWholeBean.Issue4083IT#testValidateWholeBean
TCK Version:
Jakarta Faces 4.0.x
Tested Implementation:
Open Liberty -- containing MyFaces 4.0
Description:
The VDLDoc for validateWholeBean gives clear guidance on how it is to be used, stating "This tag must be used in concert with
<f:validateBean/>
and Bean Validation. Here is a brief example of the common case of ensuring two password fields are individually valid and also both the same. The feature requires the use of thevalidationGroups
attribute on all of the<f:validateBean/>
tags and the<f:validateWholeBean/>
tag."Here's the example given in that same doc:
Unfortunately, neither TCK application (Issue4313, Issue4083) has the required elements. Issue4313 merely includes a
<f:validateWholeBean/>
element without using either<f:validateBean/>
orvalidationGroups
, and Issue4083 is lacking<f:validateBean/>
. Accordingly, MyFaces fails validation for both tests due to the lack of these required elements.A speculative set of TCK improvements to fix these tests can be seen here: https://github.com/jakartaee/faces/compare/master...volosied:faces:faces23-validateWholeBean-fix?expand=1
The text was updated successfully, but these errors were encountered: