Why do I have to filter java.lang.Class or java.lang.reflect.Method ?
For the rest, see in the text below :
On Jun 15, 2009, at 15:43 , Jean-Baptiste BRIAUD -- Novlog wrote:
> Hi,
>
> I'd like to filter some properties on server side so it won't be
> marshaled (or serialized, I'm not sure about the wording) in JSON to
> the client side.
> I manage to do the "plumbing" and it ends in that method :
>
> protected Map filter(Object obj, Map map) {
> }
>
> What is the obj ? Is it the instance under filtering process or is it
> the property under filtering process ?
> In other word, if I have a class Customer with a name, is obj the
> instance of Customer of the instance of the name ?
obj = Instance of Customer, then in the map, you'll find all the
properties including another array of map for the Adresses.
> Can one confirm that if I remove a line (key, value) in the map it
> won't be JSONified ?
yes. Tested.
> That map look like (in the debugger) to be a tree, so if my customer
> class has a collection of Adresse, I'll see that as a map in the
> customer map ?
yes.
>
> Thanks !
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel