Originally posted by Gaurav Ram:
Hi,
I want to use JSF 1.2 @PostConstruct annotation and for that i have downloaded latest version of JSF i.e. JSF 1.2 and also i configured Tomcat 6.x.x in my MyEclipse, but when i am using @PostConstruct in Bean it is giving compile time error,, it is not recognizing that package,,, can you please help me out...What i am missing???
Thanks,
Gaurav
You need to include the common-annotations jar in your compilation classpath. You'll also want to include said JAR with your application,
otherwise you'll have runtime issues.
Also, when posting versions, JSF 1.2 is a spec version. There are two common implementations of the specification in the wild right now. It's useful to include which implementation and version.