Hi!

Okay I'm sorry you're right.
It works after undeploying and deploying again....

BUT my jsp is in the following dir:
/web/jsps/common/index.jsp

The jscookmenu is shown except the pics.
The AppServer doesn't find these pics with these paths:

/web/jsps/common/jscookmenu/ThemeOffice/spacer.gif
/web/jsps/common/jscookmenu/ThemeOffice/blank.gif


How can I configure myfaces that it works in this configuration?

Stefan Gesigora 

-----Ursprüngliche Nachricht-----
Von: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 25. August 2005 10:03
An: MyFaces Discussion
Betreff: Re: AW: AW: problem with JSCookMenu

Your question was already answered ;)

you need to add this section to the web.xml file - no matter if you
use MyFaces or the RI:

    <!-- Extensions Filter -->
   <filter>
       <filter-name>extensionsFilter</filter-name>

<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
       <init-param>
           <param-name>uploadMaxFileSize</param-name>
           <param-value>100m</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>
       <init-param>
           <param-name>uploadThresholdSize</param-name>
           <param-value>100k</param-value>
           <description>Set the threshold size - files
                   below this limit are stored in memory, files above
                   this limit are stored on disk.

               Format: 10 - 10 bytes
                       10k - 10 KB
                       10m - 10 MB
                       1g - 1 GB
           </description>
       </init-param>
<!--        <init-param>
           <param-name>uploadRepositoryPath</param-name>
           <param-value>/temp</param-value>
           <description>Set the path where the intermediary files will
