It's just a matter of your component having <html> tags. Tapestry is purposefully blind to most tags and just includes them in. Change your component template to not include those tags and you'll be fine.
T4 had $content$ and $remove$ and some variation of that will be forthcoming in T5. On 5/29/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
I am not sure if this is a problem, but when have a component in a page, it renders the <html> , <head> and <body> tags from the component's template. I have my components templates written as complete html documents, because I might want to edit them using an editor that expects the html specification. Should my component templates not use html, body, etc? For example, here is some output: <html> <head><link href="/IEIS2/assets/tapestry/default.css" rel="stylesheet" type="text/css"> <title>IEIS2</title> <link href="/IEIS2/css/IEISStyle.css" rel="stylesheet" title="IEIS Style" type="text/css"> </head> <body><script src="/IEIS2/assets/scriptaculous/prototype.js" type="text/javascript"></script><script src="/IEIS2/assets/scriptaculous/scriptaculous.js" type="text/javascript"></script><script src="/IEIS2/assets/tapestry/tapestry.js" type="text/javascript"></script> <table class="borderblue" width="100%"> <tr> <td align="left" width="20%"><img src="/IEIS2/images/OACSIMLogo_Trans_DS2.jpg"></td> <td align="center" width="60%"><img src="/IEIS2/images/IEISTitle-Logo.gif"></td> <td width="20%"> <html> <body> <table id="Recognizer"> <tr> <td align="right" valign="bottom"> <div><i> You are not logged in. Please <a href="/IEIS2/ieismainpage.border.recognizer.login" id="login">Log In.</a> </i></div> </td> </tr> </table> </body> </html></td> </tr> </table> <table class....more components follow.... Dan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com