0 Replies Latest reply on Jan 16, 2015 4:00 AM by Erik Andersen

    f:viewParam not working in eap 6.3

    Erik Andersen Newbie

      Hi Experts

       

      I am new to this forum so hope I follow all the right protocol.

       

      My company has a large application that I am migrating from JBoss 6.1.0.Final to Jboss EAP 6.3. f:viewParam is not working in EAP 6.3 and I've run out of ideas on what else to try to fix it. Also, rich:calendar is also not working, that is also probably also a symptom. Please note the application works in JBoss 6.1.0.Final.

       

      I should probably also mention that I have migrated from Hibernate 3.6.6 to Hibernate 4.2.14

       

      Stuff I’ve tried:

       

      • Some forums mention a bug when using more than one viewParam. Tested with one, still doesn’t work
      • Clean up libraries, dependencies etc.
      • In older versions of jsf apparently there is a bug that breaks viewParam. Upgraded to JSF 2.2.8/ RichFaces 4.5.1
      • There were some weld ClassNotFoundException exceptions that only surfaced with a higher logger level. Fixed but no impact on jsf
      • It works with the following in the backing Bean:

       

      FacesContext facesContext = FacesContext.getCurrentInstance();

      String tempTheId =facesContext.getExternalContext().getRequestParameterMap().get("theID");

       

      Which tells me  <h:link includeViewParams="true" is passing the params in the GET request.

       

      Here’s the viewParam jsf

       

          <ui:define name="metadata">

          <f:metadata>

          <f:viewParam name="theID" value="#{theBean.id}"

           requiredMessage="Please use 'Edit' on view list"/>

       

          <f:viewParam name="theSecondId" value="#{theBean.secondId}" required="false"/>

          </f:metadata>

          <f:event type="preRenderView" listener="#{theBean.initIDs}"/>

          </ui:define>

       

      here's the jboss-deployment-structure.xml

       

      <?xml version="1.0"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <deployment>

        <dependencies>

            <module name="org.apache.commons.beanutils" export="true"/>

            <module name="org.apache.commons.codec" export="true"/>

            <module name="org.apache.commons.collections" export="true"/>

            <module name="org.apache.commons.io" export="true"/>

            <module name="org.apache.commons.lang" export="true"/>

            <module name="org.apache.commons.logging" export="true"/>

            <module name="org.hibernate" export="true"/>

            <module name="org.hibernate.validator" export="true"/>

            <module name="javax.persistence.api" export="true"/>

            <module name="javax.faces.api" export="true"/>

            <module name="com.sun.jsf-impl" export="true"/>

            <module name="org.apache.ant" export="true"/>

            <module name="org.hibernate.envers" export="true"/>

            <module name="org.joda.time" export="true"/>

            <module name="com.ocpsoft.jsf" export="true"/>

            <module name="org.apache.cxf" export="true"/>

       

        </dependencies>

        </deployment>

      </jboss-deployment-structure>

       

      And jars packaged in the ear:

       

      DynamicJasper-4.0.1.jar

      DynamicJasper-core-fonts-1.0.jar

      esb-clients-90-SNAPSHOT.jar

      fnb-sso-14.jar

      guava-18.0.jar

      hibernate-envers-4.2.14.Final.jar

      itext-2.1.7.jar

      jasperreports-4.1.1.jar

      jfreechart-1.0.12.jar

      joda-time-2.0.jar

      picketlink-idm-api-1.5.0.Alpha02.jar

      picketlink-idm-common-1.5.0.Alpha02.jar

      picketlink-idm-core-1.5.0.Alpha02.jar

      picketlink-idm-spi-1.5.0.Alpha02.jar

      reflections-0.9.9.jar

      richfaces-4.5.1.Final.jar

      richfaces-a4j-4.5.1.Final.jar

      richfaces-core-4.5.1.Final.jar

      sac-1.3.jar

      seam-faces-3.1.0.Final.jar

      seam-faces-api-3.1.0.Final.jar

      seam-international-3.1.0.Final.jar

      seam-international-api-3.1.0.Final.jar

      seam-persistence-3.1.0.Final.jar

      seam-persistence-api-3.1.0.Final.jar

      seam-security-3.1.0.Final.jar

      seam-security-api-3.1.0.Final.jar

      seam-transaction-3.1.0.Final.jar

      seam-transaction-api-3.1.0.Final.jar

      softwaremill-cdi-73.jar

      softwaremill-conf-73.jar

      softwaremill-faces-73.jar

      softwaremill-util-73.jar

      solder-api-3.1.0.Final.jar

      solder-impl-3.1.0.Final.jar

      solder-logging-3.1.0.Final.jar

      spring-beans-2.5.jar

      spring-core-2.5.jar

       

      Thanks!