This content has been marked as final.
Show 9 replies
-
1. Re: Could not find datatable with id 'dataTableList'
ilya_shaikovsky Jun 29, 2009 4:35 AM (in response to jegancareer)paste full snippets of template and details page. Seems datascroller could not find dataTAble for some reason.
-
2. Re: Could not find datatable with id 'dataTableList'
jegancareer Jun 29, 2009 6:07 AM (in response to jegancareer)My Template code is
<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <body style="overflow:hidden;" onload="runBodyLoadScript()" > <f:view> <ui:include src="/pages/static/js/script.jspx" /> <span class="printhide"> <!-- MENU --> <h:form> <rich:toolBar height="10px"> <!-- REFERENTIAL Menu --> <rich:dropDownMenu horizontalOffset="0" verticalOffset="0" styleClass="DisableMenuReferential" style="align:left;"> <f:facet name="label"> <h:panelGroup><h:graphicImage value="/pages/static/images/menu/menu_icon.gif" /><h:outputText value=" Referential" /></h:panelGroup> </f:facet> <rich:menuSeparator /> <rich:menuItem submitMode="ajax" value="Family" onclick="location.href='#{facesContext.externalContext.requestContextPath}/faces/pages/referential/listFamily.jspx'" /> <rich:menuSeparator /> </rich:dropDownMenu> </rich:toolBar> </h:form> </span> <table class="Main" width="100%" summary=""> <tr> <td class="MainContents"> <div class="MainBordersSub"> <ui:insert name="body"></ui:insert></div> </td> </tr> </table> </f:view> </body> </html>
and my detail page is<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:tr="http://myfaces.apache.org/trinidad"> <head> </head> <ui:composition template="/pages/static/layout/template.jspx"> <ui:define name="body"> <h:form id="frmSearch"> <rich:panel > <div class="divCSS" style="height:600px; width:1200px;" > <rich:dataTable id="dataTableFamilyList" rows="100" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" cellpadding="0" cellspacing="0" border="0" var="varFamily" reRender="sc2" styleClass="GDSSearchResult" value="#{familyController.familyTableModel}" binding="#{familyController.selectedRow}"> <f:facet name="header"> <rich:columnGroup styleClass="noScroll"> <rich:column > <h:outputText value="name"></h:outputText> </rich:column> </rich:columnGroup> </f:facet> <rich:column> <h:outputText value="#{varFamily.mnemonic}"/> </rich:column> </rich:dataTable></div> <rich:spacer height="5px" /> <rich:datascroller align="left" for="dataTableFamilyList" maxPages="10" page="0" id="sc2" /> </rich:panel> </h:form> </ui:define> </ui:composition> </html>
Yes. When i remove the datatascroller it is working fine. pls let me know where i am going wrong? -
3. Re: Could not find datatable with id 'dataTableList'
ilya_shaikovsky Jun 29, 2009 6:17 AM (in response to jegancareer)try to check with for = "frmSearch:dataTableFamilyList" at datascroller.
-
4. Re: Could not find datatable with id 'dataTableList'
jegancareer Jun 29, 2009 6:44 AM (in response to jegancareer)Still the same. now i am getting error Like
could not find dataTable with id 'frmSearch:dataTableFamilyList' -
5. Re: Could not find datatable with id 'dataTableList'
ilya_shaikovsky Jun 29, 2009 6:58 AM (in response to jegancareer)b.t.w. If something changed if you will change the submitMode from ajax to none on the menu?
-
6. Re: Could not find datatable with id 'dataTableList'
jegancareer Jun 29, 2009 8:57 AM (in response to jegancareer)Hello,
My template file is like a constant. I am not changing that at any point.
Is it the problem with submitMode? -
7. Re: Could not find datatable with id 'dataTableList'
nbelaevski Jun 29, 2009 1:49 PM (in response to jegancareer)So, there are two parallel requests running in your case. This can be the cause of this issue.
-
8. Re: Could not find datatable with id 'dataTableList'
jegancareer Jun 29, 2009 11:41 PM (in response to jegancareer)pls tell me how to resolve this issue?
-
9. Re: Could not find datatable with id 'dataTableList'
nbelaevski Jun 30, 2009 6:00 AM (in response to jegancareer)Try this please:
"ilya_shaikovsky" wrote:
b.t.w. If something changed if you will change the submitMode from ajax to none on the menu?