Are you decorating the label or otherwise making use of it as a
component, or just using it to display? If you want to give your own
value for the label text disaply, why not just use an HTML label like
<label>${myValueHere}</label>.
I'm not sure what is going on with your code example because it has a
lot of typos, if that was because your email sent in HTML the first
time, send it in plain text. I'd at least expect the for=userName to be
for="userName" and t:type="TextField" instead of t:type="TextFieldd" for
it to be valid XHTML and a valid invisibly instrumented component.
-Rich
On 03/03/2011 02:30 PM, bogdan_cm wrote:
I have this piece of code(only relevant part included):
"t:label for=userName> LABEL BODY /t:label"
"input type="text" t:id="userName" t:type="TextFieldd" t:value="userName"
t:validate="required"/"
I would expect, when rendered, to have something like this:
LABEL BODY: TEXTFIELD
instead, what I have is:
User Name TEXTFIELD -> which is what the label displays if there is no
body
What am i doing wrong here? If I add the body to the app.properties file it
get's picked up and put in properly. Only when I provide the label body in
the .tml it's behaving unexpectedly, and it's the way I would like it to be
as I plan on changing it dynamically like this:
${myValueHere}
Thanks,
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Label-not-displaying-it-s-body-tp3408519p3408519.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org