You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Chiappone <ch...@gmail.com> on 2005/08/22 15:31:02 UTC

Malformed HTML

I have just noticed that my html pages that tapestry builds are
malformed.  Viewing the source of my page the <head> tag doesn't end
until the end of the page.  Therefore the body of the page is inside
the head.  Here is a snippet of my border.html

<html>
<span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
        stylesheet="ognl:assets.stylesheet" 
        title="TrustedApp">

</span>
<body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
 marginheight="0" marginwidth="0" jwcid="@Body">


<!-- Content of renderBody here -->

</body>
</html>

Is there something that is missing that could cause me to get </head>
and a few </meta> tags at the end of the page instead of at the top?


-- 
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Howard Lewis Ship <hl...@gmail.com>.
Probably a caching problem; Tapestry requires a little setup to run
like JSPs (give or take).  You can restart the container or set the
JVM system property that disables caching.

On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> I didn't mean to be rude but I swear I tried what Geoff said, here is
> my exact border html file, maybe I am just missing something:
> 
> <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
>         stylesheet="ognl:assets.stylesheet"
>         title="MyApp">
> 
> <script jwcid="@Any" langauge="JavaScript" type="text/javascript"
> src="ognl:assets.suggestAsset"></script>
> <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
>  marginheight="0" marginwidth="0" jwcid="@Body">
> <table border="0" cellpadding="0" cellspacing="0" width="1000">
>   <tbody>
>     <tr>
>       <td>
> 
>        <!-------------------------- BEGIN CONTENT SECTION
> -------------------------------->
> 
>         <span jwcid="renderBody"/>
> 
>         </td>
>        </tr>
>      </tbody>
>   </table>
>  </body>
> </span>
> 
> 
> On 8/22/05, Howard Lewis Ship <hl...@gmail.com> wrote:
> > I always get a kick out of people who ask for help, receive it within
> > ten minutes (!), and then complain.  Trust me, Geoff knows what he's
> > talking about, so there's obviously a problem in your implementation
> > of his approach..  Take a second look .. .for instance, you should
> > nest your @Body inside your @Shell.
> >
> > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > Well I tried the first fix and the head and meta tags still close at
> > > the end of my page.  The second example would take more changes than I
> > > would want to do for my app.  Any other suggestions?
> > >
> > > On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> > > > change
> > > >
> > > > <html>
> > > > <span jwcid="@Shell" ...>
> > > > <body jwcid="@Body"..>
> > > > </body>
> > > > </span>
> > > >
> > > > to
> > > >
> > > > <html jwcid="@Shell"...>
> > > > <body jwcid="@Body"...>
> > > > </body>
> > > > </html>
> > > >
> > > > or as we do...
> > > >
> > > > <html>
> > > >  <head>
> > > >  </head>
> > > >
> > > > <body jwcid="$content$>
> > > > <div jwcid="@Border">
> > > >
> > > > </div>
> > > > </body>
> > > > </html>
> > > >
> > > > where Body is a component we built that contains @Shell,  @Body and a
> > > > @RenderBody.
> > > >
> > > > Geoff
> > > >
> > > > Shell produces the <html> tag and <head> so you example wo
> > > > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > > > I have just noticed that my html pages that tapestry builds are
> > > > > malformed.  Viewing the source of my page the <head> tag doesn't end
> > > > > until the end of the page.  Therefore the body of the page is inside
> > > > > the head.  Here is a snippet of my border.html
> > > > >
> > > > > <html>
> > > > > <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
> > > > >         stylesheet="ognl:assets.stylesheet"
> > > > >         title="TrustedApp">
> > > > >
> > > > > </span>
> > > > > <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
> > > > >  marginheight="0" marginwidth="0" jwcid="@Body">
> > > > >
> > > > >
> > > > > <!-- Content of renderBody here -->
> > > > >
> > > > > </body>
> > > > > </html>
> > > > >
> > > > > Is there something that is missing that could cause me to get </head>
> > > > > and a few </meta> tags at the end of the page instead of at the top?
> > > > >
> > > > >
> > > > > --
> > > > > ~chris
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > The Spindle guy.           http://spindle.sf.net
> > > > Get help with Spindle:
> > > > http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > > > Announcement Feed:
> > > > http://www.jroller.com/rss/glongman?catname=/Announcements
> > > > Feature Updates:            http://spindle.sf.net/updates
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > ~chris
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Jakarta Tapestry
> > Creator, Jakarta HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work.  http://howardlewisship.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> ~chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Chris Chiappone <ch...@gmail.com>.
I didn't mean to be rude but I swear I tried what Geoff said, here is
my exact border html file, maybe I am just missing something:

