1 Reply Latest reply on Jun 2, 2009 3:54 AM by vk101

    rich:component doesn't work

      The #{rich:component('myid')} syntax doesn't work for me. The outputted JavaScript is document.getElementById('formid:subid:myid').component, however, even though the 'formid:subid:myid' element exists on the page, I get the following JS error:

      TypeError: document.getElementById('formid:subid:myid').component is undefined

      This occurs when I try to call a method of that component, as in #{rich:component('dataScroller')}.switchToPage(7), as shown at this link in the 'View Source' link.

      I'm using 3.3.0 GA of RichFaces (bundled with Seam 2.1.2.CR1) - is the .component syntax not valid for this version? What do I need to do for the rich:component syntax to return something rather than being undefined?