I have a method annotated with @Unwrap that needs to add a FacesMessage error under certain circumstances. I've found that I can only add a FacesMessage from an action (listener) method and not from @Unwrap method. Is there a workaround for this or is this not the expected behavior?
@Unwrap public String foo() { facesMessages.addFromResourceBundle("errors_List"); return "foo"; }
Posted too soon, it seems this works now. Please disregard the previous post.