<span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
        stylesheet="ognl:assets.stylesheet" 
        title="MyApp">

<script jwcid="@Any" langauge="JavaScript" type="text/javascript"
src="ognl:assets.suggestAsset"></script>
<body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
 marginheight="0" marginwidth="0" jwcid="@Body">
<table border="0" cellpadding="0" cellspacing="0" width="1000">
  <tbody>
    <tr>
      <td>

       <!-------------------------- BEGIN CONTENT SECTION
-------------------------------->

        <span jwcid="renderBody"/>

        </td>
       </tr>
     </tbody>
  </table>
 </body>
</span>


On 8/22/05, Howard Lewis Ship <hl...@gmail.com> wrote:
> I always get a kick out of people who ask for help, receive it within
> ten minutes (!), and then complain.  Trust me, Geoff knows what he's
> talking about, so there's obviously a problem in your implementation
> of his approach..  Take a second look .. .for instance, you should
> nest your @Body inside your @Shell.
> 
> On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > Well I tried the first fix and the head and meta tags still close at
> > the end of my page.  The second example would take more changes than I
> > would want to do for my app.  Any other suggestions?
> >
> > On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> > > change
> > >
> > > <html>
> > > <span jwcid="@Shell" ...>
> > > <body jwcid="@Body"..>
> > > </body>
> > > </span>
> > >
> > > to
> > >
> > > <html jwcid="@Shell"...>
> > > <body jwcid="@Body"...>
> > > </body>
> > > </html>
> > >
> > > or as we do...
> > >
> > > <html>
> > >  <head>
> > >  </head>
> > >
> > > <body jwcid="$content$>
> > > <div jwcid="@Border">
> > >
> > > </div>
> > > </body>
> > > </html>
> > >
> > > where Body is a component we built that contains @Shell,  @Body and a
> > > @RenderBody.
> > >
> > > Geoff
> > >
> > > Shell produces the <html> tag and <head> so you example wo
> > > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > > I have just noticed that my html pages that tapestry builds are
> > > > malformed.  Viewing the source of my page the <head> tag doesn't end
> > > > until the end of the page.  Therefore the body of the page is inside
> > > > the head.  Here is a snippet of my border.html
> > > >
> > > > <html>
> > > > <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
> > > >         stylesheet="ognl:assets.stylesheet"
> > > >         title="TrustedApp">
> > > >
> > > > </span>
> > > > <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
> > > >  marginheight="0" marginwidth="0" jwcid="@Body">
> > > >
> > > >
> > > > <!-- Content of renderBody here -->
> > > >
> > > > </body>
> > > > </html>
> > > >
> > > > Is there something that is missing that could cause me to get </head>
> > > > and a few </meta> tags at the end of the page instead of at the top?
> > > >
> > > >
> > > > --
> > > > ~chris
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > The Spindle guy.           http://spindle.sf.net
> > > Get help with Spindle:
> > > http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > > Announcement Feed:
> > > http://www.jroller.com/rss/glongman?catname=/Announcements
> > > Feature Updates:            http://spindle.sf.net/updates
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > ~chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Chris Chiappone <ch...@gmail.com>.
Well I found out what my issue was.  I actually didn't do a
writer.end() statement in my meta delegate.  This cause the head and
meta tags to not close until the end of the page.  I still run into
one issue, I must wrap the entire page in <html> .... </html> even
when I have <html jwcid="@Shell"> ... </html>.  If I don't wrap it
with the html tags mozilla doesn't seem to render the whole page, non
of my components end up being rendered.

