struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Gupta <motgu...@gmail.com>
Subject Re: param interceptor is not working fine if list contain more than 10 items?
Date Sat, 07 Dec 2013 02:48:14 GMT
Guys any suggestion/ideas.Really ,I  am not getting whats going on here.


On Fri, Dec 6, 2013 at 10:21 PM, Mohit Gupta <motgupta@gmail.com> wrote:

> Dave. Here is brief about action class
>
> *CustomerOrderAction contains  *
>  private Customer   customer; // getters and setters
>
> * Customer contains*
>  private List<ShopItem>  orders   = new ArrayList<ShopItem>();
>
>  * ShopItem contains*
>  public int      item           = -1; // getters and setters
>
>
> On Fri, Dec 6, 2013 at 10:09 PM, Dave Newton <davelnewton@gmail.com>wrote:
>
>> How is the property defined in the action?
>>
>>
>>
>> On Fri, Dec 6, 2013 at 11:35 AM, Mohit Gupta <motgupta@gmail.com> wrote:
>>
>> > 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 <motgupta@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?
>> >
>>
>>
>>
>> --
>> e: davelnewton@gmail.com
>> m: 908-380-8699
>> s: davelnewton_skype
>> t: @dave_newton <https://twitter.com/dave_newton>
>> b: Bucky Bits <http://buckybits.blogspot.com/>
>> g: davelnewton <https://github.com/davelnewton>
>> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message