Questions tagged [codi]

The Apache MyFaces Extensions CDI project (aka CODI) hosts portable extensions for Contexts and Dependency Injection (CDI - JSR 299) for the Java-Platform (SE and EE).

Online resources

48 questions
0
votes
2 answers

MyFaces CODI instantiates beans twice

I'm migrating a JSF 2.1 application to CDI. To be able to use the @javax.faces.bean.ViewScoped annotation, I'm trying to use MyFaces CODI, as suggested here. The application seems to be working as expected, but I noticed by logging that the…
Virginie
  • 909
  • 3
  • 12
  • 32
0
votes
0 answers

Mixing CODI @ViewAccessScope and Spring ManagedBeans

I am using JSF 2.0 and with with Primefaces 3.4.2., Spring 3.1.1 and Hibernate 4.0.1 I have had mixed CODI @ViewAccessScoped and Spring ManagedBeans and because of this I am having a few issues with sessions, details here I would like to remove…
Jacob
  • 14,463
  • 65
  • 207
  • 320
0
votes
0 answers

CODI ViewAccessScoped session behavior

I have a prototype small application built using JSF 2.0 with Primefaces 3.4.2., Spring 3 and Hibernate 4 For ManagedBeans I am using scope as @ViewAccessScoped. I have noticed that while doing pagination in datatables and selection of rows, same…
Jacob
  • 14,463
  • 65
  • 207
  • 320
0
votes
2 answers

How do i use ViewAccsessScope beans when testing in Arquillian?

When i use @ViewAccsessScoped beans from CODI i get the following error, when using Arquillian for testing my beans. org.jboss.arquillian.test.spi.ArquillianProxyException: org.jboss.weld.context.ContextNotActiveException : WELD-001303 No active…
Trind
  • 1,583
  • 4
  • 18
  • 38
0
votes
0 answers

myfaces codi in ear does not intercept @Closeconversationgroup

i have some examples of myfaces codi , but none of them are showing the structure of an ear. also how do I use @closeConversationGroup in a ear project, as the interception for the annotations are not getting picked up. here is how the codes…
Ikthiander
  • 3,917
  • 8
  • 37
  • 54
0
votes
1 answer

How to configure Apache MyFaces CODI with JBoss AS 7 and Mojarra 2.1?

I have Apache CODI for JSF 2 installed and working. I would like to change "isUrlParameterSupported" to be false, instead of the default true. Switching my projects to OpenWebBeans is not possible at this time. I am not currently using MyFaces…
Will Durman
  • 67
  • 1
  • 9
0
votes
0 answers

Duplicate ID error with Partial State Saving and MyFaces CODI

I am developing a JSF web application using PrimeFaces3.3, MyFaces+CODI, OpenWebBeans and Tomcat7. I am getting duplicate Id error after display of a specif page (all subsequent page actions). Analyzing viewroot with debug, I couldn't really find…
Murali D
  • 448
  • 1
  • 4
  • 18
0
votes
1 answer

MyFaces CODI - add to project

I'm developing a maven JSF web app. I want to use @PreDestroy on some @ViewScoped bean, however this is not possible in JSF 2.0 (or not when page is closed or redirected) I found MyFaces CODI's @ViewAccessScoped could be the solution, however I have…
Tomas
  • 111
  • 1
  • 1
  • 7
0
votes
0 answers

Does CDI @Inject in FacesConverter with CODI's @Advanced work with AJAX requests?

We use FacesConverters and annotate them with CODI's @Advanced annotation in order to be able to use CDI injection. This works with normal requests. But on AJAX requests the injected CDI beans are null. And the FacesContext parameter in public…
Julia
  • 318
  • 1
  • 5
  • 14
0
votes
1 answer

CDI - CODI - ViewAccessScoped on produces = Error

In a jsf page where i get data from a baking bean like that i got a java.lang.StackOverflowError, My backing bean look like that, i want to have a producer to cache…
guillaume
  • 321
  • 1
  • 4
  • 18
0
votes
1 answer

Myface CODI is not throwing exceptions in Eclipse

I do JSF development using Myfaces, Primefaces, Tomcat in Eclipse IDE. When testing thru I used to get exceptions thrown by Myfaces/Primefaces in the Eclipse Console. Recently I enhanced my development environment by adding MyFaces CODI and…
Murali D
  • 448
  • 1
  • 4
  • 18
0
votes
1 answer

p:graphicImage is opening a new WindowId in Myface CODI

I see that primeface p:graphicImage in my form is causing a new windowId to be created with in the same browser tab. All my beans are window scoped. @WindowScoped of Myface CODI. Since my business logic is tied to the initial login, the environment…
Murali D
  • 448
  • 1
  • 4
  • 18
0
votes
1 answer

Errors when deploying aplpication using WELD + Apache CODI

I added the myfaces-extcdi-core-api-1.0.5.jar and myfaces-extcdi-core-impl-1.0.5.jar to the classpath, marked few beans as ConversationScoped and now I get the following errors when starting the JBoss 7.1.0 server: (what could be the cause ???) …
azerIO
  • 519
  • 1
  • 9
  • 19
0
votes
1 answer

Using MyFaces CODI with JBoss 7

I was using JBoss 7 with JSF 2.0 (Mojarra) and Weld as CDI. Everything that JBoss already provides. Also, I added Primefaces to the package. So by now, my project is: JBoss 7 + JSF 2.0 + Primefaces + Weld However, I was feeling that JSF ViewScope…
Montolide
  • 773
  • 3
  • 12
  • 27
0
votes
2 answers

CODI + WELD: Specializing bean must extend another bean

I have a EE application, that uses JSF 2.0 (impl Mojarra 2.1.6). The server I use is glassfish 3.1.2, and CDI implementation is WELD. Sometimes when I run the application I get the following exception: org.jboss.weld.exceptions.DefinitionException:…
damian
  • 4,024
  • 5
  • 35
  • 53