3 Replies Latest reply on Nov 24, 2010 2:19 AM by Dhanya Sreejith

    Issue with JSF in GateIn

    Dhanya Sreejith Newbie

      I'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 :












      commented :


      which I used earlier while deploying my application in JBoss portal.


      Added :








               <description>Customer Portlet</description>
            <portlet-name>Customer Portlet</portlet-name>
            <display-name>Customer Portlet</display-name>
               <short-title>Customer Portlet</short-title>
               <keywords>JSF, Portlet</keywords>



      anybody plz help me resolve my issue.....  thnx in advance.....

        • 1. Re: Issue with JSF in GateIn
          Prabhat Jha Master

          Please ask your question in JBoss PortletBridge forum which is right place for this question. http://community.jboss.org/en/portletbridge?view=discussions

          • 2. Re: Issue with JSF in GateIn
            Alexander Smirnov Master

            This is portal-specific behavior. Because you can have more then one instance of the same portlet on portal page, bridge prepends all names with the current portal instance namespace, this is specification requirement ( see JSR-286 and JSR-329 for details ). To address forms or other elements in the portlet, you have to get actual clientId. To get it, you can bind form to Java bean ( binding attribute ) or use rich:clientId function.

            Keep in mind thhat you JavaScript code also can be loaded many times ( for each portlet instance ) so it had better to prepend all names with the same namespace.

            • 3. Re: Issue with JSF in GateIn
              Dhanya Sreejith Newbie

              hiii Alexander..... First of all, thnx for the valuable info: u gave......Still a problem exists......As u said, I gave the binding attribute to form. (<h:form id="abc" binding="#{beanName.abcForm}">  where abcForm is of type javax.faces.component.UIForm).  On retrieving value of beanName.abcForm.id, I got abc. But on inspecting the form name in firebug, it still showed the random string preceeding the form id. So still I'm unable to retrieve the form values. (while retrieving values from parameter map using 'FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap()' , I can see that all form values are preceeded by the random string).