tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship" <hls...@comcast.net>
Subject RE: Illegal html in samples, with span outside of body
Date Fri, 01 Aug 2003 18:43:48 GMT
Yep, that's legal all right.  The Body component will always render a <body> tag, even
if it is
represented in the template using a <span> tag (or a <fred> tag, for that matter).

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: Stefano Bagnara [mailto:bago@ngi.it] 
> Sent: Friday, August 01, 2003 10:09 AM
> To: 'Tapestry development'
> Subject: RE: Illegal html in samples, with span outside of body
> 
> 
> 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