14 Replies Latest reply on Mar 13, 2009 9:07 AM by Nick Belaevski

    richfaces sorting not working

    ashutosh deora Newbie

      in the following datatable sortBy is not working
      the problem is when the header is clicked for sorting purpose the entire table vanishes
      so please kindly tell the solution
      its an urgency




      <rich:dataTable value="#{listData}" var="list" border="2" rendered="true" >
      <rich:column sortBy="#{list.trainName}" sortOrder="ASCENDING" sortable="true" selfSorted="true">
      <f:facet name="header">
      <h:outputText value="Train Name" />
      </f:facet>
      <h:outputText value="#{list.trainName}" />
      </rich:column>
      <rich:column sortBy="#{list.sourceName}" sortable="true" selfSorted="true">
      <f:facet name="header">
      <h:outputText value="Source Name" />
      </f:facet>
      <h:outputText value="#{list.sourceName}" />
      </rich:column>
      <rich:column sortBy="#{list.destinationName}" sortable="true" selfSorted="true">
      <f:facet name="header">
      <h:outputText value="Destination Name" />
      </f:facet>
      <h:outputText value="#{list.destinationName}" />
      </rich:column>
      </rich:dataTable>

        • 1. Re: richfaces sorting not working
          Nick Belaevski Master

          Hello,

          Please add

          <a4j:log popup="false" />
          to the page and check if there are any errors/warnings there.

          • 2. Re: richfaces sorting not working
            ashutosh deora Newbie

            u have asked me to add <a4j:log popup="false" />
            in the code but my code doesnt contain any pop up
            so where to put this line and could u lease tell me that y sortBy is not working

            thnax for reply

            <rich:dataTable value="#{listData}" var="list" border="2"
            rendered="true" >
            <rich:column sortBy="#{list.trainName}" >
            <f:facet name="header">
            <h:outputText value="Train Name" />
            </f:facet>
            <h:outputText value="#{list.trainName}" />
            </rich:column>
            <rich:column sortBy="#{list.sourceName}" >
            <f:facet name="header">
            <h:outputText value="Source Name" />
            </f:facet>
            <h:outputText value="#{list.sourceName}" />
            </rich:column>
            <rich:column sortBy="#{list.destinationName}" >
            <f:facet name="header">
            <h:outputText value="Destination Name" />
            </f:facet>
            <h:outputText value="#{list.destinationName}" />
            </rich:column>
            </rich:dataTable>

            • 3. Re: richfaces sorting not working
              Nick Belaevski Master

              Put it just after the form. Probably, log will show what's gone wrong.

              • 5. Re: richfaces sorting not working
                ashutosh deora Newbie

                debug[9:33:14,679]: Have Event [object Object] with properties: target: [object HTMLImageElement], srcElement: undefined, type: click
                debug[9:33:14,679]: Query preparation for form 'tagpageForm' requested
                debug[9:33:14,680]: Append hidden control tagpageForm with value [tagpageForm] and value attribute [tagpageForm]
                debug[9:33:14,680]: Append text control tagpageForm:j_id3 with value [] and value attribute []
                debug[9:33:14,680]: Append text control tagpageForm:j_id6 with value [] and value attribute []
                debug[9:33:14,681]: Append text control tagpageForm:j_id9 with value [] and value attribute []
                debug[9:33:14,681]: Append text control tagpageForm:j_id12 with value [] and value attribute []
                debug[9:33:14,681]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]
                debug[9:33:14,682]: parameter fsp with value tagpageForm:dataid:coltabg
                debug[9:33:14,682]: parameter tagpageForm:dataid with value fsp
                debug[9:33:14,682]: Look up queue with default name
                debug[9:33:14,683]: NEW AJAX REQUEST !!! with form: tagpageForm
                debug[9:33:14,683]: Start XmlHttpRequest
                debug[9:33:14,683]: Reqest state : 1
                debug[9:33:14,684]: QueryString: AJAXREQUEST=_viewRoot&tagpageForm=tagpageForm&tagpageForm%3Aj_id3=&tagpageForm%3Aj_id6=&tagpageForm%3Aj_id9=&tagpageForm%3Aj_id12=&javax.faces.ViewState=j_id2&fsp=tagpageForm%3Adataid%3Acoltabg&tagpageForm%3Adataid=fsp&
                debug[9:33:14,685]: Reqest state : 1
                debug[9:33:14,742]: Reqest state : 2
                debug[9:33:14,743]: Reqest state : 3
                debug[9:33:14,743]: Reqest state : 4
                debug[9:33:14,744]: Reqest end with state 4
                debug[9:33:14,744]: Response with content-type: text/xml;charset=UTF-8
                debug[9:33:14,744]: Full response content: <?xml version="1.0"?> <th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="tagpageForm:dataid:coltabgheader" onclick="A4J.AJAX.Submit('_viewRoot','tagpageForm',event,{'similarityGroupingId':'tagpageForm:dataid','parameters':{'fsp':'tagpageForm:dataid:coltabg','tagpageForm:dataid':'fsp'} ,'actionUrl':'/trialprojforfeeding/tagpage.seam'} )" style="cursor: pointer;">Train Name<th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="tagpageForm:dataid:coltabghheader" onclick="A4J.AJAX.Submit('_viewRoot','tagpageForm',event,{'similarityGroupingId':'tagpageForm:dataid','parameters':{'fsp':'tagpageForm:dataid:coltabgh','tagpageForm:dataid':'fsp'} ,'actionUrl':'/trialprojforfeeding/tagpage.seam'} )" style="cursor: pointer;">Source Name<th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="tagpageForm:dataid:j_id18header" onclick="A4J.AJAX.Submit('_viewRoot','tagpageForm',event,{'similarityGroupingId':'tagpageForm:dataid','parameters':{'fsp':'tagpageForm:dataid:j_id18','tagpageForm:dataid':'fsp'} ,'actionUrl':'/trialprojforfeeding/tagpage.seam'} )" style="cursor: pointer;">Destination Name
                debug[9:33:14,746]: Header Ajax-Expired not found, search in
                debug[9:33:14,746]: search for elements by name 'meta' in element #document
                debug[9:33:14,755]: Find
                debug[9:33:14,756]: Find
                debug[9:33:14,756]: Header Ajax-Update-Ids not found, search in
                debug[9:33:14,756]: search for elements by name 'meta' in element #document
                debug[9:33:14,765]: Find
                debug[9:33:14,765]: Update page by list of rendered areas from response tagpageForm:dataid:tb,tagpageForm:dataid:coltabgheader:sortDiv,tagpageForm:dataid:coltabghheader:sortDiv,tagpageForm:dataid:j_id18header:sortDiv
                debug[9:33:14,765]: search for elements by name 'script' in element #document
                debug[9:33:14,778]: in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript
                debug[9:33:14,778]: Such element exist in document
                debug[9:33:14,778]: in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript
                debug[9:33:14,778]: Such element exist in document
                debug[9:33:14,779]: in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js
                debug[9:33:14,779]: Such element exist in document
                debug[9:33:14,779]: in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js
                debug[9:33:14,780]: Such element exist in document
                debug[9:33:14,780]: search for elements by name 'link' in element #document
                debug[9:33:14,792]: in response with src=/trialprojforfeeding/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
                debug[9:33:14,793]: Such element exist in document
                debug[9:33:14,793]: in response with src=/trialprojforfeeding/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
                debug[9:33:14,793]: Such element exist in document
                debug[9:33:14,793]: in response with src=/trialprojforfeeding/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
                debug[9:33:14,794]: Such element exist in document
                debug[9:33:14,794]: call getElementById for id= org.ajax4jsf.queue_script
                debug[9:33:14,794]: Update page part from call parameter for ID tagpageForm:dataid:tb
                debug[9:33:14,795]: call getElementById for id= tagpageForm:dataid:tb
                debug[9:33:14,801]: Replace content of node by replaceChild()
                debug[9:33:14,802]: search for elements by name 'script' in element tbody
                debug[9:33:14,817]: Scripts in updated part count : 0
                debug[9:33:14,817]: Update part of page for Id: tagpageForm:dataid:tb successful
                debug[9:33:14,817]: Update page part from call parameter for ID tagpageForm:dataid:coltabgheader:sortDiv
                debug[9:33:14,818]: call getElementById for id= tagpageForm:dataid:coltabgheader:sortDiv
                debug[9:33:14,819]: Replace content of node by replaceChild()
                debug[9:33:14,820]: search for elements by name 'script' in element div
                debug[9:33:14,835]: Scripts in updated part count : 0
                debug[9:33:14,836]: Update part of page for Id: tagpageForm:dataid:coltabgheader:sortDiv successful
                debug[9:33:14,836]: Update page part from call parameter for ID tagpageForm:dataid:coltabghheader:sortDiv
                debug[9:33:14,836]: call getElementById for id= tagpageForm:dataid:coltabghheader:sortDiv
                debug[9:33:14,837]: Replace content of node by replaceChild()
                debug[9:33:14,838]: search for elements by name 'script' in element div
                debug[9:33:14,853]: Scripts in updated part count : 0
                debug[9:33:14,853]: Update part of page for Id: tagpageForm:dataid:coltabghheader:sortDiv successful
                debug[9:33:14,854]: Update page part from call parameter for ID tagpageForm:dataid:j_id18header:sortDiv
                debug[9:33:14,854]: call getElementById for id= tagpageForm:dataid:j_id18header:sortDiv
                debug[9:33:14,855]: Replace content of node by replaceChild()
                debug[9:33:14,855]: search for elements by name 'script' in element div
                debug[9:33:14,870]: Scripts in updated part count : 0
                debug[9:33:14,871]: call getElementById for id= org.ajax4jsf.oncomplete
                debug[9:33:14,871]: Processing updates finished, no oncomplete function to call
                debug[9:33:14,871]: Update part of page for Id: tagpageForm:dataid:j_id18header:sortDiv successful
                debug[9:33:14,872]: call getElementById for id= ajax-view-state
                debug[9:33:14,872]: Hidden JSF state fields: [object HTMLSpanElement]
                debug[9:33:14,872]: Namespace for hidden view-state input fields is undefined
                debug[9:33:14,872]: search for elements by name 'input' in element span
                debug[9:33:14,880]: Replace value for inputs: 7 by new values: 1
                debug[9:33:14,880]: Input in response: javax.faces.ViewState
                debug[9:33:14,880]: Found same input on page with type: hidden
                debug[9:33:14,881]: search for elements by name 'INPUT' in element span
                debug[9:33:14,888]: Replace value for inputs: 7 by new values: 0
                debug[9:33:14,888]: call getElementById for id= _A4J.AJAX.focus
                debug[9:33:14,888]: No focus information in response

                • 6. Re: richfaces sorting not working
                  ashutosh deora Newbie

                  as per your suggestion i used <aj4:log popup="false" />
                  i got a result which i have pasted above post

                  so kindly please suggest how to move forward with this problem

                  • 7. Re: richfaces sorting not working
                    Ilya Shaikovsky Master

                    please repast the log using BBCode [ code ] tag

                    • 8. Re: richfaces sorting not working
                      ashutosh deora Newbie

                      u have asked me to repast the log using BBCode [ code ] tag

                      what is this
                      i followed whatever u said to do

                      i pasted the
                      <aj4:log popup="false" />

                      </h:form> ended
                      and then i run the page

                      whatever result came i gave it to u
                      if the result is not clear then i will post it again
                      please tell what i have to do

                      • 9. Re: richfaces sorting not working
                        ashutosh deora Newbie

                        <h:form id="tagpageForm">
                        <rich:dataTable value="#{listData}" var="list" border="2" id="dataid">

                        <rich:column sortBy="#{list.trainName}" id="coltabg">
                        <f:facet name="header">
                        <h:outputText value="Train Name">
                        <a:support event="onclick" actionListener="#{DataSessionStateLess.sortingByTrainName(e)}" reRender="dataid"/>
                        </h:outputText>
                        </f:facet>
                        <h:outputText value="#{list.trainName}" />
                        </rich:column>
                        <rich:column sortBy="#{list.sourceName}" id="coltabgh">
                        <f:facet name="header">
                        <h:outputText value="Source Name" />
                        </f:facet>
                        <h:outputText value="#{list.sourceName}" />
                        </rich:column>
                        <rich:column sortBy="#{list.destinationName}" sortable="true" selfSorted="true">
                        <f:facet name="header">
                        <h:outputText value="Destination Name" />
                        </f:facet>
                        <h:outputText value="#{list.destinationName}" />
                        </rich:column>
                        </</rich:dataTable>

                        </h:form>
                        <a:log popup="false" />

                        • 10. Re: richfaces sorting not working
                          Ilya Shaikovsky Master

                          I mean look to the result of your log posting, it doesn't readable.. use the forum tag code around such blocks.

                          • 11. Re: richfaces sorting not working
                            Nick Belaevski Master

                             

                            "ashutoshdeora" wrote:
                            debug[9:33:14,679]: Have Event [object Object] with properties: target: [object HTMLImageElement], srcElement: undefined, type: click
                            debug[9:33:14,679]: Query preparation for form 'tagpageForm' requested
                            debug[9:33:14,680]: Append hidden control tagpageForm with value [tagpageForm] and value attribute [tagpageForm]
                            debug[9:33:14,680]: Append text control tagpageForm:j_id3 with value [] and value attribute []
                            debug[9:33:14,680]: Append text control tagpageForm:j_id6 with value [] and value attribute []
                            debug[9:33:14,681]: Append text control tagpageForm:j_id9 with value [] and value attribute []
                            debug[9:33:14,681]: Append text control tagpageForm:j_id12 with value [] and value attribute []
                            debug[9:33:14,681]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]
                            debug[9:33:14,682]: parameter fsp with value tagpageForm:dataid:coltabg
                            debug[9:33:14,682]: parameter tagpageForm:dataid with value fsp
                            debug[9:33:14,682]: Look up queue with default name
                            debug[9:33:14,683]: NEW AJAX REQUEST !!! with form: tagpageForm
                            debug[9:33:14,683]: Start XmlHttpRequest
                            debug[9:33:14,683]: Reqest state : 1
                            debug[9:33:14,684]: QueryString: AJAXREQUEST=_viewRoot&tagpageForm=tagpageForm&tagpageForm%3Aj_id3=&tagpageForm%3Aj_id6=&tagpageForm%3Aj_id9=&tagpageForm%3Aj_id12=&javax.faces.ViewState=j_id2&fsp=tagpageForm%3Adataid%3Acoltabg&tagpageForm%3Adataid=fsp&
                            debug[9:33:14,685]: Reqest state : 1
                            debug[9:33:14,742]: Reqest state : 2
                            debug[9:33:14,743]: Reqest state : 3
                            debug[9:33:14,743]: Reqest state : 4
                            debug[9:33:14,744]: Reqest end with state 4
                            debug[9:33:14,744]: Response with content-type: text/xml;charset=UTF-8
                            debug[9:33:14,744]: Full response content: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component" href="/trialprojforfeeding/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__" rel="stylesheet" type="text/css" /><link class="component" href="/trialprojforfeeding/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><script src="/trialprojforfeeding/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript" type="text/javascript"> </script><script src="/trialprojforfeeding/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript" type="text/javascript"> </script><script src="/trialprojforfeeding/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js" type="text/javascript"> </script><link class="component" href="/trialprojforfeeding/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__" rel="stylesheet" type="text/css" /><script src="/trialprojforfeeding/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js" type="text/javascript"> </script></head><body><table class="dr-table rich-table" id="tagpageForm:dataid" border="2" cellpadding="0" cellspacing="0"><colgroup span="3"></colgroup><thead class="dr-table-thead"><tr class="dr-table-subheader rich-table-subheader"><th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="tagpageForm:dataid:coltabgheader" onclick="A4J.AJAX.Submit('_viewRoot','tagpageForm',event,{'similarityGroupingId':'tagpageForm:dataid','parameters':{'fsp':'tagpageForm:dataid:coltabg','tagpageForm:dataid':'fsp'} ,'actionUrl':'/trialprojforfeeding/tagpage.seam'} )" style="cursor: pointer;"><div id="tagpageForm:dataid:coltabgheader:sortDiv"><span class="dr-table-sortable-header">Train Name<img src="/trialprojforfeeding/a4j/g/3_3_0.GAorg.richfaces.renderkit.html.iconimages.DataTableIconSortAsc/DATB/eAFjYGD4!!8!AAYAAv4_" alt=" " width="15" height="15" class="dr-table-header-sort-img rich-sort-icon" /></span></div></th><th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="tagpageForm:dataid:coltabghheader" onclick="A4J.AJAX.Submit('_viewRoot','tagpageForm',event,{'similarityGroupingId':'tagpageForm:dataid','parameters':{'fsp':'tagpageForm:dataid:coltabgh','tagpageForm:dataid':'fsp'} ,'actionUrl':'/trialprojforfeeding/tagpage.seam'} )" style="cursor: pointer;"><div id="tagpageForm:dataid:coltabghheader:sortDiv"><span class="dr-table-sortable-header">Source Name<img src="/trialprojforfeeding/a4j/g/3_3_0.GAorg.richfaces.renderkit.html.iconimages.DataTableIconSortNone/DATB/eAFjYGD4!!8!AAYAAv4_" alt=" " width="15" height="15" class="dr-table-header-sort-img rich-sort-icon" /></span></div></th><th class="dr-table-subheadercell rich-table-subheadercell" scope="col" id="tagpageForm:dataid:j_id18header" onclick="A4J.AJAX.Submit('_viewRoot','tagpageForm',event,{'similarityGroupingId':'tagpageForm:dataid','parameters':{'fsp':'tagpageForm:dataid:j_id18','tagpageForm:dataid':'fsp'} ,'actionUrl':'/trialprojforfeeding/tagpage.seam'} )" style="cursor: pointer;"><div id="tagpageForm:dataid:j_id18header:sortDiv"><span class="dr-table-sortable-header">Destination Name<img src="/trialprojforfeeding/a4j/g/3_3_0.GAorg.richfaces.renderkit.html.iconimages.DataTableIconSortNone/DATB/eAFjYGD4!!8!AAYAAv4_" alt=" " width="15" height="15" class="dr-table-header-sort-img rich-sort-icon" /></span></div></th></tr></thead><tbody id="tagpageForm:dataid:tb"></tbody></table><meta name="Ajax-Update-Ids" content="tagpageForm:dataid:tb,tagpageForm:dataid:coltabgheader:sortDiv,tagpageForm:dataid:coltabghheader:sortDiv,tagpageForm:dataid:j_id18header:sortDiv" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id2" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
                            debug[9:33:14,746]: Header Ajax-Expired not found, search in <meta>
                            debug[9:33:14,746]: search for elements by name 'meta' in element #document
                            debug[9:33:14,755]: Find <meta name='Ajax-Update-Ids' content='tagpageForm:dataid:tb,tagpageForm:dataid:coltabgheader:sortDiv,tagpageForm:dataid:coltabghheader:sortDiv,tagpageForm:dataid:j_id18header:sortDiv'>
                            debug[9:33:14,756]: Find <meta name='Ajax-Response' content='true'>
                            debug[9:33:14,756]: Header Ajax-Update-Ids not found, search in <meta>
                            debug[9:33:14,756]: search for elements by name 'meta' in element #document
                            debug[9:33:14,765]: Find <meta name='Ajax-Update-Ids' content='tagpageForm:dataid:tb,tagpageForm:dataid:coltabgheader:sortDiv,tagpageForm:dataid:coltabghheader:sortDiv,tagpageForm:dataid:j_id18header:sortDiv'>
                            debug[9:33:14,765]: Update page by list of rendered areas from response tagpageForm:dataid:tb,tagpageForm:dataid:coltabgheader:sortDiv,tagpageForm:dataid:coltabghheader:sortDiv,tagpageForm:dataid:j_id18header:sortDiv
                            debug[9:33:14,765]: search for elements by name 'script' in element #document
                            debug[9:33:14,778]: <script> in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript
                            debug[9:33:14,778]: Such element exist in document
                            debug[9:33:14,778]: <script> in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript
                            debug[9:33:14,778]: Such element exist in document
                            debug[9:33:14,779]: <script> in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js
                            debug[9:33:14,779]: Such element exist in document
                            debug[9:33:14,779]: <script> in response with src=/trialprojforfeeding/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js
                            debug[9:33:14,780]: Such element exist in document
                            debug[9:33:14,780]: search for elements by name 'link' in element #document
                            debug[9:33:14,792]: <link> in response with src=/trialprojforfeeding/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
                            debug[9:33:14,793]: Such element exist in document
                            debug[9:33:14,793]: <link> in response with src=/trialprojforfeeding/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
                            debug[9:33:14,793]: Such element exist in document
                            debug[9:33:14,793]: <link> in response with src=/trialprojforfeeding/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
                            debug[9:33:14,794]: Such element exist in document
                            debug[9:33:14,794]: call getElementById for id= org.ajax4jsf.queue_script
                            debug[9:33:14,794]: Update page part from call parameter for ID tagpageForm:dataid:tb
                            debug[9:33:14,795]: call getElementById for id= tagpageForm:dataid:tb
                            debug[9:33:14,801]: Replace content of node by replaceChild()
                            debug[9:33:14,802]: search for elements by name 'script' in element tbody
                            debug[9:33:14,817]: Scripts in updated part count : 0
                            debug[9:33:14,817]: Update part of page for Id: tagpageForm:dataid:tb successful
                            debug[9:33:14,817]: Update page part from call parameter for ID tagpageForm:dataid:coltabgheader:sortDiv
                            debug[9:33:14,818]: call getElementById for id= tagpageForm:dataid:coltabgheader:sortDiv
                            debug[9:33:14,819]: Replace content of node by replaceChild()
                            debug[9:33:14,820]: search for elements by name 'script' in element div
                            debug[9:33:14,835]: Scripts in updated part count : 0
                            debug[9:33:14,836]: Update part of page for Id: tagpageForm:dataid:coltabgheader:sortDiv successful
                            debug[9:33:14,836]: Update page part from call parameter for ID tagpageForm:dataid:coltabghheader:sortDiv
                            debug[9:33:14,836]: call getElementById for id= tagpageForm:dataid:coltabghheader:sortDiv
                            debug[9:33:14,837]: Replace content of node by replaceChild()
                            debug[9:33:14,838]: search for elements by name 'script' in element div
                            debug[9:33:14,853]: Scripts in updated part count : 0
                            debug[9:33:14,853]: Update part of page for Id: tagpageForm:dataid:coltabghheader:sortDiv successful
                            debug[9:33:14,854]: Update page part from call parameter for ID tagpageForm:dataid:j_id18header:sortDiv
                            debug[9:33:14,854]: call getElementById for id= tagpageForm:dataid:j_id18header:sortDiv
                            debug[9:33:14,855]: Replace content of node by replaceChild()
                            debug[9:33:14,855]: search for elements by name 'script' in element div
                            debug[9:33:14,870]: Scripts in updated part count : 0
                            debug[9:33:14,871]: call getElementById for id= org.ajax4jsf.oncomplete
                            debug[9:33:14,871]: Processing updates finished, no oncomplete function to call
                            debug[9:33:14,871]: Update part of page for Id: tagpageForm:dataid:j_id18header:sortDiv successful
                            debug[9:33:14,872]: call getElementById for id= ajax-view-state
                            debug[9:33:14,872]: Hidden JSF state fields: [object HTMLSpanElement]
                            debug[9:33:14,872]: Namespace for hidden view-state input fields is undefined
                            debug[9:33:14,872]: search for elements by name 'input' in element span
                            debug[9:33:14,880]: Replace value for inputs: 7 by new values: 1
                            debug[9:33:14,880]: Input in response: javax.faces.ViewState
                            debug[9:33:14,880]: Found same input on page with type: hidden
                            debug[9:33:14,881]: search for elements by name 'INPUT' in element span
                            debug[9:33:14,888]: Replace value for inputs: 7 by new values: 0
                            debug[9:33:14,888]: call getElementById for id= _A4J.AJAX.focus
                            debug[9:33:14,888]: No focus information in response



                            • 12. Re: richfaces sorting not working
                              Nick Belaevski Master

                              Table data just comes empty. Probably, some application bean is not initialized in the right way, so the data is not provided.

                              • 13. Re: richfaces sorting not working
                                ashutosh deora Newbie

                                thats what i want to know y data table is coming empty when sorting is called im using EJB3
                                the backing bean is a session bean
                                the database is created by entity bean
                                so please tell me what to do now

                                • 14. Re: richfaces sorting not working
                                  Nick Belaevski Master

                                  Looks like an issue in application logic. You can use debugger/logger to check if that data returned for the subsequent request is really empty and get to know why, if that is so.