You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by fischman_98 <mf...@powerconsultantsinc.com> on 2006/07/12 00:21:22 UTC
Two dataScrollers, One dataTable throwing ServletException
I'm using one dataTable and two data scrollers and I am getting the following
error...
javax.servlet.ServletException: facet 'first' already has a child
associated. current associated component id: _idJsp45:data:_idJsp46 class:
org.apache.myfaces.component.html.ext.HtmlGraphicImage
Any thoughts? I have the dataTable wrapped in <h:form> tags (MyFaces
1.1.3)...the code is below.
<h:form>
<t:dataTable id="data" var="rows" value="#{exploreBean.rows}"
columnClasses="imageCol1,imageCol2,imageCol3"
rows="#{exploreBean.rowsPerPage}" preserveDataModel="false"
headerClass="header" styleClass="imageTable" footerClass="footer"
binding="#{exploreBean.resultsTable}">
<f:facet name="header">
<t:dataScroller id="top" for="data" paginator="true"
pageCountVar="pageCount" pageIndexVar="pageIndex"
paginatorMaxPages="10" immediate="true"
paginatorActiveColumnClass="scollerActive"
styleClass="scrollerTable" fastStep="10"
renderFacetsIfSinglePage="false">
<f:facet name="first">
<t:graphicImage url="#{bundle.imagePath}arrow-first.gif"
border="0" />
</f:facet>
<f:facet name="first">
<t:graphicImage url="#{bundle.imagePath}arrow-first.gif"
border="0" />
</f:facet>
<f:facet name="last">
<t:graphicImage url="#{bundle.imagePath}arrow-last.gif"
border="0" />
</f:facet>
<f:facet name="previous">
<t:graphicImage url="#{bundle.imagePath}arrow-previous.gif"
border="0" />
</f:facet>
<f:facet name="next">
<t:graphicImage url="#{bundle.imagePath}arrow-next.gif"
border="0" />
</f:facet>
<f:facet name="fastforward">
<t:graphicImage url="#{bundle.imagePath}arrow-ff.gif"
border="0" />
</f:facet>
<f:facet name="fastrewind">
<t:graphicImage url="#{bundle.imagePath}arrow-fr.gif"
border="0" />
</f:facet>
</t:dataScroller>
</f:facet>
<t:columns value="#{exploreBean.columns}" var="cols"
binding="#{exploreBean.resultsColumnsTable}">
<t:div style="text-align: center"
rendered="#{exploreBean.columnValue != null}">
<t:commandLink action="#{exploreBean.viewComp}">
<t:graphicImage
url="#{bundle.thumbNailPath}#{exploreBean.columnValue.submitterId}.jpg"
border="0">
</t:graphicImage>
</t:commandLink>
<f:verbatim>
<p class="imageLabel">
</f:verbatim>
<t:outputText
value="Picture Id:
<strong>#{exploreBean.columnValue.pictureId}</strong>"
escape="false">
</t:outputText>
<f:verbatim>
</p>
</f:verbatim>
<t:graphicImage url="#{bundle.imagePath}lbox_add.gif"
style="margin:1px" border="0">
</t:graphicImage>
<t:graphicImage url="#{bundle.imagePath}information.gif"
style="margin: 1px; margin-left: 3px; margin-right: 3px;"
border="0">
</t:graphicImage>
<t:graphicImage url="#{bundle.imagePath}imagecart_add.gif"
style="margin:1px" border="0">
</t:graphicImage>
</t:div>
</t:columns>
<f:facet name="footer">
<t:dataScroller id="bottom" for="data" paginator="true"
pageCountVar="pageCount" pageIndexVar="pageIndex"
paginatorMaxPages="10" immediate="true"
paginatorActiveColumnClass="scollerActive"
styleClass="scrollerTable" fastStep="10"
renderFacetsIfSinglePage="false">
<f:facet name="first">
<t:graphicImage url="#{bundle.imagePath}arrow-first.gif"
border="0" />
</f:facet>
<f:facet name="last">
<t:graphicImage url="#{bundle.imagePath}arrow-last.gif"
border="0" />
</f:facet>
<f:facet name="previous">
<t:graphicImage url="#{bundle.imagePath}arrow-previous.gif"
border="0" />
</f:facet>
<f:facet name="next">
<t:graphicImage url="#{bundle.imagePath}arrow-next.gif"
border="0" />
</f:facet>
<f:facet name="fastforward">
<t:graphicImage url="#{bundle.imagePath}arrow-ff.gif"
border="0" />
</f:facet>
<f:facet name="fastrewind">
<t:graphicImage url="#{bundle.imagePath}arrow-fr.gif"
border="0" />
</f:facet>
</t:dataScroller>
</f:facet>
</t:dataTable>
</h:form>
--
View this message in context: http://www.nabble.com/Two-dataScrollers%2C-One-dataTable-throwing-ServletException-tf1927614.html#a5279119
Sent from the MyFaces - Users forum at Nabble.com.