On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> Ah yes, I missed the fact that @Body was not nested in @Shell.
> Definitely the cause of the problem I expect.
> 
> No worries about complaining. I am a guilty of not always being able
> to put myself in the position of a newbie - it was so long ago!
> Sometimes I need a kick in the pants.
> 
> Geoff
> 
> On 8/22/05, Howard Lewis Ship <hl...@gmail.com> wrote:
> > I always get a kick out of people who ask for help, receive it within
> > ten minutes (!), and then complain.  Trust me, Geoff knows what he's
> > talking about, so there's obviously a problem in your implementation
> > of his approach..  Take a second look .. .for instance, you should
> > nest your @Body inside your @Shell.
> >
> > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > Well I tried the first fix and the head and meta tags still close at
> > > the end of my page.  The second example would take more changes than I
> > > would want to do for my app.  Any other suggestions?
> > >
> > > On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> > > > change
> > > >
> > > > <html>
> > > > <span jwcid="@Shell" ...>
> > > > <body jwcid="@Body"..>
> > > > </body>
> > > > </span>
> > > >
> > > > to
> > > >
> > > > <html jwcid="@Shell"...>
> > > > <body jwcid="@Body"...>
> > > > </body>
> > > > </html>
> > > >
> > > > or as we do...
> > > >
> > > > <html>
> > > >  <head>
> > > >  </head>
> > > >
> > > > <body jwcid="$content$>
> > > > <div jwcid="@Border">
> > > >
> > > > </div>
> > > > </body>
> > > > </html>
> > > >
> > > > where Body is a component we built that contains @Shell,  @Body and a
> > > > @RenderBody.
> > > >
> > > > Geoff
> > > >
> > > > Shell produces the <html> tag and <head> so you example wo
> > > > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > > > I have just noticed that my html pages that tapestry builds are
> > > > > malformed.  Viewing the source of my page the <head> tag doesn't end
> > > > > until the end of the page.  Therefore the body of the page is inside
> > > > > the head.  Here is a snippet of my border.html
> > > > >
> > > > > <html>
> > > > > <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
> > > > >         stylesheet="ognl:assets.stylesheet"
> > > > >         title="TrustedApp">
> > > > >
> > > > > </span>
> > > > > <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
> > > > >  marginheight="0" marginwidth="0" jwcid="@Body">
> > > > >
> > > > >
> > > > > <!-- Content of renderBody here -->
> > > > >
> > > > > </body>
> > > > > </html>
> > > > >
> > > > > Is there something that is missing that could cause me to get </head>
> > > > > and a few </meta> tags at the end of the page instead of at the top?
> > > > >
> > > > >
> > > > > --
> > > > > ~chris
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > The Spindle guy.           http://spindle.sf.net
> > > > Get help with Spindle:
> > > > http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > > > Announcement Feed:
> > > > http://www.jroller.com/rss/glongman?catname=/Announcements
> > > > Feature Updates:            http://spindle.sf.net/updates
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > ~chris
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Jakarta Tapestry
> > Creator, Jakarta HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work.  http://howardlewisship.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> The Spindle guy.           http://spindle.sf.net
> Get help with Spindle:
> http://lists.sourceforge.net/mailman/listinfo/spindle-user
> Announcement Feed:
> http://www.jroller.com/rss/glongman?catname=/Announcements
> Feature Updates:            http://spindle.sf.net/updates
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Geoff Longman <gl...@gmail.com>.
Ah yes, I missed the fact that @Body was not nested in @Shell.
Definitely the cause of the problem I expect.

No worries about complaining. I am a guilty of not always being able
to put myself in the position of a newbie - it was so long ago!
Sometimes I need a kick in the pants.

Geoff

