I've found a lot of topics discussing how to inject property but none of them suggests validation method. Here is my bean:
@ManagedBean
@RequestScoped
public class MyBean {
@ManagedProperty(value = "#{param.key}")
private String keyFromUser;
}
Currently if param.key is missing among GET params I have
com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean myBean