annotation « Bean « JSF Q&A





1. How does JSF find beans annotated with @ManagedBean?    stackoverflow.com

As far as I know, for using @Annotations (or [Attributes] in C#) you have to have a reference to the class metadata, so that you can ask if the class is ...

2. Using hibernate validator to validate annotated beans    stackoverflow.com

I'm trying to validate an input from my JSF as described in http://wheelersoftware.com/articles/hibernate-validator-3.html I've added the following dependencies in my pom.xml

 <dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-commons-annotations</artifactId>
 <version>3.0.0.ga</version>
 </dependency>

<dependency>
   ...

3. Annotations vs managed beans declarations in faces-config.xml    stackoverflow.com

I'm getting my hands on JSF 2.0 and have certain doubt about new annotation based auto-wiring (declaration of managed beans without any code in faces-config.xml). As far as I am annotations are ...

4. Injection of EJB3 into Annotation Based JSF2 Backing bean causing javax.naming.NameNotFoundException:    stackoverflow.com

I have seen other thread with similar issue but was not able to work out direct link with my problem . Hopefully I am not repeating a question.My issue is ...

5. JSF manged property for multivalues    stackoverflow.com

As suggested by BalusC as an answer to this question, I wanto to create a managed property like this:

@ManagedProperty("#{paramValues.freetext}")
private String[] ftValues;

public String[] getFtValues(){ 
    return ftValues;
}

public void ...