Hi Problem in Struts2.
I have problem when using OGNL to set the Object directly on Model.

For e.g.

<s:select name="courseImplementation.department"
list="listPropertySelectionModel.departmentListOfSchool" listValue="name" />

e.g. Final html which is rendered by struts2
<select name="courseImplementation.department"
id="_courseImplementation_department">
    <option value="Department#3/-970525270"
selected="selected">Dermetology</option>
    <option value="Department#4/-970525207">Orthopedic_dept</option>
    <option value="Department#5/-970525141">Art of Fashion</option>
    <option value="Department#6/-970524313">MBA</option>
</select>  

here i am trying to set the Object of "Department" directly on Model
"CourseImplementation's " setDepartment(Department department) method using
ognl : courseImplementation.department.
My listKey contains the Object of type Department.
When i am trying to save it gives me following error.

Error : Invalid field value for field "courseImplementation.department".

i know that this is error is due to incompatible type.
But what could be the solution?

Any reply is most welcomed.
I have spend a lot of time behined it.
Please reply
Thnak you

-- 
View this message in context: 
http://www.nabble.com/Invalid-field-value%28due-to-type-coversion%29-in-Struts2-tf4682207.html#a13379578
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to