You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/08/09 18:51:37 UTC
[jira] Commented: (MYFACES-200) x:dataScroller renders facets twice (sometimes)
[ http://issues.apache.org/jira/browse/MYFACES-200?page=comments#action_12318184 ]
sean schofield commented on MYFACES-200:
----------------------------------------
Is this still a problem with the latest nightly build? <h:dataTable> implementation has been significantly changed and many of the related issues are no longer problems.
> 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