You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bob X <ca...@linuxmail.org> on 2004/04/13 18:58:20 UTC
Generated HTML is bad...?!
This also happens with the hangman2 demo application. I have a simple hello application that generates the following HTML:
===== BAD HTML GENERATED ======
<html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Application: hello -->
<!-- Page: Home -->
<!-- Generated: Tue Apr 13 12:54:15 EDT 2004 -->
<html>
<head>
<meta name="generator" content="Tapestry Application Framework, version 3.0-beta-3"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>Hello</title>
<link rel="stylesheet" type="text/css" href="/hello/css/home.css"/>
</head></html>
<!-- Render time: ~ 16 ms -->
<body>
<p>Welcome to your first <b>Tapestry Application</b>.</p>
<span class="id">It's a brave new world!</span>
</body>
</html>
===== MY HOME.HTML =====
<html>
<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Hello" />
<body>
<p>Welcome to your first <b>Tapestry Application</b>.</p>
<span jwcid="insertSomeText" class="id">This text will be replaced by Tapesty</span>
</body>
</html>
===== MY HOME.PAGE =====
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification
PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<page-specification class="hello.test.Home">
<context-asset name="stylesheet" path="css/home.css"/>
<component id="insertSomeText" type="Insert">
<binding name="value" expression="someText"/>
</component>
</page-specification>
Am I doing something wrong here? Like I said I bounced my code against the hangman2 demo and the demo creates the bad HTML as well.
I am just starting with Tapestry so it could be me. : )
Robert
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Generated HTML is bad...?!
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
I'll have to check the Hangman2 app.
The Shell component generates the <html> and <head> tags. Since you template already includes those
tags, that's the source of the redundancy.
Check the user's guide about jwcid="$content$".
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
Creator, HiveMind
http://howardlewisship.com
> -----Original Message-----
> From: Bob X [mailto:catcher@linuxmail.org]
> Sent: Tuesday, April 13, 2004 12:58 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Generated HTML is bad...?! <includes code>
>
>
> This also happens with the hangman2 demo application. I have
> a simple hello application that generates the following HTML:
>
> ===== BAD HTML GENERATED ======
> <html>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <!-- Application: hello -->
> <!-- Page: Home -->
> <!-- Generated: Tue Apr 13 12:54:15 EDT 2004 -->
> <html>
> <head>
> <meta name="generator" content="Tapestry Application
> Framework, version 3.0-beta-3"/>
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
> <title>Hello</title>
> <link rel="stylesheet" type="text/css" href="/hello/css/home.css"/>
> </head></html>
> <!-- Render time: ~ 16 ms -->
>
> <body>
> <p>Welcome to your first <b>Tapestry Application</b>.</p>
> <span class="id">It's a brave new world!</span>
> </body>
> </html>
>
> ===== MY HOME.HTML =====
> <html>
> <span jwcid="@Shell" stylesheet="ognl:assets.stylesheet"
> title="Hello" />
> <body>
> <p>Welcome to your first <b>Tapestry Application</b>.</p>
> <span jwcid="insertSomeText" class="id">This text will be
> replaced by Tapesty</span>
> </body>
> </html>
>
> ===== MY HOME.PAGE =====
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE page-specification
> PUBLIC "-//Apache Software Foundation//Tapestry
> Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
>
> <page-specification class="hello.test.Home">
> <context-asset name="stylesheet" path="css/home.css"/>
> <component id="insertSomeText" type="Insert">
> <binding name="value" expression="someText"/>
> </component>
> </page-specification>
>
>
> Am I doing something wrong here? Like I said I bounced my
> code against the hangman2 demo and the demo creates the bad
> HTML as well.
>
> I am just starting with Tapestry so it could be me. : )
>
> Robert
>
> --
> ______________________________________________
> Check out the latest SMS services @ http://www.linuxmail.org
> This allows you to send and receive SMS through your mailbox.
>
>
> Powered by Outblaze
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Generated HTML is bad...?!
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Also, you Shell component should *enclose* the rest of the page!
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
Creator, HiveMind
http://howardlewisship.com
> -----Original Message-----
> From: Bob X [mailto:catcher@linuxmail.org]
> Sent: Tuesday, April 13, 2004 12:58 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Generated HTML is bad...?! <includes code>
>
>
> This also happens with the hangman2 demo application. I have
> a simple hello application that generates the following HTML:
>
> ===== BAD HTML GENERATED ======
> <html>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <!-- Application: hello -->
> <!-- Page: Home -->
> <!-- Generated: Tue Apr 13 12:54:15 EDT 2004 -->
> <html>
> <head>
> <meta name="generator" content="Tapestry Application
> Framework, version 3.0-beta-3"/>
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
> <title>Hello</title>
> <link rel="stylesheet" type="text/css" href="/hello/css/home.css"/>
> </head></html>
> <!-- Render time: ~ 16 ms -->
>
> <body>
> <p>Welcome to your first <b>Tapestry Application</b>.</p>
> <span class="id">It's a brave new world!</span>
> </body>
> </html>
>
> ===== MY HOME.HTML =====
> <html>
> <span jwcid="@Shell" stylesheet="ognl:assets.stylesheet"
> title="Hello" />
> <body>
> <p>Welcome to your first <b>Tapestry Application</b>.</p>
> <span jwcid="insertSomeText" class="id">This text will be
> replaced by Tapesty</span>
> </body>
> </html>
>
> ===== MY HOME.PAGE =====
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE page-specification
> PUBLIC "-//Apache Software Foundation//Tapestry
> Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
>
> <page-specification class="hello.test.Home">
> <context-asset name="stylesheet" path="css/home.css"/>
> <component id="insertSomeText" type="Insert">
> <binding name="value" expression="someText"/>
> </component>
> </page-specification>
>
>
> Am I doing something wrong here? Like I said I bounced my
> code against the hangman2 demo and the demo creates the bad
> HTML as well.
>
> I am just starting with Tapestry so it could be me. : )
>
> Robert
>
> --
> ______________________________________________
> Check out the latest SMS services @ http://www.linuxmail.org
> This allows you to send and receive SMS through your mailbox.
>
>
> Powered by Outblaze
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org