-
1. Re: @PostConstruct not working with @Named and @javax.faces.view.ViewScoped for CDI on Wildfly Beta1
dxmann73 Dec 5, 2013 4:27 AM (in response to esmin)Hi,
are you using the built-in JSF version? When starting up, you should get the following:
10:21:31,286 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Mojarra 2.2.3-jbossorg-1 20130910-1739 f³r Kontext '/sp' wird initialisiert.
Also, we are using the annotation (below) for our view scoped backing beans, it works in WF8 Beta1
import javax.enterprise.inject.Stereotype;
import javax.faces.view.ViewScoped;
import javax.inject.Named;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Named
@ViewScoped
@Stereotype
@Retention (RetentionPolicy.RUNTIME)
@Target (ElementType.TYPE)
public @interface Presenter
{
// Stereotype interface for Presenter Beans
}
-
2. Re: @PostConstruct not working with @Named and @javax.faces.view.ViewScoped for CDI on Wildfly Beta1
kababji Dec 19, 2013 3:13 PM (in response to esmin)did you add the beans.xml to your WEB-INF or META-INF directory?