10 Replies Latest reply on Aug 6, 2009 5:36 AM by ramy Hassan

    Proplem While Using include with Richfaces

    ramy Hassan Novice

      I'm Using Rich faces 3.3.0 GA and JSF 1.2 and i'm using this code

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:jsp="http://java.sun.com/jsp/Page" xml:lang="en" lang="en">
       <head>
       <title></title>
       <meta http-equiv="keywords" content="enter,your,keywords,here" />
       <meta http-equiv="description"
       content="A short description of this page." />
       <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
      
       <!--<link rel="stylesheet" type="text/css" href="styles.css">-->
       </head>
       <f:view>
       <body>
       <h:form>
       <h:panelGrid columns="2" styleClass="book"
       columnClasses="menuColumn, chapterColumn">
       <f:facet name="header">
       <h:panelGrid columns="1" styleClass="bookHeader">
      
       <h:outputText value="eh da" styleClass='bookTitle' />
       <hr />
       </h:panelGrid>
       </f:facet>
       <h:panelGrid>
       <h:commandLink value="Link" action="#{TestManagedBean.getLink}">
       <h:outputText value="Link" />
       <f:param name="page" value="Third.xhtml" />
       </h:commandLink>
       </h:panelGrid>
       <f:subview id="chapter">
       <!-- Both of the following are working -->
       <ui:include src="#{TestManagedBean.pagePath}" />
      
       </f:subview>
       </h:panelGrid>
      
       </h:form>
       </body>
       </f:view>
      </html>
      


      This is the main page that contain UI:Include and H:commandLink that will change the "src" attribute value in inlcude tag.


      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich" xml:lang="en" lang="en">
       <head>
       <title>My Facelets Page</title>
       <meta http-equiv="keywords" content="enter,your,keywords,here" />
       <meta http-equiv="description"
       content="A short description of this page." />
       <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
      
       <!--<link rel="stylesheet" type="text/css" href="styles.css">-->
       </head>
       <body>
       <h:form>
       <rich:dataTable value="#{TestManagedBean.testData}" var="data" rows="5"
       reRender="ds" id="simpletable">
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="Filtering Example" />
       </rich:column>
       <rich:column breakBefore="true">
       <h:outputText value="State Name" />
       </rich:column>
      
       </rich:columnGroup>
       </f:facet>
       <rich:column filterBy="#{data}" filterEvent="onkeyup">
       <f:facet name="header">
       <h:outputText value=" "
       title="Hack due to bug. Shuold be remoevd till release"></h:outputText>
       </f:facet>
       <h:outputText value="#{data}" />
       </rich:column>
      
       <f:facet name="footer">
       <rich:datascroller id="ds" renderIfSinglePage="false"></rich:datascroller>
       </f:facet>
       </rich:dataTable>
       </h:form>
       </body>
      </html>
      
      
      


      and this is the Second page that contains rich:dataTable using filtering

      Include is work OK and get the Second page to the first Page BUT..

      the table does Not work
      just display data and Filter in not working and data scroller also

      the page is useless


      Please reply ASAP