On 11/13/13 8:17 PM, "Paul Hastings" <[email protected]> wrote:

>not sure if this is an issue or just me not understanding.
>
>when i filter an ArrayCollection (ac), i see its length change to the
>expected 
>size based on the filter condition but if i send that filtered ac to my
>backend 
>(coldfusion) for reporting the whole, unfiltered ac is passed back. i
>guess its 
>passing back the ac array source rather than ac wrapper?
Yes, it serializes the source, not its current view.
>
>i've already worked around it but curious if this is expected/designed?
>and is 
>my workaround "ok" (loop over filtered ac & add items to new array to
>pass to 
>backend)?
Seems ok.  You could also try subclassing and changing what
readExternal/writeExternal does.  Maybe some committer will add a flag and
build in the option.

-Alex

Reply via email to