[ 
http://issues.apache.org/jira/browse/MYFACES-950?page=comments#action_12360987 
] 

Andrej Konkow commented on MYFACES-950:
---------------------------------------

The tomahawk version is 1.1.1
The strange behaviour is:
The first request to the jsf page doesn't render the cookmenu. The HTML 
head-section looks something like:

<head>
  <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
  <title>MyApp</title>
  <link rel="StyleSheet" type="text/css" href="/myapp/theme/any/style.css" />  
</head>


After following any link - means any reload of any page - the cookmenu is 
rendered. The head looks something like:

<head>
  <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
  <title>MyApp</title>
  <link rel="StyleSheet" type="text/css" href="/myapp/theme/any/style.css" />  

<script 
src="/myapp/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/JSCookMenu.js"
 type="text/javascript"><!--

//--></script>
<script 
src="/myapp/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/MyFacesHack.js"
 type="text/javascript"><!--

//--></script>
<script type="text/javascript"><!--
myThemeIEBase='/myapp/jscookmenu/ThemeIE/
//--></script>
<script 
src="/myapp/faces/myFacesExtensionResource/navmenu.jscookmenu.HtmlJSCookMenuRenderer/11302665/ThemeIE/theme.js"
 type="text/javascript"><!--

//--></script>

<link rel="stylesheet" href="/myapp/jscookmenu/ThemeIE/theme.css" 
type="text/css" /></head>


Here the apostroph is missing!


> Missing singlequote in javascript codegeneration
> ------------------------------------------------
>
>          Key: MYFACES-950
>          URL: http://issues.apache.org/jira/browse/MYFACES-950
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>  Environment: tomcat, jdk5
>     Reporter: Andrej Konkow

>
> using the attribute styleLocation/imageLocation in the element jscookmenu 
> causes the following code:
> jsp:
>       <t:jscookMenu id="mainnav" layout="hbr" theme="ThemeIE" 
> styleLocation="/myapp/jscookmenu/ThemeIE/" 
> imageLocation="/myapp/jscookmenu/ThemeIE/">
> Generated code:
> <script type="text/javascript"><!--
> myThemeIEBase='/myapp/jscookmenu/ThemeIE/
> //--></script>
> The closing quote at the variable myThemeIEBase  is missing!!!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to