You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kent Tong <ke...@cpttm.org.mo> on 2004/09/27 04:10:49 UTC

Chokes on ?

Hi,

When parsing the following page template, Tapestry says:
"Tag <span> on line 7 is a dynamic component, and may not
appear inside an ignored block". It seems that it is
looking for the non-existing </img> element, so everything
it is seeing is inside the <img> and should be ignored.

<html>
<head>
    <title>Hello World</title>
</head>
<body>
<img jwcid="logo" src="images/cpttm.gif">Welcome<p>
<span jwcid="insertSomeText">This text will be replaced by Tapesty</span>
</body>
</html>

If I change:

   <img jwcid="logo" src="images/cpttm.gif">

to:

   <img jwcid="logo" src="images/cpttm.gif"/>

Then it will work fine.

As many web page editors insist using <img ...> instead
of <img ... />, this is a major problem in using Tapestry
with them. Any advice? Thanks in advance!

-- 
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag & RedHat

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


Re: Chokes on ?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Sep 26, 2004, at 10:10 PM, Kent Tong wrote:
> When parsing the following page template, Tapestry says:
> "Tag <span> on line 7 is a dynamic component, and may not
> appear inside an ignored block". It seems that it is
> looking for the non-existing </img> element, so everything
> it is seeing is inside the <img> and should be ignored.

Tapestry is forgiving about general HTML tags, but when lighting up a 
tag as a component with jwcid, it needs to be well-formed.

> <html>
> <head>
>    <title>Hello World</title>
> </head>
> <body>
> <img jwcid="logo" src="images/cpttm.gif">Welcome<p>
> <span jwcid="insertSomeText">This text will be replaced by 
> Tapesty</span>
> </body>
> </html>

You also are missing a closing </p>.

> As many web page editors insist using <img ...> instead
> of <img ... />, this is a major problem in using Tapestry
> with them. Any advice? Thanks in advance!

My advice, if your page editors are not keeping up with the standards 
of proper web markup, then either educate them or get new page editors. 
  The web is broken, and the only way it will be fixed is if we 
meticulously stick to standards.  XHTML is quite specific about markup 
being well-formed and valid.  Do your small part and get current!  :)

(sorry for the mini-rant, I hung with my friend Molly Holzschlag the 
other day and got quite a bit more of an earful on this very topic)

	Erik


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