You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Haesler, Paul" <Pa...@deh.gov.au> on 2006/02/03 05:00:22 UTC
JSCookMenu not rendering on first entry to JSF [SEC=UNCLASSIFIED]
Hi all,
I have a JSCookMenu providing a common navigation menu to all
pages in an application, declared statically (as in the example
code) in a header.inc that is included in all JSP pages.
Now, I first enter the application via a non-JSF index.jsp that
redirects to the first JSF page. When the application arrives
at a JSF page from a non-JSF page via redirection (nonfaces->faces),
the JSCookMenu is not rendered. If I enter a JSF page from another
JSF page via a navigation rule (faces->faces), the JSCookMenu is
rendered.
Looking at the output html, the problem is obvious. In the
nonfaces->faces (not working) case the html looks like this:
<html>
<head>
<meta.../>
<title>...</title>
<link rel="stylesheet" ..../>
</head>
<body>
....
In the faces->faces (working) case, the html looks this:
<html>
<head>
<meta.../>
<title>...</title>
<link rel="stylesheet" ..../>
<script src=....>...</script>
<script src=....>...</script>
<script src=....>...</script>
</head>
<body>
....
The actual definition of the menu as a nested array is rendered
correctly in all cases. But in the nonfaces->faces case, the
required JSCookMenu javascript scripts are not being written to
the html head!! Consequently the menu is not displayed.
Is this a bug in the JSCookMenu renderer? Is there a fix in
SVN, and/or is there a simple workaround?
Paul Haesler
Consultant
Dialog IT
Canberra Office
paul_haesler@dialog.com.au
DEH: (02) 6274 2627
Dialog: (02) 6209 2600
Mobile: 0405 070136
Re: JSCookMenu not rendering on first entry to JSF
[SEC=UNCLASSIFIED]
Posted by Brian Woolf <ys...@163.com>.
check your web.xml,custom filter must after extend filer.
--
View this message in context: http://www.nabble.com/JSCookMenu-not-rendering-on-first-entry-to-JSF-SEC%3DUNCLASSIFIED--t1051544.html#a3586605
Sent from the MyFaces - Users forum at Nabble.com.