Discussion:
jscookMenu cmDraw is not defined
Raymund Nickel
2007-04-21 10:46:45 UTC
Permalink
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
Mike Kienenberger
2007-04-24 02:24:02 UTC
Permalink
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).
Post by Raymund Nickel
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".
<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
omidh
2007-04-30 07:45:44 UTC
Permalink
What is to do if these all happans in a portlet???

reagrds Omid
Post by Mike Kienenberger
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).
Post by Raymund Nickel
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".
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.
Mike Kienenberger
2007-04-30 18:07:15 UTC
Permalink
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
What is to do if these all happans in a portlet??? reagrds Omid
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.
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
"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.
Loading...