Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-186

Portlet integration for JBoss Portal, portals jsr-168

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Jboss Portal, last version = 2.6 (for ajax capability in portlet

      Description

      Using RichFaces in portlets would be great.

      Julien Viet, of portal team, has just made the ajax capability in portlets.
      see : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035623#4035623

      And for the rest :
      http://wiki.jboss.org/wiki/Wiki.jsp?page=JSFInPortletEnvironment

      From my try of RichFaces in JBoss Portal 2.4.1 :
      DataTable does not work : it throw a :
      java.lang.ClassCastException: org.jboss.portlet.JBossRenderResponse
      when trying to cast the renderResponse from portal into a Http type class.

      I will try the nightly build, if someone can say that some component may have yet been corrected.
      and I will fill the wiki page JSFInPortletEnvironment with what is working and what not.

        Gliffy Diagrams

          Activity

          Show
          suckerd Mike K added a comment - see forum: http://jboss.com/index.html?module=bb&op=viewtopic&p=4066549#4066549
          Hide
          viggo.navarsete Viggo Navarsete added a comment -

          I still have problems, see issue http://jira.jboss.com/jira/browse/RF-572

          Show
          viggo.navarsete Viggo Navarsete added a comment - I still have problems, see issue http://jira.jboss.com/jira/browse/RF-572
          Hide
          viggo.navarsete Viggo Navarsete added a comment -

          Does this fix work with JSF RI 1.2? (which is bundled with jboss portal 2.6?)

          Show
          viggo.navarsete Viggo Navarsete added a comment - Does this fix work with JSF RI 1.2? (which is bundled with jboss portal 2.6?)
          Hide
          suckerd Mike K added a comment -

          Hi Viggo,

          the provided classes import myfaces classes, therefore I don't think that it might work out of the Box with the JSF-1.2 RI provided by JBOSS Portal 2.6.1
          Nevertheless I managed to get the fix (my own classes) running in JBOSS Portal 2.6.1 using myfaces 1.1.4
          You need a special prorietary param in your web.xml:

          <!-- Special command to tell JBOSS 2.6.1 Portal and higher to use the application bundled
          JSF-libs (myfaces 1.1.x) and not the JSF-libs 1.2 from the container -->
          <context-param>
          <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
          <param-value>true</param-value>
          </context-param>

          The remaining question is what are the org.ajax4jsf classes that provide the same functionality as the attached classes?
          This issue is fixed, but what classes do implement the solution???

          THX+Cheers Mike

          Show
          suckerd Mike K added a comment - Hi Viggo, the provided classes import myfaces classes, therefore I don't think that it might work out of the Box with the JSF-1.2 RI provided by JBOSS Portal 2.6.1 Nevertheless I managed to get the fix (my own classes) running in JBOSS Portal 2.6.1 using myfaces 1.1.4 You need a special prorietary param in your web.xml: <!-- Special command to tell JBOSS 2.6.1 Portal and higher to use the application bundled JSF-libs (myfaces 1.1.x) and not the JSF-libs 1.2 from the container --> <context-param> <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name> <param-value>true</param-value> </context-param> The remaining question is what are the org.ajax4jsf classes that provide the same functionality as the attached classes? This issue is fixed, but what classes do implement the solution??? THX+Cheers Mike
          Hide
          avogt_sundn Armin Vogt added a comment -

          Hi there,

          have a look at http://jira.jboss.com/jira/browse/RF-572 :
          i did a small example project with the Richfaces suggestionBox working within a portlet. It deploys under Portal 2.6.2 (thus using Sun-RI).
          The example was derived from the portlet example in Richfaces project, Thanks for that!
          You need Richfaces 3.2.0-SNAPSHOT (at least the portlet.jar). That comes with the right GenericFacesPortlet. I stripped down the web.xml and faces.config to the minimum. No need to bundle any other faces implementation.

          Have fun

          Show
          avogt_sundn Armin Vogt added a comment - Hi there, have a look at http://jira.jboss.com/jira/browse/RF-572 : i did a small example project with the Richfaces suggestionBox working within a portlet. It deploys under Portal 2.6.2 (thus using Sun-RI). The example was derived from the portlet example in Richfaces project, Thanks for that! You need Richfaces 3.2.0-SNAPSHOT (at least the portlet.jar). That comes with the right GenericFacesPortlet. I stripped down the web.xml and faces.config to the minimum. No need to bundle any other faces implementation. Have fun

            People

            • Assignee:
              alexsmirnov Alexander Smirnov
              Reporter:
              antoine_h Antoine Herzog
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development