This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using struts2tags select box is getting enabled soon after getting populated. Please help

 
Venkat Samanthula
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have added two select box in a jsp using struts 2 tags and on selecting the Location , i am populating the Model select box automatically from database. Model is populated with right values from database but getting enabled. My main task is to populate and disable the Model select box permanently when i choose Location. Here is my code


<tr>
<td class="tdLabel tdSized">Location:</td>
<td><s:autocompleter required="true"
notifyTopics="/changed" theme="ajax" id="Location"
keyName="Location" forceValidOption="true"
href="locationlist.do" cssStyle="width: 120px;"
autoComplete="true" formId="randForm"/></td>
</tr>

<tr>
<td class="tdLabel tdSized">Model:</td>
<td><s:autocompleter theme="ajax" id="Model"
keyName="Model" href="modellist.do" forceValidOption="true"
cssStyle="width: 120px;" autoComplete="false" disabled="true"
formId="randForm" /></td>
</tr>

Even thought i place disabled = "true", Model is getting disabled untill no values are populated. Once if there is a Model for a particular Location then Model is populated and getting enabled. Please help me with this.

Thanks,
Venkat
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic