It looks like the bug, if any, is that

disabled="false"

should set the Select component's disabled parameter to false (which
is the default), but it appears it may be set to true.  Generally,
when the TypeCoercer coverts a string to a boolean, any non-blank
string is converted to true, even the string "false".  However, the
disabled parameter should have a default parameter prefix of "prop:",
which interprets the string "false" specially.

Other than that, the rest looks reasonable to me.

The <img/> tag is normal; it's much easier on the client side to hide
or reveal an existing DOM element than it is to create it and remove
it.  That's what Tapestry does ... it puts the <img> in place just in
case the client side decides to display it.  The "t-invisible" ensures
that, initially, the red icon does not appear to the user.

On 7/4/07, Allen Guo <[EMAIL PROTECTED]> wrote:
Hi All,

I use select component in html template like this
    <select t:type="select" model="graphicModel" value="shop.currTemplate.backgroundImage" 
size="1" disabled="false"/>
The generated result is like this
    <select id="select" name="select" size="1">
      <option disabled="disabled" value="bug.jpg">bug
      <option disabled="disabled" value="pet.png">pet
    </select>
    <img alt="[Error]" class="t-error-icon t-invisible" id="select:icon" 
src="/bogo/assets/tapestry/field-error-marker.png">

I used the latest TP5.0.5(not snapshot). It's really very strange. Can anyone 
give me a help?


Thank you in advance
Allen Guo



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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

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

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

Reply via email to