codi

How can I check if an object stored with @WindowScoped is stored correctly?

╄→尐↘猪︶ㄣ 提交于 2020-01-05 07:44:32
问题 Two days ago I wrote this question: How can I retrieve an object on @WindowScoped? and BalusC answered with some suggestions, now I have some problem to understand if my problem is that the object in WindowScoped is stored properly or my code to retrieve it is wrong! Well, as I said, I have an object that I stored in @WindowScoped annotation but I can retrive this object only the first time! Why? I just have a doubt: the CODI extension of MyFaces could be configured in some manner? Or I can

How can I check if an object stored with @WindowScoped is stored correctly?

跟風遠走 提交于 2020-01-05 07:44:08
问题 Two days ago I wrote this question: How can I retrieve an object on @WindowScoped? and BalusC answered with some suggestions, now I have some problem to understand if my problem is that the object in WindowScoped is stored properly or my code to retrieve it is wrong! Well, as I said, I have an object that I stored in @WindowScoped annotation but I can retrive this object only the first time! Why? I just have a doubt: the CODI extension of MyFaces could be configured in some manner? Or I can

CODI with ejb stateless on Websphere liberty profile 8.5.5

故事扮演 提交于 2019-12-13 20:53:14
问题 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 MyFaces: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException [ERROR ] Uncaught.init.exception.thrown.by.servlet Faces Servlet codiTest javax.enterprise.context.ContextNotActiveException: WebBeans context with scope

MyFaces CODI and windowId request parameter issue

眉间皱痕 提交于 2019-12-13 02:16:38
问题 I have been trying to conduct some simple tests on Seam Weld and MyFaces CODI . After adding CODI jar files to my projects, I found that it adds a windowId request value to every request even if the bean scope is RequestScoped . Is it really necessary to add windowId request parameter to every request while the bean is in RequestScoped ? Is there any practical real-world scenario for this case? Is is possible to remove it if it is not necessary? For example: This is the code of bean class:

CODI ViewAccessScoped session behavior

强颜欢笑 提交于 2019-12-12 04:58:15
问题 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 view session is used for all sessions, i.e. if I select 3rd row in datatable using Chrome and if I open another browser session using Firefox or Internet Explorer, I can see the same session with 3rd row being selected of datatable. What could be

How inject EJB into abstract CDI class?

拥有回忆 提交于 2019-12-11 00:26:26
问题 I have a problem with injecting an EJB into an abstract class which is the parent of my JSF CDI beans. In my project I am using MyFaces CODI 1.0.5 (ViewScope), Omnifaces 1.3, PrimeFaces 3.4.2 and GlassFish 3.1.2. The application is an EAR, the abstract class is in an EJB module and the JSF CDI beans are in a WAR module: webframework-demo.ear |__ webframework-war.war -> concrete JSF CDI bean |__ webframework-ejb-lib.jar -> abstract class with EJB injection |__ lib\ |__ shared libs My abstract

How can I retrieve an object on @WindowScoped?

穿精又带淫゛_ 提交于 2019-12-02 08:12:21
问题 In this post Dynamic ui:include I asked how I could store an object in some state that could permit me to load a new windows, or tab, of the same browser and it was not stored also in the new windows. Adrian Mitev told me to use @WindowScoped , an option of MyFaces extension called CODI and i tried to implement it. Now I should say that I'm blind and when I tried to open Apache Wiki my browser crashes on many pages so I can't read the guides. However I add the source code on my project and