Thank you Simon ... Apologies I was at work trying to multitask and replied to the wrong thread
-----Original Message----- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 6:46 PM To: MyFaces Discussion Subject: Re: Error adding dataScroller before my UIData Simon Kitching wrote: > Miller, John wrote: >> I need to add a dataScroller to both the top and bottom of my >> dataTable. However I get an exception when putting it before the >> dataTable is defined (i.e. in the header) saying it cant find the >> UIData element. Does anyone know the solution for this (other than >> adding it after the datatable and using stylesheet positioning.... I >> really am not interested in that solution) > > This is a fundamental issue with JSP/JSF: that components are both > created and rendered in a single pass through a JSP page. > > You could try enclosing the table & scroller components in some parent > component which "renders its children", eg an h:panelGroup. This should > cause the child components to all be created first before any rendering > (which does the id lookup) occurs. If this works, please reply to the > list to let us know. Just for future searchers of this list, John Miller has reported (in another thread) that wrapping the 2 dataScrollers + 1 dataTable within "another JSF component" has resolved the issue with having "forward references" from the dataScroller component to the dataTable component. Presumably that "other component" is a panelGroup or similar component that renders its children. Cheers, Simon NOTICE: This message, including all attachments transmitted with it, is for the use of the addressee only. It may contain proprietary, confidential and/or legally privileged information belonging to Litle & Co. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, you must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message. If you believe you have received this message in error, please delete it and all copies of it from your system and notify the sender immediately by reply e-mail. Thank you.