2 Replies Latest reply on Nov 4, 2008 8:00 PM by chuaky

    rich:componentControl in new Portal 2.7

    chuaky

      hi all,

      Recently i downloaded Portal 2.7.0, and try to migrate from Portal 2.6.5SP1 to 2.7.0. I encountered an issue with rich:modalpanel not popping up using rich:componentControl. There was no problem when i used Portal 2.6.5SP1.

      Btw, the "Richfaces.showModalPanel" is working for both Portal 2.6.5SP1 and 2.7.0.

      I try to debug with a4j:log, but nothing was shown in the log window.

      Is there anything else i can troubleshoot?
      Thanks.


      I use the followings:

      - Jboss Seam 2.1.0SP1
      - Richfaces 3.2.2
      - Portal bridge 1.0B4
      - Jboss Portal 2.6.5SP1 (working)
      - Jboss Portal 2.7.0 (not working with componentControl)


      Code segment of the UI page:

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:c="http://java.sun.com/jstl/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:s="http://jboss.com/products/seam/taglib">
       <f:view>
      <a4j:log popup="false" level="ALL" style="width: 800px; height: 300px;" id="hello"></a4j:log>
      
      <a4j:form>
      <a onclick="Richfaces.showModalPanel('editpanel');" id="ahref" href="#">Richfaces.showModalPanel Can Work</a>
       <h:graphicImage value="/images/ajax/error.gif" style="cursor:pointer" id="hidelink1"/>
       <rich:componentControl id="a1" for="editpanel" attachTo="hidelink1" operation="show" event="onclick" />
      </a4j:form>
      
       <rich:modalPanel id="editpanel" autosized="true">
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/images/ajax/error.gif" style="cursor:pointer" id="hidelink"/>
       <rich:componentControl id="a2" for="editpanel" attachTo="hidelink" operation="hide" event="onclick"/>
       </h:panelGroup>
       </f:facet>
       <h:outputText value="Edit Customer Info" />
       </rich:modalPanel>
      
       </f:view>
      </ui:composition>