myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Trinidad: Missing <script type="text/javascript" src="/trinidad-demo/adf/jsLibs/Common1_0_2.js"> in html-head
Date Sat, 08 Sep 2007 00:18:40 GMT
Yep, indeed.  Also looks like <body> has a stray onload
handler too.

-- Adam


On 9/7/07, Martin Marinschek <martin.marinschek@gmail.com> wrote:
> Hi Martin,
>
> you should still create an issue for the fact that the command-button
> still renders a call to a javascript-function which isn't there on the
> page.
>
> regards,
>
> Martin
>
> On 9/6/07, Martin Hinterndorfer <martin.hinterndorfer@irian.at> wrote:
> > Hi!
> >
> > Problem with the missing javaScript link is solved! - Yeah!
> > Stupid, but:
> > In the file trinidad-config.xml
> > the output-mode was set to:
> >
> >  <output-mode>printable</output-mode>
> >
> > And this means no <script> - tags are rendered in the head of the html!
> > Therefor no actions are performed...
> >
> > Thanx for the engagement!
> >
> > Martin Hinterndorfer
> >
> >
> >
> >
> > 2007/9/6, Matthias Wessendorf < matzew@apache.org>:
> > > yesterday, Thomas asked me the same.
> > >
> > > I updated my trunk version of Trinidad.
> > >
> > > run the build (mvn clean install) and deployed the demo.
> > >
> > > Everything is fine.
> > >
> > > (it renders 1_0_3 instead of 1_0_2 on trunk, since we updated the
> > > trinidad-version.txt file, once we release the bits of Trinidad 1.0.2)
> > >
> > > -Matthias
> > >
> > > On 9/6/07, Martin Hinterndorfer <martin.hinterndorfer@irian.at> wrote:
> > > > Hi!
> > > >
> > > > I have troubles setting up a demo application with tomahawk and myfaces.
> > > >
> > > > When I want to show a simple page like this:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <tr:document
> > > >    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"
> > > >    title="Facelets">
> > > >     <tr:form>
> > > >       <tr:inputText label="Your name" id="input1" value="#{ user.name}"
> > />
> > > >       #{user.name}tintifax
> > > >       <tr:commandButton id="button1" text="press me"
> > > > action="#{ user.myAction}" />
> > > >   </tr:form>
> > > > </tr:document>
> > > >
> > > > The page does not get rendered correctly.
> > > >  It looks fine, but when I click the button, the according action will
> > not
> > > > be triggered.
> > > > This is because there is the script tag missing in the html head tag
> > > > (compared to the trinidad examples) .
> > > >
> > > > <script type="text/javascript"
> > > > src="/trinidad-demo/adf/jsLibs/Common1_0_2.js"
> > > > >
> > > > So the source-code of the rendered html-document looks like this:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
> > > > 4.01//EN"
> > "http://www.w3.org/TR/html4/loose.dtd"><!--Start:
> > > > org.apache.myfaces.trinidad.Document["_id1"]-->
> > > > <html dir="ltr" lang="de"
> > > > >
> > > >  <head>
> > > >  <title>Facelets</title>
> > > >  <meta
> > > >  name="generator" content="Apache Trinidad">
> > > >  <link
> > > >  rel="stylesheet" charset="UTF-8"
> > > > type="text/css"
> > > >
> > href="/jsfpoc-local/adf/styles/cache/airplus-desktop-1549033220-gecko.css"
> > > > >
> > > >  </head>
> > > >  <!--Start: org.apache.myfaces.trinidad.Document
> > ["_id1"]-->
> > > >  <body
> > > >  onload="_checkLoadNoPPR()"><a name="top"></
> > > > a>
> > > >
> > > >  <noscript>Diese Seite verwendet JavaScript und ben&ouml;tigt
einen
> > > > JavaScript-f&auml;higen Browser. Ihr Browser unterst&uuml;tzt
JavaScript
> > > > nicht.</
> > > > noscript>
> > > >  <!--Start: org.apache.myfaces.trinidad.Form["_id2"]-->
> > > >  <form
> > > >  id="_id2" name="_id2" style=
> > > > "margin:0px" method="POST" onkeypress="return
> > _submitOnEnter(event,'_id2');"
> > > > action="/jsfpoc-local/trinidad- sample.jsf"><!--Start:
> > > > org.apache.myfaces.trinidad.Input["input1"]-->
> > > > <table id="input1__xc_" class="af_inputText"
> > > > cellpadding="0" cellspacing="0"
> > > > border="0" summary=""><tr>
> > > >  <
> > > > td class="af_inputText_label" nowrap>Your name</
> > > > td>
> > > >
> > > >  <td valign="top" nowrap
> > > > class="AFContentCell"><!--Start:
> > > > org.apache.myfaces.trinidad.Input["input1"]--><div
> > > >  id="input1" name="input1" class=
> > > > "af_inputText_content">Harald</div></td>
> > > >  </tr><!--Start: org.apache.myfaces.trinidad.Input
> > > > ["input1"]--><tr>
> > > >  <td></td>
> > > >
> > > >
> > > >  <
> > > > td class="AFComponentMessageCell"><!--Start:
> > > > org.apache.myfaces.trinidad.Input["input1"]-->
> > > > </td>
> > > >  </tr></table>
> > > >  Haraldtintifax<!--Start:
> > > > org.apache.myfaces.trinidad.Command
> > > > ["button1"]--><input id="button1" name=
> > > > "button1" type="submit"
> > > > onclick="submitForm('_id2',1,{source:'button1'});return
> > > > false;"
> > > > class="af_commandButton" value="press me"><
> > > > input type="hidden"
> > > > name="org.apache.myfaces.trinidad.faces.FORM
> > > > " value="_id2"><input type=
> > > > "hidden" name="org.apache.myfaces.trinidad.faces.STATE
> > "
> > > > value=
> > > > "!4e98d331"></form>
> > > >  </body>
> > > >  <!--Created by Apache Trinidad (Apache MyFaces Trinidad API -
> > 1.0.2/Apache
> > > > MyFaces Trinidad Impl -
> > > > 1.0.2 ), skin:airplus.desktop (airplus)--></html>
> > > >
> > > >
> > > > I have no idea why, and no clue where I can find any further info
> > regarding
> > > > this matter.
> > > > Which Component is responsible for that?
> > > >
> > > > Can anyone help?
> > > >
> > > > best regards
> > > >
> > > > Martin Hinterndorfer
> > > >
> > >
> > >
> > > --
> > > Matthias Wessendorf
> > >
> > > further stuff:
> > > blog: http://matthiaswessendorf.wordpress.com/
> > > mail: matzew-at-apache-dot-org
> > >
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Mime
View raw message