I have a session scoped CDI bean running in a JSF application.
@Named
@SessionScoped
public class myController implements Serializable {
.....
}
I need to update the state of the bean in case a standard validation exception is thrown by the jsf framework. For example in case of a input field with required = true:
<h:inputText value="#{.....}" required="true" />
I did not find a way to trigger one of my bean methods in case a validateion exception is thrown. How can I do this?