myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francisco Passos" <francisco.pas...@gmail.com>
Subject Re: [Tomahawk & Trinidad] Tomahawk's jsCookMenu seems to malfunction with Trinidad's PPR
Date Mon, 05 Nov 2007 12:20:16 GMT
Thank you for your help Alvaro.

Try as I might, either with one form or with several forms, I can't get it
to work. Are there any other things I might be doing (or not doing enough)
that can cause this? Perhaps configuration parameters?

Francisco

On 10/31/07, alvaro tovar <alvaro.tovar@gmail.com> wrote:
>
> i use myfaces 1.6, tomahawk 1.6
>
> On 10/31/07, Francisco Passos <francisco.passos@gmail.com> wrote:
> >
> > Thank you Alvaro.
> >
> > I can't get it to work though. What version of Tomahawk are you using?
> > And are you using Sun RI or Myfaces?
> >
> > Thank you,
> > Francisco
> >
> > On 10/31/07, alvaro tovar <alvaro.tovar@gmail.com> wrote:
> > >
> > > also the id of the form is jscook_action
> > > look my page
> > >
> > > <%@ page contentType="text/html;charset=ISO-8859-1" language="java" %>
> > > <%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %>
> > > <%@ taglib uri="http://java.sun.com/jsf/core " prefix="f"%>
> > > <%@ taglib uri=" http://myfaces.apache.org/tomahawk" prefix="t"%>
> > > <%@ taglib uri=" http://myfaces.apache.org/sandbox " prefix="s"%>
> > > <%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles "%>
> > >
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > > "http://www.w3.org/TR/html4/loose.dtd">
> > >
> > > <html>
> > >
> > >   <head>
> > >
> > >     <meta http-equiv="Content-Type" content="text/html;
> > > charset=iso-8859-1" />
> > >     <link href="<%=request.getContextPath()%>/css/estilosHermes.css"
> > > rel="stylesheet" type="text/css" />
> > >     <link href="<%=request.getContextPath()%>/css/hermes- bog.css"
> > > rel="stylesheet" type="text/css" />
> > >     <link href="<%=request.getContextPath()%>/css/hermes-footer.css"
> > > rel="stylesheet" type="text/css" />
> > >     <link href="<%=request.getContextPath()%>/css/hermes-header.css"
> > > rel="stylesheet" type="text/css" />
> > >     <link href="<%=request.getContextPath()%>/css/hermes- jsf.css"
> > > rel="stylesheet" type="text/css" />
> > >   <link href="<%=request.getContextPath()%>/css/menuhermes.css"
> > > rel="stylesheet" type="text/css" /></head>
> > >
> > >   <f:view>
> > >   <body>
> > >
> > >     <f:verbatim><div id="global"></f:verbatim>
> > >
> > >       <f:verbatim><div id="cabecera"></f:verbatim>
> > >           <f:subview id="header">
> > >             <tiles:insert attribute="header" flush="false"/>
> > >           </f:subview>
> > >       <f:verbatim></div></f:verbatim>
> > >       <f:verbatim><div id="clear"></div></f:verbatim>
> > >
> > >       <f:verbatim><div id="contenido"></f:verbatim>
> > >
> > >
> > >             <h:panelGrid columns="1">
> > >                <h:form id="jscook_action2">
> > >                    <h:panelGroup id="opcionesHermes">
> > >                      <f:subview id="menuIzq" >
> > >                         <tiles:insert attribute="menu" flush="false"/>
> > >                      </f:subview>
> > >                     </h:panelGroup>
> > >                  <t:commandLink/><%--no borrar, bug --%>
> > >                     </h:form>
> > >                     <h:panelGroup>
> > >
> > >                         <h:panelGrid columns="1" cellspacing="5"
> > > cellpadding="5">
> > >
> > >                         <h:panelGroup id="opcionesProyecto">
> > >                          <f:verbatim><div id="izquierdaopciones">
> > >                           <p><b></f:verbatim>
> > >                            <h:outputText id="texto3Menu" value="Usted
> > > puede acceder a los siguientes formularios para edición del proyecto:"/>
> > >                           <f:verbatim></b><br /></p></f:verbatim>
> > >
> > >                           <h:form id="jscook_action">
> > >                                               <t:commandLink/><%--no
> > > borrar, bug --%>
> > >                               <t:jscookMenu id="menuFormulario"
> > > layout="hbl" theme="ThemeOffice">
> > >                                <t:navigationMenuItem
> > > itemLabel="formularios Proyecto">
> > >
> > >                                <t:navigationMenuItem itemLabel="Datos
> > > básicos" action="#{ manejadorMenuFormularios.iraDatosBasicos}"
> > > rendered="#{manejadorMenuFormularios.posicionMenuActivo[0]}"/>
> > >                                 <t:navigationMenuItem
> > > itemLabel="Empresas" action="#{ manejadorMenuFormularios.iraEmpresas}"
> > > rendered="#{(manejadorMenuFormularios.posicionMenuActivo[0]) && (
> > > manejadorMenuFormularios.esMostrarEmpresa)}"/>
> > >                                <t:navigationMenuItem
> > > itemLabel="Investigadores" action="#{
> > > manejadorMenuFormularios.iraInvestigadores}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[1]}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Líneas" action="#{ manejadorMenuFormularios.iraLineas}"
> > > rendered="#{manejadorMenuFormularios.posicionMenuActivo[2]}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Objetivos y resultados" action="#{
> > > manejadorMenuFormularios.iraObjetivosResultados}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[3]}"/>
> > >                                  <t:navigationMenuItem
> > > itemLabel="Información específica" action="#{
> > > manejadorMenuFormularios.iraInformacionEspecifica}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[4]}"/>
> > >                                  <t:navigationMenuItem
> > > itemLabel="Actividades" action="#{
> > > manejadorMenuFormularios.iraActividades}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[5]}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Actividades Investigador" action="#{
> > > manejadorMenuFormularios.iraActividadesPersona} " rendered="#{(
> > > manejadorMenuFormularios.posicionMenuActivo[5]) && (
> > > manejadorMenuFormularios.esMostrarEmpresa)}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Bibliografia" action="#{
> > > manejadorMenuFormularios.iraBibliografia}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[6]}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Áreas temáticas" action="#{
> > > manejadorMenuFormularios.iraAreasTematicas}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[7]}"/>
> > >                                <t:navigationMenuItem
> > > itemLabel="Productos" action="#{ manejadorMenuFormularios.iraProductos}"
> > > rendered="#{manejadorMenuFormularios.posicionMenuActivo[8]}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Evaluadores" action="#{
> > > manejadorMenuFormularios.iraEvaluadores}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[9]}"/>
> > >                                  <t:navigationMenuItem
> > > itemLabel="Fuentes de financiación" action="#{
> > > manejadorMenuFormularios.iraFuentes}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[10] && (
> > > manejadorMenuFormularios.esMostrarFinanciacion)}"/>
> > >                                   <t:navigationMenuItem
> > > itemLabel="Gastos" action="#{ manejadorMenuFormularios.iraRubros}"
> > > rendered="#{manejadorMenuFormularios.posicionMenuActivo[11] && (
> > > manejadorMenuFormularios.esMostrarGastos)}"/>
> > >                                  <t:navigationMenuItem
> > > itemLabel="Adjuntar archivos" action="#{
> > > manejadorMenuFormularios.iraSubirArchivo}" rendered="#{
> > > manejadorMenuFormularios.posicionMenuActivo[12]}"/>
> > >                               </t:navigationMenuItem>
> > >                               </t:jscookMenu>
> > >                           </h:form>
> > >                         <f:verbatim></div></f:verbatim>
> > >                         </h:panelGroup>
> > >
> > >                         </h:panelGrid>
> > >
> > >             </h:panelGroup>
> > >               </h:panelGrid>
> > >
> > >                    <h:panelGrid columns="1" width="100%">
> > >
> > >
> > >
> > >                 <h:form enctype="multipart/form-data" >
> > >                     <t:commandLink/>
> > >                     <h:panelGroup id="cuerpo">
> > >                      <f:subview id="content" >
> > >                         <tiles:insert attribute="body" flush="false"/>
> > >                      </f:subview>
> > >                     </h:panelGroup>
> > >                 </h:form>
> > >
> > >                   </h:panelGrid>
> > >       <f:verbatim></div>
> > >       <div id="clear"></div></f:verbatim>
> > >
> > >       <f:verbatim><div id="pie"></f:verbatim>
> > >         <f:subview id="footer">
> > >           <tiles:insert attribute="footer" flush="false"/>
> > >         </f:subview>
> > >       <f:verbatim></div>
> > >       <div id="clear"></div>
> > >
> > >     </div></f:verbatim>
> > >
> > >   </body>
> > >   </f:view>
> > > </html>
> > >
> > > On 10/31/07, Francisco Passos <francisco.passos@gmail.com > wrote:
> > > >
> > > > Hello Alvaro, thanks for your hint.
> > > >
> > > > Could you please post a copy of the xhtml you use for an example
> > > > page? I've tried placing jscookmenu within a form and the remainder of
the
> > > > page on a different form, but the problem persists.
> > > >
> > > > Thank you,
> > > > Francisco
> > > >
> > > > On 10/31/07, alvaro tovar < alvaro.tovar@gmail.com> wrote:
> > > > >
> > > > > yes, i solved this, using 2 form one for the jscookmenu and other
> > > > > for the page
> > > > >
> > > > > On 10/31/07, Francisco Passos < francisco.passos@gmail.com>
wrote:
> > > > > >
> > > > > > Good morning to all.
> > > > > >
> > > > > > I've come to realize the following in an application using
> > > > > > t:jsCookMenu and Trinidad's PPR.
> > > > > >
> > > > > > The menu always works properly, except if the last interaction
> > > > > > with the web app was a PPR request. In this case, selecting
an option from
> > > > > > the menu does not send the user where intended, but instead
a full page
> > > > > > refresh of the current page takes place. A second click (in
the newly
> > > > > > refreshed page) always seems to work, but nevertheless now the
last request
> > > > > > is no longer a PPR one.
> > > > > >
> > > > > > Has anyone experienced this or has any idea what might be
> > > > > > causing it?
> > > > > >
> > > > > > More info: I'm using Trinidad 1.0.1 and Tomahawk 1.1.6 and have
> > > > > > attempted to migrate to Trinidad 1.0.2 and 1.0.3, but gave up
on
> > > > > > that because PPR ceases to work on my app.
> > > > > >
> > > > > > Thank you,
> > > > > > Francisco
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>

Mime
View raw message