Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1042

ManagedBean is rebuilt after Ajax Request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • 1.5.1
    • None
    • JSF-Module, JSF22-Module
    • OS Windows 8.1, WildFly 8.1.0 Final
    • Patch, Important

    Description

      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.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            fischer1983@gmail.com Luciano Fischer Lumertz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: