title: Grails: Invoking one taglib from within another with own namespaces
body: <p>Using some tagLibs with own namespace </p>
  
  <p>Something like</p>
  
  <pre><code>class FirstTagLib
      static namespace =  "myns"
      ...
      def first = {  attrs, body -&gt;
      ...
      }
  </code></pre>
  
  <p>/</p>
  
  <pre><code>class SecondTagLib {
  
      static namespace = "myns"
  
  
      def second = { attrs, body -&gt;  
  
          out &lt;&lt; myns.first(..)
      }
  </code></pre>
  
  <p>How can I invoke this taglib in another taglib? Normally the g. would work for taglibs which do not have an own namespace.</p>
  
  <p>The <a href="http://grails.org/doc/latest/guide/theWebLayer.html#namespaces" rel="nofollow">documentation states</a> that: </p>
  
  <blockquote>
    <p>Tags within namespaces can be invoked as methods using the namespace
    as a prefix to the method call</p>
  </blockquote>
  
  <p>In my case this ends up in error: 
  <em>No signature of method: org.codehaus.groovy.grails.web.pages.GroovyPage.first() is applicable for argument types: (java.lang.String, java.lang.String) values: [., strong]...</em></p>