tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Sampaleanu <colin...@exis.com>
Subject Re: Illegal html in samples, with span outside of body
Date Fri, 01 Aug 2003 15:30:07 GMT
Sure, assuming this is Home.html, that would be

<html>
<head>...</head>
<body jcwid="$content$">
	<span jcwid="@Border">
		page content
	</span>
</body>
</html>

or with the enhanced form

<html>
<head>...</head>
<body jcwid="@border,$content$">
		page content
</body>
</html>

But in Border.html itself, you would have a somewhat less than optimal 
layout to be legal,

<html jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="MyCorp 
Customer Login">
<head jwcid="$remove$">
  <link rel="stylesheet" type="text/css" href="../css/app.css"
 title="style"><title>Border Component</title></head>
<body jwcid="@Body" leftmargin="0" topmargin="0" marginwidth="0"
   ...

I say less than optimal since I'm not sure you want the Shell on the 
HTML, some editores would complain about it there where they wouldn't 
complain about it elsewhere.

Now I don't think the enhanced form would really help much here, in 
terms of being able to use the Body component on the body element, but 
have the Shell somewhere lower down.


Stefano Bagnara wrote:

>I think tapestry does not impose that a @Body object must be only in a
><body tag and a $content$ must be only in span tags.
>
>So:
>
><html>
><head>...</head>
><body jcwid="$content$">
>	<span jcwid="@Body">
>		page content
>	</span>
></body>
></html>
>
>Will solve both problems, right?
>
>The span with the @Body can be also a span with a @Border component.
>
>  
>
>>-----Original Message-----
>>From: Howard M. Lewis Ship [mailto:hlship@comcast.net] 
>>Sent: Thursday, July 31, 2003 9:27 PM
>>To: 'Tapestry development'
>>Subject: RE: Illegal html in samples, with span outside of body
>>
>>
>>Yes, but a more common pattern would be:
>>
>><html> 
>><head> ... </head>
>><span jwcid="$content$">
>><body jwcid="@MyAppsCustomBorderComponent">
>>
>>...
>>
>></body>
>></span>
>></html>
>>
>>Again, this would look better if it was something like:
>>
>><html>
>><head> ... </head>
>><body jwcid="@MyAppsCustomBorderComponent,$content$">
>>...
>></body>
>></html>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>  
>



Mime
View raw message