7 Replies Latest reply on Mar 24, 2011 10:20 AM by j.v.

    Problem with writing Custom Components

    j.v.

      Hi together,

       

      I'm trying to write a Custom Component for a confirmation-dialog in Richfaces.

      I've created a confirm.xhtml wich has a modal panel.

       

      This confirmation.xhtml is refered in the mytag-taglib.xml:

       

       

      <?xml version="1.0"?>
      <!DOCTYPE facelet-taglib PUBLIC
              "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
              "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
      
      <facelet-taglib>
          <namespace>http://myconfirmdialog.com/richx</namespace>
          <tag>
              <tag-name>confirm</tag-name>
              <source>/view/confirmation.xhtml</source>
          </tag>
      </facelet-taglib>
      

       

      The taglib is refered in the web.xml:

       

       

          <context-param>
              <param-name>facelets.LIBRARIES</param-name>
              <param-value>mytag-taglib.xml</param-value>
          </context-param>
      

       

       

      Everything seems to be OK, but if i try to use this confirmation dialog, I get an empty tag <richx:confirm></richx:confirm> as result.

      I tried to minimize the confirmation.xhtml, so that there is only an outputText on it, but i get the same result.

       

      Can someone help me with this problem?

       

      best regards