[richfaces-issues] [JBoss JIRA] Created: (RF-3847) Error using custom components inside scrollableDataTable

Ilya Musihin (JIRA) jira-events at lists.jboss.org
Thu Jul 3 09:58:31 EDT 2008


Error using custom components inside scrollableDataTable
--------------------------------------------------------

                 Key: RF-3847
                 URL: http://jira.jboss.com/jira/browse/RF-3847
             Project: RichFaces
          Issue Type: Feature Request
            Reporter: Ilya Musihin


We are developing custom JSF components and have found the following problem when placing our components inside of <rich:scrollableDataTable> component. Everything worked fine before we added the "col" tag as part of our component. Now if we use our component inside of <rich:scrollableDataTable> , we get the JavaScript error "columns[j] has no properties" appear. Our investigation has shown that this error is caused by the specifics of implementation of RichFaces' scrollable-date-table.js.jsf JavaScript file that uses function getElementsByTagName("col") in line 149:
cols=this.templNormal.getElement().getElementsByTagName("col");for(i=0;i<cols.length;i++){columns[j].bodyCol=$(cols[i]);j++;}

This piece of code works correctly unless a component inside of ScrollableDataTable component renders its own "col" tags. So the problem of interoperability of such components with ScrollableDataTable would be solved if the mentioned code would just retrieve ScrollableDataTable's own "col" tags without searching the inner parts of sub-components.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list