[ http://issues.apache.org/jira/browse/MYFACES-200?page=comments#action_12319305 ]
Martin Marinschek commented on MYFACES-200: ------------------------------------------- Hi Waldek, I added you as a watcher to this bug. can you check out SVN head or try the nightly build if this is still a problem? regards, Martin > x:dataScroller renders facets twice (sometimes) > ----------------------------------------------- > > Key: MYFACES-200 > URL: http://issues.apache.org/jira/browse/MYFACES-200 > Project: MyFaces > Type: Bug > Versions: 1.0.9 beta > Environment: Windows XP, Tomcat 5/JBoss 3.2.5 (my environment), in general > any environment > Reporter: Waldek Piszczewiat > Priority: Minor > > When I use dataScroller tag with facets, i.e like this: > <x:dataScroller id="scroll_1" > for="dataAssignment" > fastStep="#{assignments.layout.list.paginatorFastStep}" > pageCountVar="pageCount" > pageIndexVar="pageIndex" > styleClass="paginatorScroller" > paginator="true" > paginatorMaxPages="#{assignments.layout.list.paginatorMaxPages}" > paginatorTableClass="paginator" > paginatorActiveColumnStyle="font-weight:bold;" > > > <f:facet name="first" > > <x:outputText styleClass="paginatorLink" > value="#{commonBundle.paginatorFirst}"></x:outputText> > </f:facet> > <f:facet name="last"> > <x:outputText styleClass="paginatorLink" > value="#{commonBundle.paginatorLast}"></x:outputText> > </f:facet> > <f:facet name="previous"> > <x:outputText styleClass="paginatorLink" > value="#{commonBundle.paginatorPrevious}"></x:outputText> > </f:facet> > <f:facet name="next"> > <x:outputText styleClass="paginatorLink" > value="#{commonBundle.paginatorNext}"></x:outputText> > </f:facet> > <f:facet name="fastforward"> > <x:outputText styleClass="paginatorLink" > value="#{commonBundle.paginatorFastforward}"></x:outputText> > </f:facet> > <f:facet name="fastrewind"> > <x:outputText styleClass="paginatorLink" > value="#{commonBundle.paginatorFastrewind}"></x:outputText> > </f:facet> > </x:dataScroller> > sometimes dataScroller renders facets twice (but only links, not a table > delimiters). > I trace code and I found a method in class HtmlDataScrollerRenderer method > renderFacet. The problem is the first line: > UIComponent link = getLink(facesContext, scroller, facetComp, facetName); > because in method getLink created link with not null child (facetComp). > I replaced this line by: > // create empty link, without children > UIComponent link = getLink(facesContext, scroller, null, facetName); > and component works good. I don't know what is a detailed specification of > this component (now only first element from facet is rendered), so I don't > create diff file. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
