correcting typo errors in my previous post

I have customerAtction which customer dataObject. Customer data object
contains arraylist of orders.

If I have 10 order placed from ui then struts 2 works fine and i get  10
orders populated in my customer object

<input type='hidden'  name ='customer.orders[0].item' value ='someItem'/>//
First item
                to
 <input type='hidden'  name ='customer.orders[9].item' value
='someItem'/>// Tenth item

 But if i have 11 items i cet customer object with 11 orders with first and
last order correctly filled  but inbetween 9 orders are not correctly
filled. In between 9 values are filled as null object

 <input type='hidden'  name ='customer.orders[0].item' value
='someItem'/>// First item
                to
 <input type='hidden'  name ='customer.orders[10].item' value
='someItem'/>// eleventh item

 Some how param interceptor is not working fine for more than 10 items. I
am not sure what i am missing here?

---------- Forwarded message ----------
From: Mohit Gupta <motgu...@gmail.com>
Date: Fri, Dec 6, 2013 at 9:34 PM
Subject: param interceptor is not working fine if list contain more than 10
items?
To: Struts Users Mailing List <user@struts.apache.org>




I have customerAtction which customer dataObject. Customer data object
contains arraylist of orders.

If I have 10 order placed from ui then struts 2 works fine and i get  10
orders populated in my customer object

<input type='hidden'  name ='customer.orders[0].item' value ='someItem'/>//
First item
                to
 <input type='hidden'  name ='customer.orders[9].item' value
='someItem'/>// Tenth item

 But if i have 11 items i cet customer object with 11 orders with first and
last order correctly filled  but inbetween 9 orders are correctly filled

 <input type='hidden'  name ='customer.orders[0].item' value
='someItem'/>// First item
                to
 <input type='hidden'  name ='customer.orders[10].item' value
='someItem'/>// Tenth item

 Some how param interceptor is not working fine for more than 10 items. I
am not sure what i am missing here?

Reply via email to