Can you try that in your Seam component?

public void validateAttachment(FacesContext context, 
                          UIComponent toValidate,
                          Object value) {

    if (...check...) {
       ((UIInput)toValidate).setValid(false);

        FacesMessage message = new FacesMessage("Invalid
Attachment");
        context.addMessage(toValidate.getClientId(context),
message);
    }

}

About JSF documentation I strongly recommend this
documentation that is really general with some example.

If it works I will add that into the answer documentation.
Or if someone else have a better answer :d

Regards
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to