This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Using struts2tags select box is getting enabled soon after getting populated. Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using struts2tags select box is getting enabled soon after getting populated. Please help" Watch "Using struts2tags select box is getting enabled soon after getting populated. Please help" New topic
Author

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

Venkat Samanthula
Greenhorn

Joined: Oct 13, 2008
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using struts2tags select box is getting enabled soon after getting populated. Please help
 
Similar Threads
problem running dojo.plugin in struts2.1.6
Problem rading keyValue from struts inbuilt dojo autocompleter
Struts 2 - Autocompleter
S2: autocompleter - how to populate a list based on user's input?
select tag ---> s:autocompleter [struts2]