On Thu, 25 Oct 2012 04:53:02 -0200, dinesh707 <dinesh...@gmail.com> wrote:
<t:zone t:id="songInfoZone1" id="songInfoZone1">
<input t:type="TextField" t:id="songName" disabled="${disabled}"
size="30"/>
</t:zone>
I'm not sure if that's the source of your problem, but your template above
does have an error: it uses a ${} expansion for passing a parameter. Never
do that. It's always wrong or useless. In your template above, disabled,
which I guess is a boolean parameter, is first converted to a String
because it is inside a ${} expansion. The disabled parameter of TextField
is a boolean, so Tapestry will need to convert the String to a Boolean. I
don't think Tapestry has an specific coercion from String to Boolean. If
not, it will use the generic Object to Boolean one, which returns true of
the object isn't null and false otherwise. The ${} expansion always
converts the value to String, so ${disabled} will always be converted to
true.
Short answer: use disabled="disabled". Use ${} just for outputting stuff
into HTML.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org