This content has been marked as final.
Show 4 replies
-
1. Re: js error on rich:extendedDataTable
nbelaevski Sep 19, 2009 7:55 AM (in response to nimo22)Hi,
Compare pages code in demo and in your application: what's the difference between them? -
2. Re: js error on rich:extendedDataTable
nimo22 Sep 19, 2009 12:20 PM (in response to nimo22)Hello,
I compared mine with the example, but cannot find any crucial difference.
I created a new xhtml-page, embeeded only the rich:extendedDataTable to ensure that no side effects can occur:<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <f:view contentType="text/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:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"> <html> <body> <h:form> <a4j:commandButton id="buttonUsers" value="fill users table" action="#{userBean.retrieveUsers}" reRender="formUsers:table" limitToList="true" ajaxSingle="true"/> </h:form> <h:form id="formUsers"> <rich:extendedDataTable var="_u" value="#{myUsers}" id="table"> <rich:column label="idUser"> <f:facet name="header"> <h:outputText value="idUser"/> </f:facet> <h:outputText value="#{_u.idUser}"/> </rich:column> <rich:column sortable="true" sortBy="#{_u.email}" label="eMail"> <f:facet name="header"> <h:outputText value="eMail"/> </f:facet> <h:outputText value="#{_u.email}"/> </rich:column> <rich:column sortable="true" sortBy="#{_u.lastname}" label="lastname"> <f:facet name="header"> <h:outputText value="lastname"/> </f:facet> <h:outputText value="#{_u.lastname}"/> </rich:column> </rich:extendedDataTable> </h:form> </body> </html> </f:view>
The sorting and grouping works without problems.
I deleted all css styles from my xhtml-page to ensure that there is no conflict. I do not use any other Java-Script-Code within this xhtml-page.
But when I click the icon to collapse the grouped rows,
then the following java-script error occurs:imageDiv is null http://localhost:8080/myones/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js Line 14
You see the error is different than before (I guess, because of deleting all style sheets or the like):C is null http://localhost:8080/myONE/a4j/g/3_3_1.GA/org/richfaces/ui.pack.js Line 12819
What do I making wrong?
I do not know, if this is relevant to the problem:
This is a snippet from my web-xml:<context-param> <param-name>org.richfaces.CONTROL_SKINNING</param-name> <param-value>disable</param-value> </context-param> <context-param> <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name> <param-value>disable</param-value> </context-param> <context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>ALL</param-value> </context-param> <context-param> <param-name>org.richfaces.LoadScriptStrategy</param-name> <param-value>ALL</param-value> </context-param>
-
3. Re: js error on rich:extendedDataTable
nimo22 Sep 22, 2009 11:50 AM (in response to nimo22)Unfortunately, I have not solved the problem.
I have tried to search the corresponding image (I guess, the image-icon for collapsing) and solve the "imageDiv is null"-Problem, but I have no success. -
4. Re: js error on rich:extendedDataTable
ilya_shaikovsky Sep 22, 2009 12:10 PM (in response to nimo22)please share war sample at sendspace.com for example