You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Raymund Nickel <ra...@raymund.exxs.net> on 2007/04/21 12:46:45 UTC

jscookMenu cmDraw is not defined

Hi,
i have a problem with tomahawks jscookMenu. When i open the page, where
a jscookMenu should be shown, it doesnt appear and im getting the
Javascript error message: "cmDraw is not defined".

my filter in the web.xml looks like:

<filter>
	<filter-name>MyFacesExtensionsFilter</filter-name>
	
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value>
            <description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB
            </description>
        </init-param>
</filter>
<filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
...
<servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>2</load-on-startup>
</servlet>

<servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
</servlet-mapping>


I also created the directory "/faces/myFacesExtensionResource/", which
maybe is not necessary. I?m using tomahawk-1.1.5.jar.
I hope someone can help me.

thx a lot,
cya

Re: jscookMenu cmDraw is not defined

Posted by Mike Kienenberger <mk...@gmail.com>.
Normally, I'd have to say "I don't know" since I have no experience
with portlets.

However, I came across the article recently, and it gives directions
on how you can replace the MyFaces filter.

http://www.ninthavenue.com.au/blog/myfaces_filter

On 4/30/07, omidh <om...@gmx.de> wrote:
>  What is to do if these all happans in a portlet??? reagrds Omid
>
> Mike Kienenberger wrote:
>  Your web.xml file looks good. However, you don't want to create the
> directory "/faces/myFacesExtensionResource/" This pattern
> will automatically be used to fetch resources out of the tomahawk jar file.
> I don't know why you are getting an error. Some things that might cause it:
> 1) You're using portlets 2) You're using facelets and didn't define a
> tomahawk namespace (check the generated html and see if the tags are being
> processed). On 4/21/07, Raymund Nickel wrote: > Hi, > i have a problem with
> tomahawks jscookMenu. When i open the page, where > a jscookMenu should be
> shown, it doesnt appear and im getting the > Javascript error message:
> "cmDraw is not defined". > > my filter in the web.xml looks like: > > >
> MyFacesExtensionsFilter > >
> org.apache.myfaces.webapp.filter.ExtensionsFilter > >
> maxFileSize > 20m > Set the size limit for uploaded files. > Format: 10 - 10
> bytes > 10k - 10 KB > 10m - 10 MB > 1g - 1 GB > > > > >
> MyFacesExtensionsFilter > Faces Servlet > > > MyFacesExtensionsFilter >
> /faces/myFacesExtensionResource/* > > ... > > Faces Servlet
> > javax.faces.webapp.FacesServlet > 2 > > > > Faces Servlet > *.jsf > > > >
> I also created the directory
> "/faces/myFacesExtensionResource/", which > maybe is not
> necessary. I?m using tomahawk-1.1.5.jar. > I hope someone can help me. > >
> thx a lot, > cya >
> ________________________________
>  View this message in context: Re: jscookMenu cmDraw is not defined
>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>

Re: jscookMenu cmDraw is not defined

Posted by omidh <om...@gmx.de>.
What is to do if these all happans in a portlet???

reagrds Omid


Mike Kienenberger wrote:
> 
> Your web.xml file looks good.  However, you don't want to create the
> directory "/faces/myFacesExtensionResource/"   This pattern will
> automatically be used to fetch resources out of the tomahawk jar file.
> 
> I don't know why you are getting an error.
> 
> Some things that might cause it:  1) You're using portlets   2) You're
> using facelets and didn't define a tomahawk namespace (check the
> generated html and see if the tags are being processed).
> 
> On 4/21/07, Raymund Nickel  wrote:
>> Hi,
>> i have a problem with tomahawks jscookMenu. When i open the page, where
>> a jscookMenu should be shown, it doesnt appear and im getting the
>> Javascript error message: "cmDraw is not defined".
>>
>> my filter in the web.xml looks like:
>>
>> 
>>         MyFacesExtensionsFilter
>>
>> org.apache.myfaces.webapp.filter.ExtensionsFilter
>>         
>>             maxFileSize
>>             20m
>>             Set the size limit for uploaded files.
>>                 Format: 10 - 10 bytes
>>                         10k - 10 KB
>>                         10m - 10 MB
>>                         1g - 1 GB
>>             
>>         
>> 
>> 
>>         MyFacesExtensionsFilter
>>         Faces Servlet
>> 
>> 
>>         MyFacesExtensionsFilter
>>         /faces/myFacesExtensionResource/*
>> 
>> ...
>> 
>>         Faces Servlet
>>         javax.faces.webapp.FacesServlet
>>         2
>> 
>>
>> 
>>         Faces Servlet
>>         *.jsf
>> 
>>
>>
>> I also created the directory "/faces/myFacesExtensionResource/", which
>> maybe is not necessary. I?m using tomahawk-1.1.5.jar.
>> I hope someone can help me.
>>
>> thx a lot,
>> cya
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/jscookMenu-cmDraw-is-not-defined-tf3622632.html#a10249593
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: jscookMenu cmDraw is not defined

Posted by omidh <om...@gmx.de>.
What is to do if these all happans in a portlet???

reagrds Omid


Mike Kienenberger wrote:
> 
> Your web.xml file looks good.  However, you don't want to create the
> directory "/faces/myFacesExtensionResource/"   This pattern will
> automatically be used to fetch resources out of the tomahawk jar file.
> 
> I don't know why you are getting an error.
> 
> Some things that might cause it:  1) You're using portlets   2) You're
> using facelets and didn't define a tomahawk namespace (check the
> generated html and see if the tags are being processed).
> 
> On 4/21/07, Raymund Nickel <ra...@raymund.exxs.net> wrote:
>> Hi,
>> i have a problem with tomahawks jscookMenu. When i open the page, where
>> a jscookMenu should be shown, it doesnt appear and im getting the
>> Javascript error message: "cmDraw is not defined".
>>
>> my filter in the web.xml looks like:
>>
>> <filter>
>>         <filter-name>MyFacesExtensionsFilter</filter-name>
>>
>> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
>>         <init-param>
>>             <param-name>maxFileSize</param-name>
>>             <param-value>20m</param-value>
>>             <description>Set the size limit for uploaded files.
>>                 Format: 10 - 10 bytes
>>                         10k - 10 KB
>>                         10m - 10 MB
>>                         1g - 1 GB
>>             </description>
>>         </init-param>
>> </filter>
>> <filter-mapping>
>>         <filter-name>MyFacesExtensionsFilter</filter-name>
>>         <servlet-name>Faces Servlet</servlet-name>
>> </filter-mapping>
>> <filter-mapping>
>>         <filter-name>MyFacesExtensionsFilter</filter-name>
>>         <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>> </filter-mapping>
>> ...
>> <servlet>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>>         <load-on-startup>2</load-on-startup>
>> </servlet>
>>
>> <servlet-mapping>
>>         <servlet-name>Faces Servlet</servlet-name>
>>         <url-pattern>*.jsf</url-pattern>
>> </servlet-mapping>
>>
>>
>> I also created the directory "/faces/myFacesExtensionResource/", which
>> maybe is not necessary. I?m using tomahawk-1.1.5.jar.
>> I hope someone can help me.
>>
>> thx a lot,
>> cya
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/jscookMenu-cmDraw-is-not-defined-tf3622632.html#a10249593
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: jscookMenu cmDraw is not defined

Posted by Mike Kienenberger <mk...@gmail.com>.
Your web.xml file looks good.  However, you don't want to create the
directory "/faces/myFacesExtensionResource/"   This pattern will
automatically be used to fetch resources out of the tomahawk jar file.

I don't know why you are getting an error.

Some things that might cause it:  1) You're using portlets   2) You're
using facelets and didn't define a tomahawk namespace (check the
generated html and see if the tags are being processed).

On 4/21/07, Raymund Nickel <ra...@raymund.exxs.net> wrote:
> Hi,
> i have a problem with tomahawks jscookMenu. When i open the page, where
> a jscookMenu should be shown, it doesnt appear and im getting the
> Javascript error message: "cmDraw is not defined".
>
> my filter in the web.xml looks like:
>
> <filter>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
>         <init-param>
>             <param-name>maxFileSize</param-name>
>             <param-value>20m</param-value>
>             <description>Set the size limit for uploaded files.
>                 Format: 10 - 10 bytes
>                         10k - 10 KB
>                         10m - 10 MB
>                         1g - 1 GB
>             </description>
>         </init-param>
> </filter>
> <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <servlet-name>Faces Servlet</servlet-name>
> </filter-mapping>
> <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
> </filter-mapping>
> ...
> <servlet>
>         <servlet-name>Faces Servlet</servlet-name>
>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>         <load-on-startup>2</load-on-startup>
> </servlet>
>
> <servlet-mapping>
>         <servlet-name>Faces Servlet</servlet-name>
>         <url-pattern>*.jsf</url-pattern>
> </servlet-mapping>
>
>
> I also created the directory "/faces/myFacesExtensionResource/", which
> maybe is not necessary. I?m using tomahawk-1.1.5.jar.
> I hope someone can help me.
>
> thx a lot,
> cya
>