[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gerhard Petracek updated DELTASPIKE-1042:
-----------------------------------------
    Assignee: Thomas Andraschko

> ManagedBean is rebuilt after Ajax Request
> -----------------------------------------
>
>                 Key: DELTASPIKE-1042
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1042
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: JSF-Module, JSF22-Module
>    Affects Versions: 1.5.1
>         Environment: OS Windows 8.1, WildFly 8.1.0 Final
>            Reporter: Luciano Fischer Lumertz
>            Assignee: Thomas Andraschko
>            Priority: Blocker
>              Labels: patch
>
> I have a Maven Project Version 3.1 with JSF 2.2, CDI, Hibernate and 
> Primefaces 5.0.
> I'm replacing the Apache MyFaces by DeltaSpike. The ManagedBeans are using 
> the ViewAccessScoped. When I replace MyFaces by DeltaSpike, I started having 
> a problem in requests for ajax. When the request is the ManagedBean is built 
> again.
> As I used the MyFaces in beans.xml file I was using the following 
> configuration, as shown below:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
> http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd";
>        bean-discovery-mode="all"
>        version="1.1">
>     
>     <interceptors>
>         
> <class>br.com.tei_ambiente.interceptor.VerificaPermissaoInterceptor</class>   
>      
>         <class>br.com.tei_ambiente.interceptor.TransacionalInterceptor</class>
>     </interceptors>    
>     
>     <alternatives>
>         
> <class>org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ClientSideWindowHandler</class>
>     </alternatives>    
> </beans>
> When you started using the DeltaSpike remove this configuration beans.xml 
> file and passed to extend the DefaultClientWindowConfig class as follows:
> @Specializes public class MyClientWindowConfig extends 
> DefaultClientWindowConfig { @Override public boolean 
> isClientWindowStoreWindowTreeEnabledOnButtonClick() { return true; } }
> Leia mais em: Apache DeltaSpike: CDI Programável 
> http://www.devmedia.com.br/apache-deltaspike-cdi-programavel/31982#ixzz3uUyhu7qd
> I wonder if this is expected behavior, or jumped a step in my project setup.
> Thanks for attention.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to