To sum up, looking at Netbeans sample CDI app, the bean which needs to be accesible by JSF page needs to:
- have @Named annotation (javax.inject.Named)
- have scope annotation (like @SessionScoped, @RequestScoped, @ViewScoped), but imported from javax.enterprise.context.*
- doesn't have to have empty, non-argument constructor
- and the thing that wasn't in my code is that, that the bean needs to implement Serializable (java.io.Serializable)
- last thing is that if your app is a web application it needs a beans.xml (can be completly empty) in WEB-INF directory, if it is a bean app it have to be in META-INF directory