You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Filipe (Jira)" <de...@myfaces.apache.org> on 2020/08/26 12:53:00 UTC
[jira] [Commented] (TOMAHAWK-1687) javax.servlet.ServletException:
Cannot add the same component twice
[ https://issues.apache.org/jira/browse/TOMAHAWK-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17185164#comment-17185164 ]
Filipe commented on TOMAHAWK-1687:
----------------------------------
Tried patch supplied in the following issue:
https://issues.apache.org/jira/browse/TOMAHAWK-1674
Patch did not solve this problem.
> 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
> Priority: Major
>
> 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)