As a workaround I changed the <label /> to a <span /> , which renders 
correctly. 


----- Original Message -----
From: "Peter Stavrinides" <[EMAIL PROTECTED]>
To: "Tapestry Mailing List" <users@tapestry.apache.org>
Sent: Thursday, 6 November, 2008 10:45:53 AM GMT +02:00 Athens, Beirut, 
Bucharest, Istanbul
Subject: White space problems in latest T5 snapshot

Hi everyone,

Not sure if its just me, but since this morning I am experiencing some weird 
problems with whitespace.

This line of code:
<label class="formLabel" /><t:textfield t:id="address2" value="site.address2" 
/><br/>

Is rendering as:
<label class="formLabel">
   <input id="address2" type="text" name="address3"/>
   <img id="address2:icon" class="t-error-icon" 
src="../../assets/5.0.16-SNAPSHOT/tapestry/spacer.gif" alt="" style="display: 
none;"/>
   <br/>
</label>

Which is clearly incorrect, if I add a character like this:
<label class="formLabel">Z</label><t:textfield t:id="address2" 
value="site.address2" /><br/>

it becomes:
<label class="formLabel inlineBlock">Z</label>
  <input id="address2" type="text" value="201 Main Street " name="address2"/>
  <img id="address2:icon" class="t-error-icon" 
src="../../assets/5.0.16-SNAPSHOT/tapestry/spacer.gif" alt="" style="display: 
none;"/>
<br/>

which is correct. I even tried replacing the Z with a space or character code, 
but it doesn't work either... has something changed in the tag rendering with 
regards to whitespace? why is label closed in the wrong place? is anyone else 
experiencing this?

thanks,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to