You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by RR <se...@gmail.com> on 2004/10/20 02:20:48 UTC

Default selection with Select component

Somewhere in the mail archives I found a reference to a Select
component (http://issues.apache.org/bugzilla/show_bug.cgi?id=29535)
which provides functionality for selecting a default option. I've
incorporated this into my code, but I'm not getting the expected
behavior. The default option shows up as the first in the list, but my
second entry is the one selected by default.

 <component id="typeSelect" type="Select">
          <binding name="model" expression="selectionModel"/>
          <binding name="required" expression="true"/>
          <static-binding name="noSelectionValue" value="Select a Type"/>
          <binding name="submitOnChange" expression="false"/>
          <static-binding name="displayName" value="Type Selection"/>
          <binding name="value" expression="orgTypeSelect"/>
  </component>

Haven't figured out how the first entry in my array (in the model) is
always the default selected, despite the above code. Any suggestions?

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