In line 85 of EqualityValidator, the otherComponentId is added to the message, resulting in something like
Value does not equal that in 'password' (where password is the id of the component)
Would it be be possible to add the value of the label attribute of the other component when it is present, as is the case with built in JSF validators.
This would make more sense to the user viewing the message, and would also facilitate translation of messages.
ValidatorException(FacesMessages.createFacesMessage(javax.faces.application.FacesMessage.SEVERITY_ERROR, getMessageId(), getMessage(), otherComponentId, value, other));
Workaround is to use the MessageId attribute.