Issue with JSF in GateIn
nandhana03 Nov 25, 2010 1:49 AMI'm new to GateIn... I've successfully deployed a portlet in GateIn.... On editing the portlet, I'm unbale to retrieve the form values as a random string preceeds the form name. (something like _G7idhkasd897_jdhg67 followed by a colon , then the original form name). I'm using portletbridge-api-2.0.0.FINAL.jar & portletbridge-impl-2.0.0.FINAL.jar. My JSF version is JSF 1.2. The configuration I made :
faces-config.xml
---------------------------
<application>
      <view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler>
      <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>
</application>
web.xml
------------
commented :
<context-param>  
        <param-name>
            org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL 
        </param-name>
        <param-value>true</param-value>
    </context-param>
which I used earlier while deploying my application in JBoss portal.
Added :
<servlet-mapping>
      <servlet-name>FacesServlet</servlet-name>
      <url-pattern>/faces/*</url-pattern>
</servlet-mapping>
portlet.xml
----------------
<portlet>
         <description>Customer Portlet</description>
      <portlet-name>Customer Portlet</portlet-name>
      <display-name>Customer Portlet</display-name>
      <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class> 
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>         
      </supports>
      <portlet-info>
         <title>Customer</title>
         <short-title>Customer Portlet</short-title>
         <keywords>JSF, Portlet</keywords>
      </portlet-info>
      
      <init-param>
         <name>javax.portlet.faces.defaultViewId.view</name>
         <value>/views/customer/viewCustomer.jsp</value>
      </init-param>
       <init-param>
         <name>javax.portlet.faces.preserveActionParams</name>
         <value>true</value>
      </init-param>
      <init-param>
            <name>Administrator</name>
            <value>true</value>
      </init-param>
      <expiration-cache>-1</expiration-cache>
   </portlet>
anybody plz help me resolve my issue..... thnx in advance.....
 
     
     
    