8 Replies Latest reply on Dec 2, 2008 10:12 AM by ilya_shaikovsky

    rich:dataTable not user resizeable

    dkunzman

      Hi -

      The <rich:dataTable is not user resizeable. According to the documentation this is not possible. Can someone please give me a hint on hwat I am doing wrong?

      thanks,
      Wood Heat guy

        • 1. Re: rich:dataTable not user resizeable
          ilya_shaikovsky

          Paste me the line from documentation where this point mentioned.

          • 2. Re: rich:dataTable not user resizeable
            ilya_shaikovsky

            sorry.. I've read you point as "docs says it's possible" :)

            So.. the answer is - yes it's not possible ;)

            • 3. Re: rich:dataTable not user resizeable
              dkunzman

              Ok - but I beleive the extendedDataTable is resizeable by the client, since the demo is client size resizeable, but when I use it I get the following error message
              No tag "extendedDataTable" defined in tag library imported with prefix "rich"

              <rich:extendedDataTable value="#{macysbeancollection.bags}" var="cap" rows="50" id="table1" width="580px" height="400px">

              I am using tomcat 6.018, Richfaces 3.2.1 and myfaces 1.2.5. Thanks in advance....

              thanks,
              LogSplitter

              • 4. Re: rich:dataTable not user resizeable
                dkunzman

                My problem appears to have been two fold but I don't completely understand what I did wrong. 1) I needed to upgrade to 3.2.2 2) I needed to delete another form component that was accessing a different bean on my page. Can someone give me a hint on what I am doing wrong? Do I need to recycle the bean collection so I am not starting at the end?



                <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
                <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
                <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
                
                <html>
                <head>
                <title>GeoCatalog Grid</title>
                </head>
                
                <body>
                <a4j:keepAlive beanName="bookcollection" />
                <f:view>
                 <h:form>
                <rich:panel header="Simple Echo">
                 <h:inputText size="50" value="#{bean.text}">
                 <a4j:support event="onkeyup" reRender="rep" />
                 </h:inputText>
                 <h:outputText value="#{bean.text}" id="rep" />
                 </rich:panel>
                
                 <ui:composition>
                 <h:form>
                 <h:panelGrid columns="2" columnClasses="top,top">
                 <rich:extendedDataTable value="#{bookcollection.books}" var="cap1"
                 rows="50" id="table1" width="580px" height="400px">
                 <rich:column label="Code" id="Code" width="300"
                 headerClass="dataTableHeader" sortable="false">
                 <f:facet name="header">
                 <h:outputText value="Code" />
                 </f:facet>
                 <h:outputText value="#{cap1.code}" />
                 </rich:column>
                 <rich:column label="Format" id="Format" width="100"
                 headerClass="dataTableHeader" sortable="false">
                 <f:facet name="header">
                 <h:outputText value="File Format" />
                 </f:facet>
                 <h:outputText value="#{cap1.format}" />
                 </rich:column>
                 <rich:column label="Checkedout" id="Checkedout" width="100"
                 headerClass="dataTableHeader" sortable="false">
                 <f:facet name="header">
                 <h:outputText value="Checkedout" />
                 </f:facet>
                 <h:outputText value="#{cap1.checkedout}" />
                 </rich:column>
                 <rich:column label="branch" id="branch" width="100"
                 headerClass="dataTableHeader" sortable="false">
                 <f:facet name="header">
                 <h:outputText value="branch" />
                 </f:facet>
                 <h:outputText value="#{cap1.branch}" />
                 </rich:column>
                 </rich:extendedDataTable>
                 </h:panelGrid>
                 </h:form>
                 </ui:composition>
                 </h:form>
                </f:view>
                </body>
                </html>


                • 5. Re: rich:dataTable not user resizeable
                  ilya_shaikovsky

                   


                  1) I needed to upgrade to 3.2.2 2) I needed to delete another form component that was accessing a different bean on my page.


                  Not sure that understand clearly the problems. Lets start from two points you already mentioned. It has to be done.


                  • 6. Re: rich:dataTable not user resizeable
                    dkunzman

                    Ok - I'll try again. I've been noticing some strange behavior. 1) When including a component that accesses another bean the extendedDataTable is not displayed. 2) Even without the other component when the page is refreshed the extendedDataTable component is not displayed. Can someone please tell me what I might be doing wrong?

                    LogSplitter...
                    Today its warm no fire.

                    • 7. Re: rich:dataTable not user resizeable
                      dkunzman

                      In other words, why doesnt this allow the to forward the request when I press on my commandLink at the bottom of the page?



                      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
                      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
                      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>



                      GeoCatalog Grid




                      <a4j:keepAlive beanName="nitfbeancollection" />
                      <f:view>
                      <h:form>
                      <rich:panel header="Simple Echo">
                      <h:inputText size="50" value="#{bean.text}">
                      <a4j:support event="onkeyup" reRender="rep" />
                      </h:inputText>
                      <h:outputText value="#{bean.text}" id="rep" />
                      </rich:panel>
                      </h:form>
                      <h:form id="gtf">
                      <h:commandLink action="/test2/calander.jsp" value="calanader">
                      </h:commandLink>
                      </h:form>
                      </f:view>

                      • 8. Re: rich:dataTable not user resizeable
                        ilya_shaikovsky

                        Reading the constructions like

                        <h:commandLink action="/test2/calander.jsp" value="calanader">
                        


                        I could advice you to read just JSF docs from the beggining.