5 Replies Latest reply on Jan 5, 2007 2:08 PM by Paulo Dangelo

    Custom JSF tags

    Paulo Dangelo Newbie

      Help .... I´m trying to add custom JSF tags on an Seam application but Jboss keeps ignoring then.

      I´ve created div, ul and li tags (as described on the posts http://www.it-eye.nl/weblog/2006/04/25/creating-a-jsf-div-component/ and http://thepeninsulasedge.com/blog/2006/08/28/jsf-html-div-and-ul-tags/) and added the requested entries to faces-config.xml and to a new \WEB-INF\taglib.tld file as described on the Configuration part of the post.

      The problem is that Jboss Seam seams to be ignoring the new custom tag:

      Example.xhtml:

      <div class="menuButtons"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:hg="http://www.xxxxx.com/jsf">

      <hg:div id="mainnav" styleclass="nav" rendered="#{loggedIn!=null}">

      ....


      Processed page:

      <div class="menuButtons" xmlns="http://www.w3.org/1999/xhtml" xmlns:hg="http://www.griffo.com.br/jsf">

      <hg:div id="mainnav" styleclass="nav" rendered="false">

      ?.


      Not even the xmlns entry is processed. Please, anyone have a clue?