be stored.
           </description>
       </init-param>-->
   </filter>

   <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <url-pattern>*.jsf</url-pattern>
   </filter-mapping>
   <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <url-pattern>/faces/*</url-pattern>
   </filter-mapping>

regards,

Martin

On 8/25/05, Stefan Gesigora <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> It seems that the Sun ONE Appserver doesn't find the resources
> JSCookMenu.js, MyFacesHack.js, theme.js, theme.css.
> 
> At the AppServer there's no faces dir and subdirs(the server log is at the 
> end of the mail).
> After creating the dirs and copying the files into the dirs it works.
> 
> QUESTION: Is there another way to use jscookmenu in Sun JSF with MyFaces 
> Extension without this awful workaround???
> 
> Thx
> Stefan Gesigora
> 
> Here's a snip of the server log:
> 
> [25/Aug/2005:09:37:04] WARNING ( 4088): for host 127.0.0.1 trying to GET 
> /web/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/JSCookMenu.js,
>  send-file reports: HTTP4142: can't find 
> C:/Sun/AppServer7/domains/domain1/server2/applications/j2ee-modules/web_1/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/JSCookMenu.js
>  (File not found)
> 
> [25/Aug/2005:09:37:04] WARNING ( 4088): for host 127.0.0.1 trying to GET 
> /web/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/MyFacesHack.js,
>  send-file reports: HTTP4142: can't find 
> C:/Sun/AppServer7/domains/domain1/server2/applications/j2ee-modules/web_1/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/MyFacesHack.js
>  (File not found)
> 
> [25/Aug/2005:09:37:04] WARNING ( 4088): for host 127.0.0.1 trying to GET 
> /web/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/ThemeOffice/theme.js,
>  send-file reports: HTTP4142: can't find 
> C:/Sun/AppServer7/domains/domain1/server2/applications/j2ee-modules/web_1/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/ThemeOffice/theme.js
>  (File not found)
> 
> [25/Aug/2005:09:37:04] WARNING ( 4088): for host 127.0.0.1 trying to GET 
> /web/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/ThemeOffice/theme.css,
>  send-file reports: HTTP4142: can't find 
> C:/Sun/AppServer7/domains/domain1/server2/applications/j2ee-modules/web_1/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11248525/ThemeOffice/theme.css
>  (File not found)
> 
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Helmut Juskewycz [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 24. August 2005 17:49
> An: MyFaces Discussion
> Betreff: Re: AW: AW: problem with JSCookMenu
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hmm i think this is what u need but i not sure:
> add the extension filter to the web.xml
> 
> 
>     <!-- Extensions Filter -->
>     <filter>
>         <filter-name>extensionsFilter</filter-name>
> 
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
>         <init-param>
>             <param-name>uploadMaxFileSize</param-name>
>             <param-value>100m</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>
>         <init-param>
>             <param-name>uploadThresholdSize</param-name>
>             <param-value>100k</param-value>
>             <description>Set the threshold size - files
>                     below this limit are stored in memory, files above
>                     this limit are stored on disk.
> 
>                 Format: 10 - 10 bytes
>                         10k - 10 KB
>                         10m - 10 MB
>                         1g - 1 GB
>             </description>
>         </init-param>
> <!--        <init-param>
>             <param-name>uploadRepositoryPath</param-name>
>             <param-value>/temp</param-value>
>             <description>Set the path where the intermediary files will
> be stored.
>             </description>
>         </init-param>-->
>     </filter>
> 
>     <filter-mapping>
>         <filter-name>extensionsFilter</filter-name>
>         <url-pattern>*.jsf</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>extensionsFilter</filter-name>
>         <url-pattern>/faces/*</url-pattern>
>     </filter-mapping>
> 
> Stefan Gesigora wrote:
> > Thanks Helmut for your description!
> > But I can't take the web.xml of the simple example cause I'm using Sun JSF 
> > with MyFaces Extension!!
> > I've tried to put some elements of the web.xml of the simple example to my 
> > web.xml:
> >
> > org.apache.myfaces.ALLOW_JAVASCRIPT
> > org.apache.myfaces.DETECT_JAVASCRIPT
> > org.apache.myfaces.PRETTY_HTML
> > org.apache.myfaces.AUTO_SCROLL
> >
> > But no jscookmenu were shown (with the nightly build and the modified 
> > web.xml!)
> >
> > Any suggestions?
> >
> > Stefan Gesigora
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Helmut Juskewycz [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 24. August 2005 15:08
> > An: MyFaces Discussion
> > Betreff: Re: AW: problem with JSCookMenu
> >
> > yes that means you didnt install jscookmenu correct.
> >
> > i told you before that you can define it in the head and so on but when
> > you install the jscookmenu correctly then all works fine.
> >
> > Here again how i did it (i hope i make no mistakes)
> >
> > first: look at your web.xml (take the web.xml from the simple example)
> > second: get the nightly build because of the submenu bug.
> >
> > and jscookmenu is ready =)
> >
> > again no declaration in the head, except you want to make your personal
> > themes then you must declar them.
> >
> >
> > @stefan just look at your web.xml and faces-config if all is ok and
> > remove the javascript from the head.
> >
> > @henri thx for help
> >
> > Stefan Gesigora wrote:
> >
> >>>Hi!
> >>>
> >>>After downloading the nightly build my submenus were shown!
> >>>It seems to be an big bug in myfaces 1.0.9!
> >>>
> >>>BUT in my submenus before and after each entry an broken image (x) were 
> >>>shown. How can I disable this attitude?
> >>>
> >>>Greetings
> >>>Stefan Gesigora
> >>>
> >>>-----Ursprüngliche Nachricht-----
> >>>Von: Helmut Juskewycz [mailto:[EMAIL PROTECTED]
> >>>Gesendet: Mittwoch, 24. August 2005 14:06
> >>>An: MyFaces Discussion
> >>>Betreff: Re: problem with JSCookMenu
> >>>
> >>>Henri,
> >>>
> >>>maybe you could help me with my link problem. why my links open a new
> >>>browser? i wrote the problem in the thread "JSCookMenu Problems with
> >>>Themes and with Action".
> >>>
> >>>thx
> >>>
> >>>Delbrouck, Henri-Philippe wrote:
> >>>
> >>>
> >>>>>Your code seems ok.
> >>>>>
> >>>>>In my code, I directly work with array. Perhaps you should try.
> >>>>>
> >>>>>My backing bean is defined like this:
> >>>>>
> >>>>>public class MyMenu{
> >>>>>   private NavigationMenuItem[] navItems;
> >>>>>
> >>>>>   public MyMenu{
> >>>>>           NavigationMenuItem[] subItems1 = new NavigationMenuItem[3];
> >>>>>
> >>>>>           NavigationMenuItem fileMenu = new
> >>>>>NavigationMenuItem(this,"File","",false,true,"action",null,false);
> >>>>>
> >>>>>           subItems1[0] = new
> >>>>>NavigationMenuItem(this,"test1","test1",false,true,"action1",null,false);
> >>>>>           subItems1[1] = new
> >>>>>NavigationMenuItem(this,"test2","test2",false,true,"action2",null,false);
> >>>>>           subItems1[2] = new
> >>>>>NavigationMenuItem(this,"test3","test3",false,true,"action3",null,false);
> >>>>>
> >>>>>
> >>>>>           fileMenu.setNavigationMenuItems(subItems1);
> >>>>>
> >>>>>   }
> >>>>>
> >>>>>   public NavigationMenuItem[] getNavItems(){
> >>>>>           return navItems;
> >>>>>   }
> >>>>>
> >>>>>   public void setNavItems(NavigationMenuItem[] navItems){
> >>>>>           this.navItems = navItems;
> >>>>>   }
> >>>>>}
> >>>>>
> >>>>>Hope this help
> >>>>>
> >>>>>Henri-Philippe
> >>>>>
> >>>>>-----Original Message-----
> >>>>>From: Stefan Gesigora [mailto:[EMAIL PROTECTED]
> >>>>>Sent: mercredi 24 août 2005 13:07
> >>>>>To: MyFaces Discussion
> >>>>>Subject: AW: problem with JSCookMenu
> >>>>>
> >>>>>
> >>>>>
> >>>>>Hi!
> >>>>>
> >>>>>Thanks for the hints!!
> >>>>>
> >>>>>I tried like Helmut told me. Now I can see the first level of the menu 
> >>>>>but
> >>>>>the submenus weren't shown...
> >>>>>Here's my code.
> >>>>>Any ideas?
> >>>>>
> >>>>>Thanks Stefan Gesigora
> >>>>>
> >>>>>public List getMenu() {
> >>>>>
> >>>>>List menu = new ArrayList();
> >>>>>NavigationMenuItem incident = new NavigationMenuItem("Incident", 
> >>>>>"action1",
> >>>>>null,false);
> >>>>>NavigationMenuItem phases = new NavigationMenuItem("Phases", "action2",
> >>>>>null,false);
> >>>>>NavigationMenuItem factories = new NavigationMenuItem("Factories ",
> >>>>>"action3", null,false);
> >>>>>
> >>>>>List testSub = new ArrayList();
> >>>>>   testSub.add(new NavigationMenuItem("Development",
> >>>>>                                       "action10", null, false));
> >>>>>   testSub.add(new NavigationMenuItem("Consultancy",
> >>>>>                                       "action11", null, false));
> >>>>>   testSub.add(new NavigationMenuItem("Services",
> >>>>>                                       "action12", null, false));
> >>>>>
> >>>>>NavigationMenuItem[] testSubArray =
> >>>>>(NavigationMenuItem[])testSub.toArray(new NavigationMenuItem[0]);
> >>>>>
> >>>>>menu.add(incident);
> >>>>>menu.add(phases);
> >>>>>menu.add(factories);
> >>>>>
> >>>>>((NavigationMenuItem)menu.get(1)).setNavigationMenuItems(testSubArray);
> >>>>>
> >>>>>return menu;
> >>>>>}
> >>>>>
> >>>>><x:jscookMenu layout="hbr" theme="ThemeOffice">
> >>>>>   <x:navigationMenuItems value="#{MenuBean.menu}" />
> >>>>></x:jscookMenu>
> >>>>>
> >>>>>
> >>>>>-----Ursprüngliche Nachricht-----
> >>>>>Von: Helmut Juskewycz [mailto:[EMAIL PROTECTED]
> >>>>>Gesendet: Mittwoch, 24. August 2005 12:31
> >>>>>An: MyFaces Discussion
> >>>>>Betreff: Re: problem with JSCookMenu
> >>>>>
> >>>>>hi,
> >>>>>
> >>>>>i only see jscookmenu when i declare the script in the head otherwise i
> >>>>>see nothing. also on http://myfaces.apache.org/tomahawk/jscookmenu.html
> >>>>>it says that the declaration should stand in the head.
> >>>>>
> >>>>>i now use the t:tag but i see no difference.
> >>>>>
> >>>>>in my web.xml there are no extension filter, so it should be the default
> >>>>>config?
> >>>>>
> >>>>>and by the way thanks for help =) maybe u could look also at my problem
> >>>>>with the link (i wrote today and yesterday in the list).
> >>>>>
> >>>>>Delbrouck, Henri-Philippe wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>Hello,
> >>>>>>>
> >>>>>>>If you use the JSCookMenu tag, and correctly configure the extension
> >>>>>
> >>>>>filter
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>(default config) in the web.xml, you don't need to define any 
> >>>>>>>Javascript
> >>>>>>>In your page. The corresponding file are automatically uploaded on the
> >>>>>>>client and referenced in he page.
> >>>>>>>As there is a bug in the 1.0.9 version, you have to download the latest
> >>>>>>>nightly build where the bug is resolved.
> >>>>>>>
> >>>>>>>Have a look at the mail from Bruno Aranda (09 jun 2005). There is an
> >>>>>
> >>>>>exemple
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>how to use the menu in a dynamic way.
> >>>>>>>
> >>>>>>>If you download the latest nightly build, the extension are now in the
> >>>>>>>tomahaw.jar. You should then use the prefix t.
> >>>>>>>
> >>>>>>>Hope this help.
> >>>>>>>
> >>>>>>>If still problem, please ask.
> >>>>>>>
> >>>>>>>Henri-Philippe Delbrouck
> >>>>>>>
> >>>>>>>-----Original Message-----
> >>>>>>>From: Helmut Juskewycz [mailto:[EMAIL PROTECTED]
> >>>>>>>Sent: mercredi 24 août 2005 11:09
> >>>>>>>To: MyFaces Discussion
> >>>>>>>Subject: Re: problem with JSCookMenu
> >>>>>>>
> >>>>>>>
> >>>>>>>hi,
> >>>>>>>
> >>>>>>>u must add the following to the header:
> >>>>>>>
> >>>>>>><!-- JSCook Menu -->
> >>>>>>><script language="JavaScript" src="jscookmenu/JSCookMenu.js"
> >>>>>>>type="text/javascript"></script>
> >>>>>>><script language="JavaScript"
> >>>>>>>src="jscookmenu/ThemePanel/theme.js"></script>
> >>>>>>><link rel="stylesheet" href="jscookmenu/ThemePanel/theme.css"
> >>>>>>>type="text/css">
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>optional: Get the latest Nightly Build because there were some bugs 
> >>>>>>>with
> >>>>>>>submenus.
> >>>>>>>
> >>>>>>>then just add the jscookmenu and the items. u can add the items like in
> >>>>>>>the example (you can find it in the myfaces examples/inc/pageHeader, 
> >>>>>>>and
> >>>>>>>correct the theme u would like to use - same must defined in the 
> >>>>>>>header):
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>  <x:jscookMenu layout="hbr" theme="ThemeOffice" >
> >>>>>>>      <%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack,
> >>>>>>>ThemeOffice, ThemePanel
> >>>>>>>           Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl,
> >>>>>>>vur, vul
> >>>>>>>           respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu
> >>>>>>>      */%>
> >>>>>>>      <x:navigationMenuItem id="nav_1"
> >>>>>>>.
> >>>>>>>.
> >>>>>>>.
> >>>>>>>.
> >>>>>>>.
> >>>>>>>.
> >>>>>>>      </x:navigationMenuItem>
> >>>>>>>      <x:navigationMenuItem id="nav_3"
> >>>>>>>itemLabel="#{example_messages['nav_Documentation']}" >
> >>>>>>>          <x:navigationMenuItem id="nav_3_1"
> >>>>>>>itemLabel="#{example_messages['nav_Features']}" action="go_features"
> >>>>>>>icon="images/myfaces.gif" />
> >>>>>>>      </x:navigationMenuItem>
> >>>>>>>      <x:navigationMenuItem id="nav_4"
> >>>>>>>itemLabel="#{example_messages['nav_Options']}" action="go_options" />
> >>>>>>>      <x:navigationMenuItems id="nav_5"
> >>>>>>>value="#{navigationMenu.infoItems}" />
> >>>>>>>
> >>>>>>>  </x:jscookMenu>
> >>>>>>>
> >>>>>>>or the other way:
> >>>>>>>
> >>>>>>> <x:jscookMenu layout="vbr" theme="ThemePanel">
> >>>>>>>         <x:navigationMenuItems value="#{MenuBean.enu}" />
> >>>>>>> </x:jscookMenu>
> >>>>>>>and the Bean returns a List or Array of Navigation Items
> >>>>>>>
> >>>>>>>public List<NavigationMenuItem> getMenu() {
> >>>>>>>List<NavigationMenuItem> menu = new ArrayList<NavigationMenuItem>();
> >>>>>>>menu.add(new NavigationMenuItem("bla", "action", null,false));
> >>>>>>>return menu;
> >>>>>>>}
> >>>>>>>
> >>>>>>>Stefan Gesigora wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>>Hello folks!
> >>>>>>>>>
> >>>>>>>>>I've got some problems using JSF RI + myfaces extensions with the
> >>>>>>>>>component JSCookMenu. I've tried several settings but it didn't work!
> >>>>>>>>>Could anyone give me a description how to implement the JSCookMenu in
> >>>>>>>>>the right way?
> >>>>>>>>>
> >>>>>>>>>Thanks a lot
> >>>>>>>>>
> >>>>>>>>>Stefan Gesigora
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
> Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
> 
> iD8DBQFDDJcBkg7OsoSBexYRArPyAJ9FF89Ag4PrkTp8gCLxBXq1Co0oAgCeM/St
> PKhl8fclQpSijDFjmT6iXwI=
> =+w/3
> -----END PGP SIGNATURE-----
> 


-- 

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

Reply via email to