6 Replies Latest reply on Dec 10, 2006 7:22 PM by gavin.king

    ICEFaces Seam Portlet

    jgilbert

      Has anyone succesfully implemented an ICEFaces Seam Portlet?

      I have a helloworld jsf portlet working with icefaces.

      when i try to port one of my seam portlets to icefaces i get a bunch of error. I posted more infor to the icefaces forum:
      http://www.icefaces.org/JForum/posts/list/3066.page

        • 1. Re: ICEFaces Seam Portlet
          jgilbert

          I have successfully deployed a portlet that uses seam, icefaces, and facelets. I posted the example to the seam wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=IcefacesSeamFaceletsPortlet

          • 2. Re: ICEFaces Seam Portlet

            Thanks for the example! I almost got it working with Liferay-portal, except for the small thing that the ICE javascript seems to be missing... ice-tags work also, but on the javascript console i see error messages like:

            Error: iceSubmitPartial is not defined
            Source: http://localhost:8080/c/portal/layout?p_l_id=PRI.1004.3
            Line: 1
            


            • 3. Re: ICEFaces Seam Portlet

              The javascript was not found because there was some problems with the context name. I had renamed the WAR to icefaces.war, but for some reason icefaces was trying to retrieve the Icefaces javascript from wrong web-context, localhost:8080/HelloWorldIcefacesSeamPortlet/xmlhttp/ when the real one was localhost:8080/icefaces/xmlhttp/.

              After renaming the WAR to HelloWorldIcefacesSeamPortlet.war it started to work ( i changed the name of the portlet also).

              I wonder how icefaces determines where to lookup the resources (javascript etc) it needs?

              • 4. Re: ICEFaces Seam Portlet

                The next thing i'll try is to have drag-n-drop across different portlets.. i wonder how it goes ;)

                • 5. Re: ICEFaces Seam Portlet
                  jgilbert

                  It should be getting the name from

                  facesContext.getExternalContext().getRequestContextPath()


                  That was one of the code changes I added.


                  • 6. Re: ICEFaces Seam Portlet
                    gavin.king

                    Please make sure you report any needed fixes to the ICEfaces team. Thanks.