[
https://issues.apache.org/jira/browse/TOMAHAWK-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507649
]
Leonardo Uribe commented on TOMAHAWK-160:
-----------------------------------------
I found that the solution works well with trinidad + tomahawk, but
it throws an exception running with only tomahawk like this,
java.lang.IllegalStateException: Client-id : _idJsp13 is duplicated in the
faces tree. Component : _idJsp0:_idJsp13, path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /dataScroller.jsp][Class:
javax.faces.component.html.HtmlForm,Id: _idJsp0][Class:
javax.faces.component.html.HtmlPanelGroup,Id: body][Class:
javax.faces.component.html.HtmlPanelGrid,Id: _idJsp12][Class:
org.apache.myfaces.custom.datascroller.HtmlDataScroller,Id: scroll_1][Class:
javax.faces.component.html.HtmlCommandLink,Id: scroll_1first][Class:
org.apache.myfaces.component.html.ext.HtmlGraphicImage,Id: _idJsp13]}
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:330)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:342)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:342)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:342)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:342)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:339)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:342)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:287)
at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:159)
at
org.apache.jsp.dataScroller_jsp._jspx_meth_f_005fview_005f0(dataScroller_jsp.java:204)
at
org.apache.jsp.dataScroller_jsp._jspService(dataScroller_jsp.java:148)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
any suggestions?
> ADF Renderer Kit and HtmlCommandLink not rendered
> -------------------------------------------------
>
> Key: TOMAHAWK-160
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-160
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Data Scroller
> Affects Versions: 1.1.2-SNAPSHOT
> Environment: ADF 10.1.3.04, SUN RI 1.1.01
> Reporter: Claudio Tasso
> Priority: Critical
>
> ADF requires the installation of its custom RendererKit (oracle.adf.core),
> but it does not work well with some Tomahawk components.
> For example, let's examine the HtmlDataScrollerRenderer, which creates a
> HtmlCommandLink during the encoding of the HtmlDataScroller component.
> This is the code which creates the HtmlCommandLink:
> HtmlCommandLink link = (HtmlCommandLink) application
> .createComponent(HtmlCommandLink.COMPONENT_TYPE);
> ....
> scroller.getChildren().add(link);
> It seems to be quite standard: the compoent is created and the it's added to
> the HtmlDataScroller componet.
> This code works very well when the faces-config.xml DOES NOT contain the
> following line:
> <default-render-kit-id>oracle.adf.core</default-render-kit-id>
> But when this line is inserted, the HtmlCommandLink does not appear in the
> rendered page which is sent to the browser as HTML.
> The following JSP code contains an example:
> <%@ page language="java" pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>
> </head>
>
> <body>
> <f:view>
> <h:form>
> <t:dataTable id="mytable" rows="1"
> preserveDataModel="false" value="#{TestBean.persons}" var="item">
> <t:column>
> <h:outputText
> value="#{item.name}"></h:outputText>
> </t:column>
> <t:column>
> <h:outputText
> value="#{item.surname}"></h:outputText>
> </t:column>
> </t:dataTable>
> <t:dataScroller for="mytable">
> <f:facet name="next">
> <%-- When the content of this facet
> is rendered, it should be surrounded by a link --%>
> <h:outputText value="Next"/>
> </f:facet>
> </t:dataScroller>
> </h:form>
> </f:view>
> </body>
> </html>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.