You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Claudio Tasso (JIRA)" <de...@myfaces.apache.org> on 2006/02/27 22:38:53 UTC
[jira] Created: (TOMAHAWK-160) ADF Renderer Kit and HtmlCommandLink
not rendered
ADF Renderer Kit and HtmlCommandLink not rendered
-------------------------------------------------
Key: TOMAHAWK-160
URL: http://issues.apache.org/jira/browse/TOMAHAWK-160
Project: MyFaces Tomahawk
Type: Bug
Components: Data Scroller
Versions: 1.1.2-SNAPSHOT
Environment: ADF 10.1.3.04, SUN RI 1.1.01
Reporter: Claudio Tasso
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.
-
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
[jira] Commented: (TOMAHAWK-160) ADF Renderer Kit and
HtmlCommandLink not rendered
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ 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.
[jira] Updated: (TOMAHAWK-160) ADF Renderer Kit and HtmlCommandLink
not rendered
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe updated TOMAHAWK-160:
------------------------------------
Status: Patch Available (was: Open)
> 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
> Attachments: patch1.patch
>
>
> 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.
[jira] Commented: (TOMAHAWK-160) ADF Renderer Kit and
HtmlCommandLink not rendered
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507627 ]
Leonardo Uribe commented on TOMAHAWK-160:
-----------------------------------------
Here is a patch to correct this issue
When you use dataScroller with Trinidad, you cannot press the facet buttons
that navigate through the component, because it render the link and not include the children
properly.
the solution is simple. It's just replace from this:
protected void renderFacet(FacesContext facesContext, HtmlDataScroller scroller,
UIComponent facetComp, String facetName) throws IOException
{
String onclick = scroller.getOnclick();
String ondblclick = scroller.getOndblclick();
HtmlCommandLink link = getLink(facesContext, scroller, facetName);
if(onclick != null){
link.setOnclick(onclick);
}
if(ondblclick != null){
link.setOndblclick(ondblclick);
}
link.encodeBegin(facesContext);
facetComp.encodeBegin(facesContext);
if (facetComp.getRendersChildren())
facetComp.encodeChildren(facesContext);
facetComp.encodeEnd(facesContext);
link.encodeEnd(facesContext);
}
to this:
protected void renderFacet(FacesContext facesContext, HtmlDataScroller scroller,
UIComponent facetComp, String facetName) throws IOException
{
String onclick = scroller.getOnclick();
String ondblclick = scroller.getOndblclick();
HtmlCommandLink link = getLink(facesContext, scroller, facetName);
if(onclick != null){
link.setOnclick(onclick);
}
if(ondblclick != null){
link.setOndblclick(ondblclick);
}
link.getChildren().add(facetComp);
link.encodeBegin(facesContext);
if (link.getRendersChildren())
link.encodeChildren(facesContext);
link.encodeEnd(facesContext);
}
the facet component is renderer inside the link component, when you use trinidad and tomahawk.
> 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
> Attachments: patch1.patch
>
>
> 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.
[jira] Updated: (TOMAHAWK-160) ADF Renderer Kit and HtmlCommandLink
not rendered
Posted by "Martin Haimberger (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Haimberger updated TOMAHAWK-160:
---------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
see issue 117
> 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
> Attachments: patch1.patch
>
>
> 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.
[jira] Commented: (TOMAHAWK-160) ADF Renderer Kit and
HtmlCommandLink not rendered
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508355 ]
Leonardo Uribe commented on TOMAHAWK-160:
-----------------------------------------
Looking more about this subject I have found a correction that works well
for both environments (with and without trinidad)
But the class that needs to be corrected is in trinidad
org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlCommandLinkRenderer.java
This class delegate to another renderer that belongs to trinidad the layout, and do all encoding
in the method encodeEnd:
@SuppressWarnings("unchecked")
@Override
public void encodeEnd(FacesContext context,
UIComponent component) throws IOException
{
// The tr:commandLink is not a rendersChildren component,
// but h:commandLink is. Hence, the difference in behavior
Renderer renderer = createRenderer(component);
renderer.encodeBegin(context, component);
for(UIComponent child : (List<UIComponent>)component.getChildren())
{
RenderUtils.encodeRecursive(context, child);
}
renderer.encodeEnd(context, component);
}
The solution is add something like this
@SuppressWarnings("unchecked")
@Override
public void encodeBegin(FacesContext context,
UIComponent component) throws IOException
{
super.encodeBegin(context,component);
Renderer renderer = createRenderer(component);
renderer.encodeBegin(context, component);
}
and comment the call of encodeBegin in encode end
> 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.
[jira] Commented: (TOMAHAWK-160) ADF Renderer Kit and
HtmlCommandLink not rendered
Posted by "Martin Haimberger (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566539#action_12566539 ]
Martin Haimberger commented on TOMAHAWK-160:
--------------------------------------------
Hi,
i will close this issue, because a patch (see issue 117) is already commited and this is working again.
Regards,
Martin Haimberger
> 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
> Attachments: patch1.patch
>
>
> 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.