9 Replies Latest reply on Feb 3, 2009 11:54 AM by nimo22

    rich:extendedDataTable questions

    nimo22

      I want to use the rich:extendedDataTable.

      In http://livedemo.exadel.com/richfaces-demo/richfaces/extendedDataTable.jsf?c=extendedDataTable&tab=usage it is said:

      Note: This component is in a preview state for 3.2.2 release cause it was not fully tested/reviewed by the RF team.


      So I guess, this is the actual state in 3.3.0 !?

      2. Question:

      It s said that I can save the current settings "(visible columns, column width, sequence of the columns)". Can I save this setting to a flat file such as txt or xml? I can save the setting in the application context, but when I restart my application, it should put the settings for this datatable from a flat-file. Is that possible?


      3. Question:

      Where can I find the property for disabling the "Possibility to combine rows to groups" ? When I leave the property "groupingColumn" empty, the corresponding context-menu is deactived but visible (I want to hide that)!





        • 1. Re: rich:extendedDataTable questions
          nimo22

          Another thing is, when using sortBy-Attribute in column,
          then the row with the sortable header is shown.

          Is there a possibility to deactive the Sort-Menus in my context-Menu via properties for rich:extendedDataTable.

          • 2. Re: rich:extendedDataTable questions
            ilya_shaikovsky

            1) no it's our fault. just forgot to remove this. Stabilization has ben cmpleted for the component till 3.3.0

            2) How did you fetch the data from databases or some xml settings files and so on? All just the same. And nothing special with using using RF

            3) https://jira.jboss.org/jira/browse/RF-6016

            • 3. Re: rich:extendedDataTable questions
              ilya_shaikovsky

              there is one more issue to turn context menu of at all for the table in our jira.

              • 4. Re: rich:extendedDataTable questions
                nimo22

                thanks for answering, but how it is saved and how can I set/get the properties from it via code (Are there any examples of using the tableState?) I have something like this:

                <rich:extendedDataTable tableState="#{MyTableBean.tableState}" value="#{myData}" var="d">
                
                <rich:column sortBy="#{d.id}">
                 <f:facet name="header">
                 <h:outputLabel value="ID"/>
                 </f:facet>
                 <h:outputText value ="#{d.id}"/>
                </rich:column>
                
                
                <rich:column sortBy="#{d.name}">
                 <f:facet name="header">
                 <h:outputLabel value="Name"/>
                 </f:facet>
                 <h:outputText value ="#{d.name}"/>
                </rich:column>
                
                <rich:column sortBy="#{d.age}">
                 <f:facet name="header">
                 <h:outputLabel value="Age"/>
                 </f:facet>
                 <h:outputText value ="#{d.age}"/>
                </rich:column>
                
                </rich:extendedDataTable>


                class MyTableBean {
                
                String tableState;
                //getter/setter
                
                }



                The table is rendered and shows the data, but when I change the column-order via the dragn drop, then it stops working. Only the ajax-status for progressing is shown, I have waited appox 20 minutes without result - the ajax-status is show without ending. I have tried it with IE7, GoogleChrome and FireFox 3.0.5, all the same. Is there a know issue about that?


                • 5. Re: rich:extendedDataTable questions
                  nimo22

                  I have to say, that I bound the value="#{myData}" to SEAMs conversation-scope.

                  • 6. Re: rich:extendedDataTable questions
                    ilya_shaikovsky

                    explore ExtendedDataTableState class API docs.

                    • 7. Re: rich:extendedDataTable questions
                      nimo22

                      cool,

                      thats exactly what I was searching for!

                      thanks

                      • 8. Re: rich:extendedDataTable questions
                        nimo22

                        but unfortunately:( the ajax-status is shown without ending
                        after dragging columns or sorting headers via the context-menu of the rich:extendedDataTable.

                        I only see the a4j:status in the middle of the screen without ending.
                        (by the way, I created a wish for that: https://jira.jboss.org/jira/browse/RF-6020)

                        I turn on the a4j:log and it returns the following when doing e.g. a change order of columns:

                        debug[17:49:59,972]: Have Event [object Object] with properties: target: [object HTMLSpanElement], srcElement: undefined, type: mouseup
                        debug[17:49:59,973]: Query preparation for form 'null' requested



                        I use Richfaces 3.3.0.

                        • 9. Re: rich:extendedDataTable questions
                          nimo22

                          Ohhh forget all...sorry sorry, it was my fault.

                          have forgotten the form-tag around my datatable. My mistake..Now, it works !!!