Since two evenings, I am trying to integrate weld CDI into an EJB 3.1 Application with JSF 1.2. I simply tried to call a with @Named
annotated controller in an JSF page. The problem is, that no exception is thrown, when I deploy the project and also no exception is thrown when I call the 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