I used Apache CODI ViewAccessScope in my jsf application. But when i migrate Apache CODI to DeltaSpike (version 0.4), i did't find VViewAccessScope. Can anyone advise me, how to use ViewAccessScope with DeltaSpike
How to use ViewAccessScope in deltaspike?
1k Views Asked by Balasubramanian Rengasamy At
3
There are 3 best solutions below
1
On
Currently it isn't in DeltaSpike. I don't see that they started with it. Anyway, today I learned about http://os890.blogspot.com/2013/07/add-on-codi-scopes-for-deltaspike.html That works perfectly fine in a first test. It looks like it's the original implementation based on DeltaSpike modules instead of CODI-Core.
0
On
I userd org.apache.deltaspike.core.api.scope.ViewAccessScoped and worked like a charm.
All i had to do was put the folloging dependencies in my pom.xml:
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-api</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-impl</artifactId>
<version>1.5.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
<artifactId>deltaspike-jsf-module-api</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
<artifactId>deltaspike-jsf-module-impl</artifactId>
<version>1.5.1</version>
<scope>runtime</scope>
</dependency>
Hope it helps
They're implementing it now, wait till 0.5.