On 8/22/05, Howard Lewis Ship <hl...@gmail.com> wrote:
> I always get a kick out of people who ask for help, receive it within
> ten minutes (!), and then complain.  Trust me, Geoff knows what he's
> talking about, so there's obviously a problem in your implementation
> of his approach..  Take a second look .. .for instance, you should
> nest your @Body inside your @Shell.
> 
> On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > Well I tried the first fix and the head and meta tags still close at
> > the end of my page.  The second example would take more changes than I
> > would want to do for my app.  Any other suggestions?
> >
> > On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> > > change
> > >
> > > <html>
> > > <span jwcid="@Shell" ...>
> > > <body jwcid="@Body"..>
> > > </body>
> > > </span>
> > >
> > > to
> > >
> > > <html jwcid="@Shell"...>
> > > <body jwcid="@Body"...>
> > > </body>
> > > </html>
> > >
> > > or as we do...
> > >
> > > <html>
> > >  <head>
> > >  </head>
> > >
> > > <body jwcid="$content$>
> > > <div jwcid="@Border">
> > >
> > > </div>
> > > </body>
> > > </html>
> > >
> > > where Body is a component we built that contains @Shell,  @Body and a
> > > @RenderBody.
> > >
> > > Geoff
> > >
> > > Shell produces the <html> tag and <head> so you example wo
> > > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > > I have just noticed that my html pages that tapestry builds are
> > > > malformed.  Viewing the source of my page the <head> tag doesn't end
> > > > until the end of the page.  Therefore the body of the page is inside
> > > > the head.  Here is a snippet of my border.html
> > > >
> > > > <html>
> > > > <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
> > > >         stylesheet="ognl:assets.stylesheet"
> > > >         title="TrustedApp">
> > > >
> > > > </span>
> > > > <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
> > > >  marginheight="0" marginwidth="0" jwcid="@Body">
> > > >
> > > >
> > > > <!-- Content of renderBody here -->
> > > >
> > > > </body>
> > > > </html>
> > > >
> > > > Is there something that is missing that could cause me to get </head>
> > > > and a few </meta> tags at the end of the page instead of at the top?
> > > >
> > > >
> > > > --
> > > > ~chris
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > The Spindle guy.           http://spindle.sf.net
> > > Get help with Spindle:
> > > http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > > Announcement Feed:
> > > http://www.jroller.com/rss/glongman?catname=/Announcements
> > > Feature Updates:            http://spindle.sf.net/updates
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > ~chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Howard Lewis Ship <hl...@gmail.com>.
I always get a kick out of people who ask for help, receive it within
ten minutes (!), and then complain.  Trust me, Geoff knows what he's
talking about, so there's obviously a problem in your implementation
of his approach..  Take a second look .. .for instance, you should
nest your @Body inside your @Shell.

On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> Well I tried the first fix and the head and meta tags still close at
> the end of my page.  The second example would take more changes than I
> would want to do for my app.  Any other suggestions?
> 
> On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> > change
> >
> > <html>
> > <span jwcid="@Shell" ...>
> > <body jwcid="@Body"..>
> > </body>
> > </span>
> >
> > to
> >
> > <html jwcid="@Shell"...>
> > <body jwcid="@Body"...>
> > </body>
> > </html>
> >
> > or as we do...
> >
> > <html>
> >  <head>
> >  </head>
> >
> > <body jwcid="$content$>
> > <div jwcid="@Border">
> >
> > </div>
> > </body>
> > </html>
> >
> > where Body is a component we built that contains @Shell,  @Body and a
> > @RenderBody.
> >
> > Geoff
> >
> > Shell produces the <html> tag and <head> so you example wo
> > On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > > I have just noticed that my html pages that tapestry builds are
> > > malformed.  Viewing the source of my page the <head> tag doesn't end
> > > until the end of the page.  Therefore the body of the page is inside
> > > the head.  Here is a snippet of my border.html
> > >
> > > <html>
> > > <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
> > >         stylesheet="ognl:assets.stylesheet"
> > >         title="TrustedApp">
> > >
> > > </span>
> > > <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
> > >  marginheight="0" marginwidth="0" jwcid="@Body">
> > >
> > >
> > > <!-- Content of renderBody here -->
> > >
> > > </body>
> > > </html>
> > >
> > > Is there something that is missing that could cause me to get </head>
> > > and a few </meta> tags at the end of the page instead of at the top?
> > >
> > >
> > > --
> > > ~chris
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > The Spindle guy.           http://spindle.sf.net
> > Get help with Spindle:
> > http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > Announcement Feed:
> > http://www.jroller.com/rss/glongman?catname=/Announcements
> > Feature Updates:            http://spindle.sf.net/updates
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> ~chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Chris Chiappone <ch...@gmail.com>.
Well I tried the first fix and the head and meta tags still close at
the end of my page.  The second example would take more changes than I
would want to do for my app.  Any other suggestions?

