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
Post a Comment