views:

33

answers:

0

Hi,

I am maintaining a Spring MVC Web apps written in spring 2.5. Now I want to add some enhancement into it but currently encountering some problem.

I created a select box and set the multiple option to true and disabled it also. The only way to populate the the select is thru making some ajax call.

<form:select  path="dataFiles" multiple="true" disabled="true">
</form:select>

publiv class MyData{
 private List<String> dataFiles = new ArrayList<String>();
 //getters
 //setters
}

After the ajax call returns, I automatically select each options. I dont want user to edit this anymore.

But my problem is, during form submit they dont get binded into my commandbean. Is there any workaround for this?

I tried removing the disabled attribute and everything work well, but my problem is, it violates my requirements.

Any hints about this?