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).
Questions tagged [codi]
48 questions
1
vote
1 answer
Error deploying MyFaces CODI + Weld + JSF in Apache Tomcat 7
I'm new using JSF and I noticed that the JSF doesn't provide some useful annotations, like @ViewAccessScoped (CODI). For use the CODI, I need to use the CDI dependency, so I configured my project with Weld.
Then, JSF + Weld + Tomcat 7 works fine,…

daniel souza
- 342
- 3
- 11
1
vote
0 answers
Myfaces CODI with ClientSideWindowHandler - IE9 back button behaviour
If in my JSF app using CDI and MyFaces CODI, I have a link like this:
After I click the link and navigate to page 2, prssing the back button in IE9 does not return to the previous page, but just re-renders…

sjfern
- 83
- 3
1
vote
2 answers
Open a new tab don't create new ViewAccessScoped bean
I have a sample use case: I have an edit page that use GET parameter "id".
eg. edit?id=1
This edit page is backed by a ViewAccessScoped (CODI) Bean.
In this edit page, I have a datatable with links that link to the same "edit" page, but with another…

Damien Girard
- 65
- 1
- 1
- 6
1
vote
2 answers
Tomcat + CDI + JSF2 but where's my transaction?
My company has tomcat 7 as distributed environement.
I'd like to get JSF2 and CDI working together on tomcat 7. This is possible with not a lot of surprises as described here:…

bodtx
- 590
- 9
- 29
1
vote
3 answers
How to fix "Target Unreachable, identifier 'bean' resolved to null"?
I am using JSF 2.1.7 with Primefaces 3.2, CDI and Apache MyFaces CODI for access to @ViewScoped.
Everything has been working absolutely fine but when I pass a bean through to another page via a ui:param and then attempt to use that bean specifically…

peetss
- 91
- 2
- 5
0
votes
2 answers
Myfaces CODI, @Inject and memory usage
I use Myfaces CODI @ViewAccessScoped backing beans in my JSF application. One of the
benefits is that I don't need to use view parameters to communicate information between
views. For the record @ViewAccessScoped ensures that a bean is accessible…

Oversteer
- 1,778
- 1
- 22
- 38
0
votes
1 answer
With MyFaces CODI, I am not getting different windowid values in different browser tabs -- why?
I am using MyFaces CODI because it allows me to use CDI annotations with ViewAccessScoped -- works great for that. The problem is that I have found that multiple browser tabs opened by my application are sharing the same instance of a…

AlanObject
- 9,613
- 19
- 86
- 142
0
votes
1 answer
How do I use CODI Conversation? Specifically, how to end it?
Based on advice posted here and here, I looked into and installed MyFaces CODI with my application. My biggest concern was overcoming the shortcomings of Weld's implementation of @ConversationScoped feature. After some hiccups I got it running on…

AlanObject
- 9,613
- 19
- 86
- 142
0
votes
1 answer
Apache MyFaces CODI PageBean: "Argument bean must not be null"
I'm currently experimenting a little with Apache MyFaces CODI. I managed to create a simple working Typesafe-Navigation using @Page and an action Method which returns a Class.
However, when I'm adding an @PageBean-Annotation with e.g.…

Robert M.
- 1,339
- 1
- 12
- 34
0
votes
1 answer
Why is my ViewAccessScoped Bean not destroyed?
i am currently investigating a memory leak in an application i have written.
After doing some analysis on heap dumps i obtained I zeroed in on an odd behavior of MyFaces CODI.
I make heavy use of the ViewAccessScope and recently modified my code…

salgmachine
- 519
- 1
- 3
- 14
0
votes
0 answers
Why is parameter sometimes null by JSF Parameter passing?
I pass the managedbean that i use (myBean) as parameter to another managedbean(PersonRoleSearch) so that I can call the methods of the first bean (myBean). But sometimes the parameter is null, therefore i get nullpointer exception. There is no…

Kayser
- 6,544
- 19
- 53
- 86
0
votes
1 answer
MyFaces CoDI - Conversations/WindowContext
Is there any possibility to switch between conversations or their contexts in MyFaces CoDI.
My concrete use case for this is that I want to implement a kind history of CustomerBeans including a CustomerEntity. If one of the entry is selected the…

user3181421
- 1
- 1
0
votes
1 answer
CODI with ejb stateless on Websphere liberty profile 8.5.5
I cannot launch a webapp that embedd CODI on websphere liberty profile 8.5.5 if the webapp contains a @Stateless ejb.
I get this exception:
[ERROR ] null
java.lang.reflect.InvocationTargetException
[ERROR ] An error occured while initializing…

domak
- 121
- 6
0
votes
0 answers
deltaspike integrating @ConversationGroup?
Recently I have been trying and testing deltaspike in my leisure times. it says it integrated codi and seam 3. but how come i dont see @conversationGroup in it?
any clue anyone?
thanks

Ikthiander
- 3,917
- 8
- 37
- 54
0
votes
3 answers
How to use ViewAccessScope in deltaspike?
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

Balasubramanian Rengasamy
- 139
- 2
- 13