Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Venkat Samanthula
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

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

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

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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!