5 Replies Latest reply on Dec 4, 2005 1:40 PM by andrewa

    tomahawk in booking example

    marius.oancea

      I tried to add a tomahawk component into booking example but no good result.

      The only result i get are some javascript errors.

      I followed the hints at http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk (tomahawk.taglib.xml, web.xml and xhtmls contains:
      ... xmlns:t="http://myfaces.apache.org/tomahawk"
      ...
      )

      and Added tomahawk into c:\devapp\jboss-4.0.3\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs

      Any ideea what is wrong ?

        • 1. Re: tomahawk in booking example
          hoetschmann

          A colleague had a problem with tomahawk libs too. The problem was, that he used version 1.0.7 of myfaces. Since he is using 1.1.0 everything works...

          Regards
          hoetschmann

          • 2. Re: tomahawk in booking example
            marius.oancea

            I use the version that commes with JBoss 4.0.3 (1.1.0). I will try also version 1.1.1

            • 3. Re: tomahawk in booking example

              I was having similar problems with the calendar component. So this is for anyone who searches this forum looking for an answer (like I did ;o)

              The key is to add the tomahawk ExtensionsFilter, which injects the appropriate resources (ie. javascript includes) into the page. Note that this has dependencies on some commons jars like commons-fileupload.

              This is from the the myfaces examples war web.xml:

               <filter>
               <filter-name>extensionsFilter</filter-name>
               <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
               </filter>
              
               <!-- Filter Mappings -->
               <filter-mapping>
               <filter-name>extensionsFilter</filter-name>
               <url-pattern>*.jsf</url-pattern>
               </filter-mapping>
               <filter-mapping>
               <filter-name>extensionsFilter</filter-name>
               <url-pattern>/*</url-pattern>
               </filter-mapping>
              


              • 4. Re: tomahawk in booking example
                andyd

                I have the Calendar working with this config, but cannot get jsCookMenu working. Any ideas?

                • 5. Re: tomahawk in booking example

                  this is a known myfaces/facelets issue as detailed in this thread:

                  http://www.mail-archive.com/users@myfaces.apache.org/msg11920.html

                  So youll need the myfaces nightly or trunk and to modify your tomahawk.taglib.xml as per the thread:

                   <tag>
                   <tag-name>jscookMenu</tag-name>
                   <component>
                   <component-type>org.apache.myfaces.JSCookMenu</component-type>
                   <renderer-type>org.apache.myfaces.JSCookMenu</renderer-type>
                   </component>
                   </tag>