Im in a hurry at the moment, but I took a glance and noticed the "Início",
could this cause any problem? Have you tried standard ASCII?

/Martin


Francisco Passos wrote:
> 
> Thank you for your responde.
> 
> Unfortunately that's not the case.
> 
> I'm going to post the files so you can see what I'm attempting. This is
> the
> main page:
> 
> <?xml version='1.0' encoding='utf8'?>
> <f:view xmlns="http://www.w3.org/1999/xhtml";
>         xmlns:trh="http://myfaces.apache.org/trinidad/html";
>         xmlns:tr="http://myfaces.apache.org/trinidad";
>         xmlns:f="http://java.sun.com/jsf/core";
>         xmlns:h="http://java.sun.com/jsf/html";
>         xmlns:ui="http://java.sun.com/jsf/facelets";
>         xmlns:t="http://myfaces.apache.org/tomahawk";>
> 
>     <trh:html id="mainTemplatehtml1">
> 
>     <trh:head id="mainTemplatehead1">
>         <script type="text/javascript"
> src="/stp/resources/menu/JSCookMenu.js"></script>
>         <link rel="stylesheet"
> href="/stp/resources/menu/themes/ThemeOffice/theme.css" type="text/css" />
>         <script type="text/javascript"
> src="/stp/resources/menu/themes/ThemeOffice/theme.js"></script>
>         <link href="/stp/resources/css/stp.css" rel="stylesheet"
> media="screen"/>
>         <link href="/stp/resources/css/calendar.css" rel="stylesheet"
> media="screen"/>
>     </trh:head>
> 
>     <trh:body id="mainTemplatebody1" styleClass="stpbody">
>             <f:loadBundle
>                 basename="pt.opensoft.messageResource.MessageResources"
> var="msg" />
>             <h:form id="mainForm">
>                 <tr:panelPage id="mainTemplatepanelPage1">
>                     <f:facet name="messages">
>                         <tr:messages id="mainMessagesID" text="Mensagens"
> rendered="true">
> 
>                         </tr:messages>
>                     </f:facet>
>                     <f:facet name="menuGlobal">
>                         <tr:navigationPane id="mainTemplatemenuButtons1">
>                             <tr:panelHorizontalLayout>
>                                 <tr:commandLink text="#{msg.label_logout}"
>                                     id="mainTemplatecommandLink1"
> action="#{
> logoutBean.actionSair}"
>                                     immediate="true" />
>                             </tr:panelHorizontalLayout>
>                         </tr:navigationPane>
>                     </f:facet>
> 
>                     <f:facet name="branding">
>                         <tr:image source="#{msg.logo_source}"
>                             id="mainTemplateobjectImage1" />
>                     </f:facet>
> 
> 
>                     <f:facet name="appCopyright">
>                         <tr:outputFormatted value="#{msg.label_copyright}"
>                             id="mainTemplateoutputFormatted1" />
>                     </f:facet>
> 
> 
>                     <ui:insert name="menuOpcoes">
>                         <ui:include src="../pages/menu-jscook.xhtml" />
>                     </ui:insert>
> 
> 
>                     <ui:insert name="PageContent" />
> 
>                 </tr:panelPage>
>             </h:form>
>     </trh:body>
> 
>     </trh:html>
> 
> </f:view>
> 
> 
> Here's menu-jscook.xhtml:
> 
> <?xml version='1.0' encoding='windows-1252'?>
> <ui:define name="menuOpcoes"
>     xmlns="http://www.w3.org/1999/xhtml";
>     xmlns:f="http://java.sun.com/jsf/core";
>     xmlns:h="http://java.sun.com/jsf/html";
>     xmlns:tr="http://myfaces.apache.org/trinidad";
>     xmlns:trh="http://myfaces.apache.org/trinidad/html";
>     xmlns:ui="http://java.sun.com/jsf/facelets";
>     xmlns:t="http://myfaces.apache.org/tomahawk";>
>     <div style="width: 100%; background-color: #EFEBDE; padding-left:
> 30px;
> text-align: left;">
>         <input type="hidden" name="jscook_action" />
>         <t:jscookMenu layout="hbr" theme="ThemeOffice">
>             <t:navigationMenuItems value="#{menuBean.navItems}" />
>         </t:jscookMenu>
>     </div>
> </ui:define>
> 
> And here's a bit of the menu entry construction (allow me to mention that
> the visual appearance of the menus is rendered as expected):
> 
> navItems = new ArrayList<NavigationMenuItem>();
> 
> List<NavigationMenuItem> itemsSistema = new
> ArrayList<NavigationMenuItem>();
> itemsSistema.add(new NavigationMenuItem("Início", "main"));
> itemsSistema.add(new NavigationMenuItem("Imprimir",
> "javascript:window.print
> ();"));
> itemsSistema.add(new NavigationMenuItem("Terminar",
> "#{logoutBean.actionSair
> }"));
> NavigationMenuItem sistema = new NavigationMenuItem("Sistema",
> "javascript:false;");
> sistema.setNavigationMenuItems(itemsSistema);
> 
> 
> Do you spot anything unusual which might break functionality?
> 
> 
> On 5/9/07, Martinicum <[EMAIL PROTECTED]> wrote:
>>
>>
>> As far as I know it should be the
>> <input type="hidden" name="jscook_action" />
>> problem.
>>
>> I have similar problem but, frst i hade a jscookmenu setup like this:
>>   <h:form>
>>       <t:jscookMenu layout="hbr" theme="ThemeOffice">
>>         <t:navigationMenuItem itemLabel="#{messages['Statistics']}
>> action="newFile""/>
>>       </t:jscookMenu>
>>   </h:form>
>>
>> But when adding the
>> <input type="hidden" name="jscook_action"/> after the required <h:form>
>> but
>> before the <j:jscookMenu....> it works.
>>
>>   <h:form>
>>       <input type="hidden" name="jscook_action"/>
>>       <t:jscookMenu layout="hbr" theme="ThemeOffice">
>>         <t:navigationMenuItem itemLabel="#{messages['Statistics']}
>> action="newFile""/>
>>       </t:jscookMenu>
>>   </h:form>
>>
>> Hope it helps
>> Martin
>>
>> Francisco Passos wrote:
>> >
>> > I'm still having no luck using t:jsCookMenu with dynamically generated
>> > entries on JSF 1.1, with Facelets 1.1.11.
>> >
>> > The menu is properly presented, but when I click the entries, such as
>> one
>> > generated like this:
>> >
>> > new NavigationMenuItem("Start", "main")
>> >
>> > it opens a new window with the following address
>> > http://localhost:7001/stp/pages/mainForm__id5_menu:A]main
>> > <http://localhost:7001/stp/pages/mainForm__id5_menu:A%5Dmain>
>> > (which presents a 404 error).
>> >
>> > I've tried with and without a <input type="hidden" name="jscook_action"
>> > />,
>> > the result is the same.
>> >
>> > Does anyone know what I might be doing wrong?
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Using-JscookMenu-tf3618178.html#a10393381
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-JscookMenu-tf3618178.html#a10397018
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to