Reply To: backing beans in different jar

Splash Forums PrettyFaces Users backing beans in different jar Reply To: backing beans in different jar

#24738

Hey Kevin,

you have to tell PrettyFaces, that it should also scan the lib folder of your WAR archive for annotations. This isn’t done by default for performance reasons. Setting this parameter in your web.xml should do the trick:


<context-param>
   <param-name>com.ocpsoft.pretty.SCAN_LIB_DIRECTORY</param-name>
   <param-value>true</param-value>
</context-param>

See:

http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/Configuration.html#config.annotations.setup