Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 97881 invoked from network); 14 Aug 2009 10:43:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 10:43:15 -0000 Received: (qmail 37912 invoked by uid 500); 14 Aug 2009 10:42:48 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 37108 invoked by uid 500); 14 Aug 2009 10:42:44 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 36019 invoked by uid 99); 14 Aug 2009 10:39:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 10:39:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of campbell.shaun@gmail.com designates 209.85.219.212 as permitted sender) Received: from [209.85.219.212] (HELO mail-ew0-f212.google.com) (209.85.219.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 10:39:42 +0000 Received: by ewy8 with SMTP id 8so1320686ewy.12 for ; Fri, 14 Aug 2009 03:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=/lScoRxPYvAbp1QfgZ0ZYxbXT7GaoNec3RJQdURbUaQ=; b=DSelAWi0Uy4TIKb4j1tNeMlFAId0a5iacrTSxZDELLOyZfuTPUxMNOYYoHf/mpBs/T LplW+H4mh4V779CmTbFKPlk9XPE2PKV+ar17cB5jVWC+zliJ2cSJne+9x8ASHzYLfRap mSZKNVB8VF0AkI1XtyFOfoneaBxobatyTBhB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=uVC4eWBzxY0FnqdAxZxrDQLoVDkfSbwEleei6NmByvPVAE12Sp+BCdB6oh5KwQr8cu W+z9d+dNYQtttVVwT2mQbR+yGwRRPB8C+AszNgcwqP0TZv8addQTBF3YDOMxqhcCGDcr SUhoJv9Z8MvpBso6rKYj6bfi+L7Kp6Js+WkEo= MIME-Version: 1.0 Received: by 10.216.9.66 with SMTP id 44mr394842wes.73.1250246361715; Fri, 14 Aug 2009 03:39:21 -0700 (PDT) In-Reply-To: References: <5fd4e90c0908130629j79732a87h7e522e2bf1d49522@mail.gmail.com> <5fd4e90c0908130958m431b2bbdp9b6421b118e752ca@mail.gmail.com> <5fd4e90c0908131005y5b9c9d7byfa754fd486bb242@mail.gmail.com> Date: Fri, 14 Aug 2009 11:39:21 +0100 Message-ID: <5fd4e90c0908140339j3ef5681cs568823ce7bb98ebc@mail.gmail.com> Subject: Re: Using Trinidad document tag and navigation stopped working. From: Shaun Campbell To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0016364c7dbd459611047117aacc X-Virus-Checked: Checked by ClamAV on apache.org --0016364c7dbd459611047117aacc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Andrew I'm not sure what you mean by this and your earlier post. How do I get to the body? Is that html body and isn't that produced by the tr:document? How do I change the static text to a component? Apologies but I'm new to the trinidad way of doing things. Shaun 2009/8/13 Andrew Robinson > xmlns:ui="http://java.sun.com/jsf/facelets" > xmlns:h="http://java.sun.com/jsf/html" > xmlns:f="http://java.sun.com/jsf/core" > xmlns:tr="http://myfaces.apache.org/trinidad" > xmlns:c="http://java.sun.com/jstl/core"> > ... > >
> > -Andrew > > On Thu, Aug 13, 2009 at 11:05 AM, Shaun > Campbell wrote: > > PS I see I'm using commandLink and actions linking to my > faces-config.xml. > > In the JSF Goodies it seems to include a series of plain html link tags. > > Could this now be the cause of the problems? > > > > 2009/8/13 Shaun Campbell > >> > >> No errors that I can see. Just no response. > >> > >> Not sure what you mean by a root component in the template. I have the > >> tr:document now. The format of the template is similar to JSF Goodies > >> example. The only difference is that the navigation on JSF Goodies is > in > >> its own div, whereas mine is in a form within an insert. I'm not that > >> familiar with this way of doing it at the moment so not if this is the > >> problem. > >> > >> Thanks > >> Shaun > >> > >> 2009/8/13 Andrew Robinson > >>> > >>> Any javascript errors? > >>> > >>> It also may be that you do not have a root component in your template, > >>> but instead have raw HTML. Try wrapping the body of the template with > >>> a component. > >>> > >>> -Andrew > >>> > >>> On Thu, Aug 13, 2009 at 7:29 AM, Shaun Campbell< > campbell.shaun@gmail.com> > >>> wrote: > >>> > I've just converted my template to use the tr:document tag (to get > the > >>> > progress indicator to work) instead of the method generated by the > >>> > netbeans > >>> > facelets archetype and now my navigation has stopped working. I > don't > >>> > think > >>> > any changes have been made to my faces-config.xml and the individual > >>> > pages > >>> > fire up manually. > >>> > > >>> > My template is now: > >>> > > >>> > >>> > xmlns:ui="http://java.sun.com/jsf/facelets" > >>> > xmlns:h="http://java.sun.com/jsf/html" > >>> > xmlns:f="http://java.sun.com/jsf/core" > >>> > xmlns:tr="http://myfaces.apache.org/trinidad" > >>> > xmlns:c="http://java.sun.com/jstl/core"> > >>> > > >>> > > >>> > type="text/css" > >>> > /> > >>> > >>> > type="text/css" /> > >>> > > >>> > MyFactoryManager > >>> > > >>> > > >>> >
> >>> >
> >>> > > >>> >
> >>> >
> >>> >
> >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> >
> >>> >
> >>> > Content > >>> >
> >>> >
> >>> >
> >>> > > >>> >
> >>> > > >>> > I know there's a combination of h:tags in there but I'm not sure what > >>> > could > >>> > be wrong. I've actually just put a mixture of h:commandLink and > >>> > tr:commandLink on the content of a page and still nothing happens. > I'm > >>> > not > >>> > getting any errors reported to the browser or at the console. > >>> > > >>> > Any ideas? > >>> > Shaun > >>> > > >> > > > > > --0016364c7dbd459611047117aacc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Andrew

I'm not sure what you mean by this and your earlier po= st.=A0 How do I get to the body?=A0 Is that html body and isn't that pr= oduced by the tr:document?=A0 How do I change the static text to a componen= t?

Apologies but I'm new to the trinidad way of doing things.

S= haun

2009/8/13 Andrew Robinson <andrew.rw.robi= nson@gmail.com>
<tr:document
=A0 xmlns:ui=3D"http://java.sun.com/jsf/facelets"
=A0 xmlns:h=3D"http://java.sun.com/jsf/html"
=A0 xmlns:f=3D"http://java.sun.com/jsf/core"
=A0 xmlns:tr=3D"http://myfaces.apache.org/trinidad"
=A0 xmlns:c=3D"http://java.sun.com/jstl/core">
...

<div class=3D"container"> <!-- Root of document is stati= c text, change
this to a component -->

-Andrew

On Thu, Aug 13, 2009 at 11:05 AM, Shaun
Campbell<campbell.shaun@gmail.com> wrote:
> PS I see I'm using commandLink and actions linking to my faces-con= fig.xml.
> In the JSF Goodies it seems to include a series of plain html link tag= s.
> Could this now be the cause of the problems?
>
> 2009/8/13 Shaun Campbell <campbell.shaun@gmail.com>
>>
>> No errors that I can see.=A0 Just no response.
>>
>> Not sure what you mean by a root component in the template.=A0 I h= ave the
>> tr:document now.=A0 The format of the template is similar to JSF G= oodies
>> example.=A0 The only difference is that the navigation on JSF Good= ies is in
>> its own div, whereas mine is in a form within an insert.=A0 I'= m not that
>> familiar with this way of doing it at the moment so not if this is= the
>> problem.
>>
>> Thanks
>> Shaun
>>
>> 2009/8/13 Andrew Robinson <andrew.rw.robinson@gmail.com>
>>>
>>> Any javascript errors?
>>>
>>> It also may be that you do not have a root component in your t= emplate,
>>> but instead have raw HTML. Try wrapping the body of the templa= te with
>>> a component.
>>>
>>> -Andrew
>>>
>>> On Thu, Aug 13, 2009 at 7:29 AM, Shaun Campbell<campbell.shaun@gmail.com>
>>> wrote:
>>> > I've just converted my template to use the tr:documen= t tag (to get the
>>> > progress indicator to work) instead of the method generat= ed by the
>>> > netbeans
>>> > facelets archetype and now my navigation has stopped work= ing.=A0 I don't
>>> > think
>>> > any changes have been made to my faces-config.xml and the= individual
>>> > pages
>>> > fire up manually.
>>> >
>>> > My template is now:
>>> >
>>> > <tr:document
>>> > =A0=A0 xmlns:ui=3D"http://java.sun.com/jsf/facelets" >>> > =A0=A0 xmlns:h=3D"http://java.sun.com/jsf/html"
>>> > =A0=A0 xmlns:f=3D"http://java.sun.com/jsf/core"
>>> > =A0=A0 xmlns:tr=3D"http://myfaces.apache.org/trinidad"= ;
>>> > =A0=A0 xmlns:c=3D"http://java.sun.com/jstl/core">
>>> > =A0=A0 <f:facet name=3D"metaContainer"> >>> > =A0=A0=A0=A0=A0=A0 <!--
>>> > =A0=A0=A0=A0=A0=A0 <meta http-equiv=3D"Content-Ty= pe" content=3D"text/html;
>>> > charset=3DUTF-8" />
>>> > =A0=A0=A0=A0=A0=A0 -->
>>> > =A0=A0=A0=A0=A0=A0=A0 <link href=3D"./css/default= .css" rel=3D"stylesheet" type=3D"text/css"
>>> > />
>>> > =A0=A0=A0=A0=A0=A0=A0 <link href=3D"./css/cssLayo= ut.css" rel=3D"stylesheet"
>>> > type=3D"text/css" />
>>> > =A0=A0=A0=A0=A0=A0=A0 <script type=3D"text/javasc= ript"
>>> > src=3D"./scripts/common.js"></script><= br> >>> > =A0=A0=A0=A0=A0=A0=A0 <title>MyFactoryManager</t= itle>
>>> > =A0=A0 </f:facet>
>>> >
>>> > <div class=3D"container">
>>> > =A0=A0=A0=A0=A0=A0=A0 <div id=3D"top" class= =3D"top">
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <ui:insert name=3D&q= uot;top"><h:graphicImage id=3D"logo"
>>> > url=3D"/images/logo.jpg" /></ui:insert>= ;
>>> > =A0=A0=A0=A0=A0=A0=A0 </div>
>>> > =A0=A0=A0=A0=A0=A0=A0 <div>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <div id=3D"left= ">
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <ui:inse= rt name=3D"left">
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= <h:form>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 <h:panelGrid columns=3D"1" >
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 <h:commandLink action=3D"nav_home">= ;
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <h:outputText value=3D"Home&qu= ot; />
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 </h:commandLink>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 <h:commandLink action=3D"nav_jobs">= ;
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <h:outputText value=3D"Jobs&qu= ot; />
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 </h:commandLink>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 <h:commandLink action=3D"nav_operators&quo= t;>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <h:outputText value=3D"Operato= rs" />
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 </h:commandLink>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 <h:commandLink action=3D"nav_workcentres&q= uot;>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <h:outputText value=3D"Work Ce= ntres" />
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 </h:commandLink>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 </h:panelGrid>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= </h:form>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </ui:ins= ert>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </div>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <div id=3D"cont= ent" class=3D"left_content">
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <ui:inse= rt name=3D"content">Content</ui:insert>
>>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </div>
>>> > =A0=A0=A0=A0=A0=A0=A0 </div>
>>> > =A0=A0=A0 </div>
>>> >
>>> > </tr:document>
>>> >
>>> > I know there's a combination of h:tags in there but I= 'm not sure what
>>> > could
>>> > be wrong.=A0 I've actually just put a mixture of h:co= mmandLink and
>>> > tr:commandLink on the content of a page and still nothing= happens.=A0 I'm
>>> > not
>>> > getting any errors reported to the browser or at the cons= ole.
>>> >
>>> > Any ideas?
>>> > Shaun
>>> >
>>
>
>

--0016364c7dbd459611047117aacc--