Hi there,
because I didn't know what I could do else to solve my problem I visited JIRA and checked all issues. I found [#JBSEAM-145] (http://jira.jboss.com/jira/browse/JBSEAM-145), which requests @In to use the JSF variable resolver if Seam doesn't find a component.
Here's my code again:
@Stateful @Scope(ScopeType.SESSION) @LoggedIn @Name("showTestactionForDevelopers") @Interceptors(SeamInterceptor.class) public class ShowTestactionForDevelopers implements IShowTestactionForDevelopers{ @PersistenceContext(unitName = "aresDatabase", type = PersistenceContextType.EXTENDED) private EntityManager em; @In @Valid private User user; @In private FacesContext facesContext; @In(required=false) private List<Testaction> currentTestactions; @In(required=false) private Integer currentTestactionIndex; @In(required=false) @Out(required=false) @Valid private Testaction currentTestaction; private transient List<Testcase> testcases; private transient List<User> developers; private transient List<Revisionclass> revisions; public String saveTestaction() { saveCurrentTestaction(); return "backToList"; } //omitted the rest
Hi,
I tried to get a VariableResolver:
VariableResolver vr = facesContext.getApplication().getVariableResolver();