Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Migration to JBoss EAP 7: Custom tags with myfaces2.2.12 and tomahawk20-1.1.14 are not processed and just pasted in html source as String

    Posted on

    I am trying to migrate/upgrade legacy application based on Myfaces 1.1 with tomahawk to JBoss EAP 7.

    EAP 7 requires minimum JSF 2 version for which I have installed/configured myfaces2.2.12 to JBoss EAP 7 using Redhat guide

    https://docs.jboss.org/author/display/WFLY10/JSF+Configuration#JSFConfiguration-ConfiguringaJSFapptouseanondefaultJSFimplementation

    And can see that my JBoss EAP 7 has successfully recognized the myfaces and now myfaces is default JSF implementation. This is also evident by fact that out of box tags are rendered fine on my pages.

    My Custom components TLD is like

    
            ]>
    
    
        
        
            UI Faces components.
        
        0.1
        
        CC
        http://com.xxx.faces.components/tld/standard_ui.tld
        
            outputLink
            com.xxx.faces.components.taglib.OutputLinkTag
            tagdependent
            &html_anchor_attributes;
        
    
    

    Java code for OutputLinkTag.class is

    package com.xxx.faces.components.taglib;
    
    public class OutputLinkTag extends org.apache.myfaces.taglib.html.HtmlOutputLinkTag //UIComponentBodyTag
    {
        public String getComponentType()
        {
            return "javax.faces.Output";
        }
    
        public String getRendererType()
        {
            return "com.xxx.faces.components.OutputLink";
        }
    }
    

    In JSP code I am using

    %@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    %@ taglib uri="http://com.xxx.faces.components/tld/standard_ui.tld" prefix="d" %>
    ....
    
        
    
    
    

    In logs I see no exceptions or erros though I got message like

    org.apache.myfaces.shared.renderkit.RendererUtils (default task-3) the created converter is null
    org.apache.myfaces.shared.renderkit.RendererUtils (default task-3) returning an .toString
    org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase (default task-3) renderOutput '

    And the output HTML is like

    ....
    
        
    
    
    

    As browser do not understand how to render these tag, page looks empty but in html source I can see the above code.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat