After a couple hours of Google and a couple of tutorials I'm beat... It's not the fact that I'm getting errors that can give me hints on what the problem is, it's the complete lack of them that's driving me mad!
The following code works, just not as it should! The annotations for checking that the input is not null or lesser then 3 character long just never runs. Nor are they giving any kind of error when the project is being deployed or when the name variable is being written to.
public class testBean
{
@NotNull
@Size(min=3)
private String name;
}
public void test()
{
System.out.println(name);
}
And the input form:
<h:form>
<h:inputText value="#{testBean.name}" />
<h:commandButton value="Send" action="#{testBean.test()}" />
</h:form>
My guess is that it's tomcat that's causing the problems, although I am fairly sure I've imported all the necessary libraries. Same goes for the IDE I'm using, Eclipse.