On 8/22/05, Geoff Longman <gl...@gmail.com> wrote:
> change
> 
> <html>
> <span jwcid="@Shell" ...>
> <body jwcid="@Body"..>
> </body>
> </span>
> 
> to
> 
> <html jwcid="@Shell"...>
> <body jwcid="@Body"...>
> </body>
> </html>
> 
> or as we do...
> 
> <html>
>  <head>
>  </head>
> 
> <body jwcid="$content$>
> <div jwcid="@Border">
> 
> </div>
> </body>
> </html>
> 
> where Body is a component we built that contains @Shell,  @Body and a
> @RenderBody.
> 
> Geoff
> 
> Shell produces the <html> tag and <head> so you example wo
> On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> > I have just noticed that my html pages that tapestry builds are
> > malformed.  Viewing the source of my page the <head> tag doesn't end
> > until the end of the page.  Therefore the body of the page is inside
> > the head.  Here is a snippet of my border.html
> >
> > <html>
> > <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
> >         stylesheet="ognl:assets.stylesheet"
> >         title="TrustedApp">
> >
> > </span>
> > <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
> >  marginheight="0" marginwidth="0" jwcid="@Body">
> >
> >
> > <!-- Content of renderBody here -->
> >
> > </body>
> > </html>
> >
> > Is there something that is missing that could cause me to get </head>
> > and a few </meta> tags at the end of the page instead of at the top?
> >
> >
> > --
> > ~chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> The Spindle guy.           http://spindle.sf.net
> Get help with Spindle:
> http://lists.sourceforge.net/mailman/listinfo/spindle-user
> Announcement Feed:
> http://www.jroller.com/rss/glongman?catname=/Announcements
> Feature Updates:            http://spindle.sf.net/updates
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Malformed HTML

Posted by Geoff Longman <gl...@gmail.com>.
change

<html>
<span jwcid="@Shell" ...>
<body jwcid="@Body"..>
</body>
</span>

to 

<html jwcid="@Shell"...>
<body jwcid="@Body"...>
</body>
</html>

or as we do...

<html>
  <head>
  </head>

<body jwcid="$content$>
<div jwcid="@Border">

</div>
</body>
</html>

where Body is a component we built that contains @Shell,  @Body and a
@RenderBody.

Geoff

Shell produces the <html> tag and <head> so you example wo
On 8/22/05, Chris Chiappone <ch...@gmail.com> wrote:
> I have just noticed that my html pages that tapestry builds are
> malformed.  Viewing the source of my page the <head> tag doesn't end
> until the end of the page.  Therefore the body of the page is inside
> the head.  Here is a snippet of my border.html
> 
> <html>
> <span jwcid="@Shell" delegate="ognl:beans.metaDelegate"
>         stylesheet="ognl:assets.stylesheet"
>         title="TrustedApp">
> 
> </span>
> <body leftmargin="0" topmargin="0" style="color: rgb(102, 102, 102);"
>  marginheight="0" marginwidth="0" jwcid="@Body">
> 
> 
> <!-- Content of renderBody here -->
> 
> </body>
> </html>
> 
> Is there something that is missing that could cause me to get </head>
> and a few </meta> tags at the end of the page instead of at the top?
> 
> 
> --
> ~chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: How to inject spring beans into classes

Posted by Adam Czysciak <ad...@gmail.com>.
Derek Brown wrote:

> I would now like to be able to inject a spring bean to
> any class and access it by an abstract accessor or
> something similar. How do I do this?
use jdk 5 annotations:

@InjectObject("spring:quizFacade")
public abstract QuizFacade getQuizFacade();


-- 
Greets!
   Adam Czysciak
   adam.czysciak@gmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


How to inject spring beans into classes

Posted by Derek Brown <ze...@yahoo.com>.
Hello,

I have been using my spring beans injected in to pages
and components by using <inject>.

I would now like to be able to inject a spring bean to
any class and access it by an abstract accessor or
something similar. How do I do this?

Thanks


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org