• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic