Re: Apache DeltaSpike ViewScoped

2014-10-23 Thread Mark Struberg
Hi Alexandr! Do you like to use @ViewScoped in a CDI way or JSF way? Let me explain: Initially javax.faces.bean.ViewScoped was _not_ a native CDI scope but one from the JSF container. (For JSF Managed Beans you would also need the @ManagedBean annotation. For now I assume that's not what you

Re: Apache DeltaSpike ViewScoped

2014-10-23 Thread Gerhard Petracek
hi alexandr, you can use myfaces-test to mock jsf for your unit-tests + add e.g. org.apache.deltaspike.testcontrol.impl.jsf.MyFacesContainerAdapter in META-INF/services/org.apache.deltaspike.testcontrol.spi.ExternalContainer - see e.g. [1]. however, other scopes like @WindowScoped are easier to t

Apache DeltaSpike ViewScoped

2014-10-23 Thread Alexandr Denisenko
Hello! I was very sorry, but we have a problem when using Deltaspike. In our project, we decided to go out on the EJB to CDI, for easier testing. We are using JSF 2.0 and most beans we javax.faces.bean.ViewScoped. We plugged deltaspike-test-control-module-api and if you use standard Cdi Scoped