Hi all,

I am trying to use int array on MyBean attribute (I
about xmlForm): When I try NextPage after I choose
some more item (by xf:selectMany) I get error:

java.lang.ArrayStoreException at
java.lang.System.arraycopy(Native Method) at
org.apache.cocoon.components.xmlform.Form.setValue(Form.java:256)
at
org.apache.cocoon.components.xmlform.Form.populate(Form.java:433)
at
org.apache.cocoon.acting.AbstractXMLFormAction.act(AbstractXMLFormAction.java:287)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:136)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
at  
...

my bean some like:

public class MyBean {

  private int intAttrArray[];
  private HashMap allInt;  // for xf:selectMany
  ...

  public VendorAccount () {
    vendorProduct = new int[] { };
    allInt = new HashMap();
    allInt.put( "1", "Product 001" );  //
String.valueOf(1)
    ...
  }
  public int[] getMyIntArray() { return intAttrArray;
}
  public void setMyIntArray( int[] v ) { intAttrArray
= v; }
  ...



Regards,
Hill

Cocoon 2.1 -dev, Tomcat 4.0, Java 1.4, WinXP

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to