Toru
Nov 9th, 2008, 01:52 PM
Hi,
<form:select path="skills" items="${commandObj.skills}" />
works perfectly and the form is submitted if I push the button. But with
<form:select path="skills">
<form:options items="${commandObj.skills}" itemValue="code" itemLabel="name"/>
</form:select>
all values are displayed but a form submission is not possible - nothings happens. I have a 'getSkills()' and 'setSkills(Skill[] a_skills)' in my command class. All skills are stored in the command class in an ordinary array. Do I have to use a map or such things?
Where is my mistake?
Thanks in advance!
<form:select path="skills" items="${commandObj.skills}" />
works perfectly and the form is submitted if I push the button. But with
<form:select path="skills">
<form:options items="${commandObj.skills}" itemValue="code" itemLabel="name"/>
</form:select>
all values are displayed but a form submission is not possible - nothings happens. I have a 'getSkills()' and 'setSkills(Skill[] a_skills)' in my command class. All skills are stored in the command class in an ordinary array. Do I have to use a map or such things?
Where is my mistake?
Thanks in advance!