You will need to include the ExtensionsFilter in your web.xml.

Best would be to copy a web.xml from a MyFaces example app and start
from this one!

regards,

Martin

On 9/21/05, Marco Barbi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been testing MyFaces (1.1.0) and Facelets (0.8) and I find problems
> with JsCookMenu.
> In detail, following the thread suggestions, I get the following html
> code rendered:
>
> ...
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
> <title>Test Application</title>
> <style type="text/css" xml:space="preserve"></style>
> <script
> src="/test/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11266487/JSCookMenu.js"
> type="text/javascript"></script>
> <script
> src="/test/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11266487/MyFacesHack.js"
> type="text/javascript"></script>
> <script
> src="/test/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11266487/ThemeOffice/theme.js"
> type="text/javascript"></script>
> <link rel="stylesheet"
> href="/test/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11266487/ThemeOffice/theme.css"
> type="text/css"/>
> </head>
> <body>
> <script type="text/javascript"><!--
> var topMenu_menu =
> [[null, 'File', null, 'linkDummyForm', null],
> [null, 'Help', null, 'linkDummyForm', null]];
> --></script>
> <div id="topMenu_menu"></div>
> <script type="text/javascript"><!--
>         cmDraw ('topMenu_menu', topMenu_menu, 'hbr', cmThemeOffice, 
> 'ThemeOffice');
> --></script>
>
> </body>
>
> ...
>
> Unluckly, the URL locations generated for the script tags don't match
> any existing resource and, threfore, javascript errors rises.
>
> Any suggestion?
> Many thanks.
> Marco
>
> Deepinder Singh wrote:
> > Greg,
> >   Now I can see the comp as well. I did the same mistake with the
> > filter-mapping and the servlet mapping.
> > THANKS for the details.
> > -deepinder
> >
> >
> > -----Original Message-----
> > From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent:   Mon 9/19/2005 1:17 PM
> > To:     [email protected]
> > Cc:
> > Subject:        RE: jscookmenu problem
> > Hi,
> >
> > Alright I'm gonna try to go through the steps I followed (to make it
> > from scratch, not from a weird situation like I was at the other day).
> >
> > 1) Install MyFaces the usual way
> > 2) In your application, make sure your web.xml contains extra properties
> > for extensions filters like the following:
> >
> >   <filter>
> >     <filter-name>extensionsFilter</filter-name>
> >
> > <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</f
> > ilter-class>
> >     <init-param>
> >       <param-name>uploadMaxFileSize</param-name>
> >       <param-value>10m</param-value>
> >     </init-param>
> >     <init-param>
> >       <param-name>uploadThresholdSize</param-name>
> >       <param-value>100k</param-value>
> >     </init-param>
> >   </filter>
> >   <filter-mapping>
> >     <filter-name>extensionsFilter</filter-name>
> >     <url-pattern>*.faces</url-pattern>
> >   </filter-mapping>
> >
> > Note here that the url-pattern *.faces has to correspond to the
> > url-pattern of your servlet mapping, as in:
> >
> >   <servlet-mapping>
> >     <servlet-name>Faces Servlet</servlet-name>
> >     <url-pattern>*.faces</url-pattern>
> >   </servlet-mapping>
> >
> > This was my problem, the examples were using *.jsf but I was using
> > *.faces for my extensions and I had just done copy/paste without paying
> > attention to this...
> >
> > 3) In the page where you want to use the jsCookMenu, you should now be
> > able to use the following:
> >
> > <t:jscookMenu layout="hbr" theme="ThemeOffice">
> >         <t:navigationMenuItem id="users"
> > itemLabel="#{bundle['menu.users']}" action="#{bean.test}" />
> > </t:jscookMenu>
> >
> > Note: Using this technique you are using built-in themes within the
> > component. Hence you do not need to include any css or js files that
> > belong to the jsCookMenu component specifically in your page. These will
> > be added at run time for you.
> >
> > Check the documentation for the layouts and themes available. As far as
> > I'm concerned this worked for me. Let us know if you're still stuck, and
> > let us know where you are stuck exactly if you're still experiencing
> > problems.
> >
> > Hope this helps,
> >
> > Greg
> >
> >
> > -----Original Message-----
> > From: Deepinder Singh [mailto:[EMAIL PROTECTED]
> > Sent: Monday, September 19, 2005 2:54 PM
> > To: MyFaces Discussion
> > Subject: RE: jscookmenu problem
> >
> >  Greg,
> >     Can you now click on the links of JSCookMenu. If so can you please
> > let us know what you changed or what was missing earlier.
> > Thanks,
> > deepinder
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 14, 2005 12:05 PM
> > To: [email protected]
> > Subject: RE: jscookmenu problem
> >
> > 1.
> > I'm looking into that too and currently trying to figure out why, unless
> > I include the js and css files in my page, it does not work. One way I
> > was able to see it (but not click on any links...) was to use TheOffice
> > for example, and in my page that uses the <t:jscookmenu>, add the
> > following:
> >
> > <script type="text/javascript" src="jscookmenu/JSCookMenu.js"></script>
> > <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css"
> > type="text/css" />
> > <script type="text/javascript"
> > src="jscookmenu/ThemeOffice/theme.js"></script>
> >
> > In the <head> section. Of course you'll need the files in there... I
> > found them in
> > <myFaces-src>src\components\org\apache\myfaces\custom\navmenu\resource
> >
> > But that's not the way it is supposed to work I believe...
> >
> > 2.
> > Haven't tried this one yet.
> >
> > 3.
> > I was able to get that one running fine. Maybe you can tell us how
> > you're trying to implement this?
> >
> > Regards,
> >
> > Greg
> >
> > -----Original Message-----
> > From: Deepinder Singh [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 14, 2005 2:58 PM
> > To: MyFaces Discussion
> > Subject: RE: jscookmenu problem
> >
> >  I am still learning how to use these comps. Some of the problems I am
> > seeing are:- 1. Unbale to see the JSCookMenu on my page.
> > 2. The table option is always visibile with the HTML Editor.
> > 3. The scroller works fine, however I see crashes when I integrate with
> > the sorter.
> >
> > I am using 1.0.9 version. Is anyone else having these problems?
> > Thanks,
> > deepinder
> >
> >
> >
> > _______________
> > Siebel
> > IT'S ALL ABOUT THE CUSTOMER
> > Visit www.siebel.com
> >
> > This e-mail message is for the sole use of the intended recipient(s) and
> > contains confidential and/or privileged information belonging to Siebel
> > Systems, Inc. or its customers or partners. Any unauthorized review,
> > use, copying, disclosure or distribution of this message is strictly
> > prohibited. If you are not an intended recipient of this message, please
> > contact the sender by reply e-mail and destroy all soft and hard copies
> > of the message and any attachments. Thank you for your cooperation.
> >
> >
> >
>
>


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German

Reply via email to