-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again,

i dont know why i nobody answered my questions, i do not believe that
nobody knows the answers =)

the first problem is only not beautiful but it works, the second i
really need a solution. i dont know what i am doing wrong. here again:

2 JSCookMenus
one folder jscookmenu/ThemeXXX (here i overwrite the css)

HEAD:
====
<!-- 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">
  <script language="JavaScript"
src="jscookmenu/ThemeMiniBlack/theme.js"></script>
  <link rel="stylesheet" href="jscookmenu/ThemeMiniBlack/theme.css"
type="text/css">

JSP:
===
<x:jscookMenu layout="hbr" theme="ThemeMiniBlack"
rendered="#{MenuBean.hasMenu}">
                        <x:navigationMenuItems value="#{MenuBean.menu}">
</x:jscookMenu>

BEAN:
====
List<NavigationMenuItem> menu = new ArrayList<NavigationMenuItem>();
menu.add(new
NavigationMenuItem(bundle.getString(WebApplication.BUNDLE_HOME),
WebApplication.ACTION_HOME, null,false));
.
.
.
menu.add(new
NavigationMenuItem(bundle.getString(WebApplication.BUNDLE_REFERENCESS),
WebApplication.ACTION_REFERENCES, null,false));

return menu;

FACES_CONFIG
============
        <navigation-rule>
                <from-view-id>*</from-view-id>
                <navigation-case>
                        <from-outcome>go_home</from-outcome>
                        <to-view-id>/home.jsp</to-view-id>
                </navigation-case>
        </navigation-rule>
.
.
.


The Menu works fine and also the submenus after moving to the latest
Night Build, but when i klick on the link a new window opens with the
url: MYAPP/header__id2_menu:go_home

I only want a link to another .jsp in the same window, can somebody help?


Helmut Juskewycz wrote:
> Hi,
> 
> I have 2 problems with the jscookmenu component.
> 
> 
> 1:
> my header with standard layout, works fine
> 
> <!-- JSCook Menu -->
>   <script language="JavaScript" src="jscookmenu/JSCookMenu.js"
> type="text/javascript"></script>
>   <script language="JavaScript"
> src="jscookmenu/ThemeOffice/theme.js"></script>
>   <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css"
> type="text/css">
>   <script language="JavaScript"
> src="jscookmenu/ThemeMiniBlack/theme.js"></script>
>   <link rel="stylesheet" href="jscookmenu/ThemeMiniBlack/theme.css"
> type="text/css">
> 
> jsp
> 
> <x:jscookMenu layout="hbr" theme="ThemeMiniBlack"
> rendered="#{MenuBean.hasMenu}">
>                       <x:navigationMenuItems value="#{MenuBean.menu}" />
>               </x:jscookMenu>
> 
> works also fine, but
> 
> I am using 2 jscookmenus and i want for each a unique theme.
> so i created 2 themes (lets say theme1 theme2) and changed the files to
> <!-- JSCook Menu -->
>   <script language="JavaScript" src="jscookmenu/JSCookMenu.js"
> type="text/javascript"></script>
>   <script language="JavaScript" src="jscookmenu/theme/theme.js"></script>
>   <link rel="stylesheet" href="jscookmenu/theme1/theme.css" type="text/css">
>   <script language="JavaScript" src="jscookmenu/theme2/theme.js"></script>
>   <link rel="stylesheet" href="jscookmenu/theme2/theme.css" type="text/css">
> 
> <x:jscookMenu layout="hbr" theme="theme1" rendered="#{MenuBean.hasMenu}">
>                       <x:navigationMenuItems value="#{MenuBean.menu}" />
>               </x:jscookMenu>
> 
> i have a jscookmenu folder in webcontent and there are my themes stored.
> when i put in the jscookmenu folder the mini black and i change this
> theme all works fine? someone any idea?
> 
> 2.
> 
> i get the nav items from a bean:
> 
> menu.add(new NavigationMenuItem(bundle.getString("nav_home"), "go_home",
> null,false));
> 
> and there i create the menu dynamic, but i have problems with the links.
>  i thought only the action "go_home" counts but when i click on a menu
> item a new browser window opens with the following url:
> MYPATH/header__id2_menu:go_home. i want a link to another jsp file =(
> and the action "go_blabla" are all in the faces config.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE

iD8DBQFDDBwokg7OsoSBexYRArMZAKCSMlSs4TSPcIwxg+KbiC3avIEEKgCgiio6
uin4Uo3vvBUWP9AZom4zTTU=
=qydS
-----END PGP SIGNATURE-----
begin:vcard
fn:Helmut Juskewycz
n:Juskewycz;Helmut
adr;quoted-printable:;;Minnes=C3=A4ngerplatz 3/4/9;Linz;Upper Austria;4020;Austria
email;internet:[EMAIL PROTECTED]
tel;work:+43 (0)7582 62120-14
tel;cell:+43 (0)650 609 13 73
x-mozilla-html:TRUE
version:2.1
end:vcard

Reply via email to