You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Vikas Kumar Mittal (JIRA)" <ji...@apache.org> on 2008/01/02 10:22:33 UTC
[jira] Created: (WW-2402) Tabular Data input issue
Tabular Data input issue
------------------------
Key: WW-2402
URL: https://issues.apache.org/struts/browse/WW-2402
Project: Struts 2
Issue Type: Bug
Components: Other
Affects Versions: 2.0.8
Environment: JDK 5,Struts 2.0.8
Reporter: Vikas Kumar Mittal
Hi
I am using struts2 lazy inizilation/tabular data input feature.
In my jsp i am adding product country objects using javascript,
and i have declaired the list in my action class,also i have defined ProductAction-conversion.properties
===>
Element_productCountryList=com.iyogi.product.model.ProductCountry
CreateIfNull_productCountryList=true
ProductAction Code===>
private List<ProductCountry>productCountryList=new ArrayList<ProductCountry>();
public List<ProductCountry> getProductCountryList() {
return productCountryList;
}
public void setProductCountryList(List<ProductCountry> productCountryList) {
this.productCountryList = productCountryList;
}
jsp code ==>
<s:hidden name="productCountryList[0].pkId" value="1"/>
<s:hidden name="productCountryList[0].product.pkId" value="123"/>
<s:hidden name="productCountryList[0].country.pkId" value="34"/>
<s:hidden name="productCountryList[0].productStatus" value="ACTIVE"/>
<s:hidden name="productCountryList[1].pkId" value="2"/>
<s:hidden name="productCountryList[1].product.pkId" value="123"/>
<s:hidden name="productCountryList[1].country.pkId" value="4"/>
<s:hidden name="productCountryList[1].productStatus" value="ACTIVE"/>
Every thing seems good,
But when i submit this form it is throwing some exception,
ERROR [com.opensymphony.xwork2.interceptor.ParametersInterceptor] ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'productCountryList[0].productStatus' on 'class com.iyogi.product.action.ProductAction: Error setting expression 'productCountryList[0].productStatus' with value '[Ljava.lang.String;@998537'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.