RE: Spam:Re: Spam:[OS-webwork] WebWork 1.4 and indexed properties

2003-12-07 Thread Jason Carreira
ed. > > > > - Original Message - > > From: "Jason Carreira" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, December 07, 2003 1:49 PM > > Subject: RE: Spam:[OS-webwork] WebWork 1.4 and indexed properties > >

Re: Spam:[OS-webwork] WebWork 1.4 and indexed properties

2003-12-07 Thread Hani Suleiman
ried exposing the setAllocation(int index. Allocation alloc) method too. It never gets called and the same error message is generated. - Original Message - From: "Jason Carreira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 07, 2003 1:49 PM Subject:

Re: Spam:[OS-webwork] WebWork 1.4 and indexed properties

2003-12-07 Thread Frank Febbraro
9 PM Subject: RE: Spam:[OS-webwork] WebWork 1.4 and indexed properties You might want to expose getters and setters like this: void setAllocation(int index, Allocation alloc) Allocation getAllocation(int index) > -Original Message- > From: Frank Febbraro [mailto:[EMAIL PROTECTED]

RE: Spam:[OS-webwork] WebWork 1.4 and indexed properties

2003-12-07 Thread Jason Carreira
D] > Subject: Spam:[OS-webwork] WebWork 1.4 and indexed properties > > > I am trying to set some indexed properties on an object, > Payment, using the WW1.4 BeanUtil class. > > class Payment > { > public Set getAllocations() > public void setAllocations(Set

Re: [OS-webwork] WebWork 1.4 and indexed properties

2003-12-07 Thread Hani Suleiman
I haven't dug through the source, but I'm fairly sure you can't index into a Set. See if changing it to a List helps. On Dec 7, 2003, at 12:10 PM, Frank Febbraro wrote: I am trying to set some indexed properties on an object, Payment, using the WW1.4 BeanUtil class. class Payment { publi

[OS-webwork] WebWork 1.4 and indexed properties

2003-12-07 Thread Frank Febbraro
I am trying to set some indexed properties on an object, Payment, using the WW1.4 BeanUtil class. class Payment { public Set getAllocations() public void setAllocations(Set set) public Allocation getAllocation(int index) } I have the following properties set in the request allocation[