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 2005/01/29 05:31:56 UTC

bug in the handling of ?

Hi,

Consider the following html template:

<span key="mykey"/> <span jwcid="@Insert" value="def"/>

In particular, note that there is a space between
the two span elements. The message for "myKey" is
"Message:". When the above template is rendered, the
output is:

Message:def

It means the space is gone. In contrast, the following
template:

<span jwcid="@Insert" value="message:mykey">Today is:</span> <span 
jwcid="@Insert" value="def"/>

will keep the space in the output:

Message: def

Is this behavior a feature or a bug?

Thanks!

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


Re: bug in the handling of ?

Posted by Howard Lewis Ship <hl...@gmail.com>.
That does look odd!  In between active tags, Tapestry is supposed to
trim white space down to a single character (not remove it entirely)
... and even that is problematic for some people (who feel Tapestry
should leave whitespace as-is, even if it means lots of extra output).


On Sat, 29 Jan 2005 12:31:56 +0800, Kent Tong <ke...@cpttm.org.mo> wrote:
> Hi,
> 
> Consider the following html template:
> 
> <span key="mykey"/> <span jwcid="@Insert" value="def"/>
> 
> In particular, note that there is a space between
> the two span elements. The message for "myKey" is
> "Message:". When the above template is rendered, the
> output is:
> 
> Message:def
> 
> It means the space is gone. In contrast, the following
> template:
> 
> <span jwcid="@Insert" value="message:mykey">Today is:</span> <span
> jwcid="@Insert" value="def"/>
> 
> will keep the space in the output:
> 
> Message: def
> 
> Is this behavior a feature or a bug?
> 
> Thanks!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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