Integrate Weld CDI into a JSF 1.2 EJB Application on jboss 6 AS -


since 2 evenings, trying integrate weld cdi ejb 3.1 application jsf 1.2. tried call @named annotated controller in jsf page. problem is, no exception thrown, when deploy project , no exception thrown when call page.

the simple example contains only:

the controller:

import javax.inject.named;  @named public class helloworldcontroller {      public helloworldcontroller(){         system.out.println("hello world!");     }      public string getmessage() {         return "hello weld world";     } } 

and it's call:

<h1><h:outputtext value="#{helloworldcontroller.message}" /></h1> 

thx

did add required empty beans.xml file meta-inf web-inf? main cause of cdi mysteriously not working.

see http://seamframework.org/documentation/whatisbeansxmlandwhydoineedit


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -