Filipe created TOMAHAWK-1687:
--------------------------------

             Summary: javax.servlet.ServletException: Cannot add the same 
component twice
                 Key: TOMAHAWK-1687
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1687
             Project: MyFaces Tomahawk
          Issue Type: Bug
    Affects Versions: 1.1.14
         Environment: JBoss EAP 7.2
            Reporter: Filipe


I'm having the error "javax.servlet.ServletException: Cannot add the same 
component twice" on XHTMLs where I have one or more 't:dataScroller's. Example:

<t:dataList id="resultItems" var="item" rowIndexVar="rowIndex" 
value="#\{bean.items}" rows="10">

(...)

</t:dataList>

<t:dataScroller id="resultItemsScroller" binding="#\{bean.resultItemsScroller}" 
for="resultItems" layout="list" pageCountVar="pageCount" 
pageIndexVar="pageIndex" rowsCountVar="rowsCount" 
firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex" 
displayedRowsCountVar="displayedRowsCount" fastStep="10" paginator="true" 
paginatorMaxPages="10" paginatorActiveColumnClass="active">
 <p class="text-center">
 <h:outputText value="Showing page #\{pageIndex} of #\{pageCount} (lines 
#\{firstRowIndex} to #\{lastRowIndex} of #\{rowsCount} lines)" escape="false" 
rendered="#\{pageCount > 1}" />
 <h:outputText value="#\{rowsCount} line(s)" escape="false" 
rendered="#\{pageCount == 1}" />
 </p>
 </t:dataScroller>



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to