Hello,
I have a big Problem with reading the values of the text-field in
the iterate-tag.
The Value with the ID=1 is all time wrong! and the athers are
ok.?????
The Value with the index=1 is all time the value of the
initialisation and not the
changed.
My JSP:
<html:form action="/ProjektDDE.do">
.....
<logic:iterate id="ente" name="projektForm" property="enten"
indexId="ID">
<tr>
<td class=tl1><html:multibox property="selDDE" value="
<%=ID.toString()%>"></html:multibox> <bean:write name="ente"
property="dde"/></td>
<td class=tl1><bean:write name="ente" property="name"/></td>
<td class=tl1><bean:write name="ente" property
="beschreibung"/></td>
<td class=tl1><html:text property="<%="labelValue["
+ID+"].label"%>" size="2"/></td>
</tr>
</logic:iterate>
My ActionForm:
public LabelValueBean getLabelValue(int index){
return beans[index];
}
public void setLabels(LabelValueBean[] beans){
this.beans=beans;
}
public void setSelDDE(String[] selDDE){
this.selDDE=selDDE;
}
public String[] getSelDDE(){
return selDDE;
}
In the ActionClass befor show the JSP I write the LabelValueBeans:
LabelValueBean[] beans=new LabelValueBean[enten.size()];
for(int i=0;i<enten.size() ;i++){
LabelValueBean bean=new LabelValueBean("3",new
Integer(i).toString());
beans[i]=bean;
}
form.setLabels(beans);
After call ProjektDDE.do I read the selDDE and the LabelValueBean.
The values in selDDE from the checkbox are ok, but the value from
the LabelValueBean-Array
are for the index=1 not correct! (Only for the index=1, the others
are ok. The Label for the
index = i is all time the initialvalue (in this case "3")).
Whats wrong?
Thanks Claudia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]