File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Annotations Not Working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Annotations Not Working" Watch "Annotations Not Working" New topic

Annotations Not Working

Andy Holm
Ranch Hand

Joined: Jul 03, 2008
Posts: 86
Annotations on several of my beans are not getting called in JSF 2.0. One of my bean's annotations, however, are getting called. Any idea why that may be?

Here's a snippet of the bean that has an annotation being correct called. This bean is called when a page with a datatable loads.

Here is an example of a bean whose annotations are never called. It is a POJO bean rather than a backing bean as above. The bean is populated when a separate backing bean's method is called from a command button.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632

It would help if you'd mentioned which annotation is being "called".

Customer surveys are for companies who didn't pay proper attention to begin with.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Annotations Not Working
Similar Threads
Persisting Entity with composite key is not working
Encapsulation ?
Persisting pojo with collection attribute using Hibernate
Protected members
Problems using Hibernate Criteria API