-
1. Re: rich:graphValidator message assignment
iabughosh Jan 13, 2012 3:43 AM (in response to jdessey)welcome to the community Joseph,
you can attach your message to rich:graphValidator itself :
<rich:message id="message1" for="validator"/>
<rich:graphValidator id="validator" value="#{gvBean}">
.
.
.
</rich:graphValidator>
regards.
-
2. Re: rich:graphValidator message assignment
jdessey Jan 13, 2012 4:29 PM (in response to iabughosh)Thanks for the response. I need to clarify my question though. For the same graphValidator, I want to use one rich:message tag to indicate a failure for one of the @AssertTrue methods (isValid1), and use another rich:message tag to indicate failure of the other @AssertTrue (isValid2).
-
3. Re: rich:graphValidator message assignment
iabughosh Jan 14, 2012 2:48 AM (in response to jdessey)ok Joseph, you can use the same code from previous reply but use messagese instead of single message, and add a bean validation messages to your bean :
@AssertTrue(message="valid 1 message")
public boolean isValid1(){
return false}
@AssertTrue(message="valid 2 message")
public boolean isValid2(){
return false}
regards.
-
4. Re: rich:graphValidator message assignment
jdessey Jan 20, 2012 10:27 AM (in response to iabughosh)The issue is that I want to use two separate message tags, which would allow me to place each of them in a different physical location on the page.
The problem there appears to be that with a graphValidator, all of the resulting messages must be attributed to the graphValidator itself. So any rich:messages tag would need to represent all of the error messages.