Hi,
i think its some pice of information you would want to know on the server
side too (the indexes) so i think we don't have to do it like HTML does. But
if there is a standard we should implement this standard . Does anyone know
if there is such a thing or has experience how other frameworks /
technologies ar handling such things?
Best,
Martin



Krycek wrote:
> 
> Martin,
> 
> I don't know is it's standard, but without the index I wasn't getting the
> array property, after adding the index it worked. If the field name is
> "something[]" it works too.
> But I remember ExtJS uses indexes to send data to the server, and don't
> remember anyone complaining. So I guess it's pretty acceptable in all
> kinds
> of backends.
> 
> On Tue, Sep 15, 2009 at 3:50 AM, MartinWittemann
> <[email protected]>wrote:
> 
>>
>> Hi,
>> Yes, the toUriParameter does not support arrays or objects. The main
>> purpose
>> of that method is / was to serialize forms which done have such kind of
>> data
>> in it. But it could be useful for all data types. So we should extend the
>> method to support such types.
>> Is you suggestion how to serialize it some kind of standard?
>> I just tested a HTML Select with multiple input and it seems that its
>> just
>> adding multiple parameters with the same name.
>> Regards,
>> Martin
>>
>>
>> Krycek wrote:
>> >
>> > Hi,
>> > what is the easiest way to send form data to the server when dealing
>> with
>> > model objects?
>> >
>> > In case of being qx.util.Serializer.toUriParameter(),. shound't it
>> support
>> > arrays?
>> >
>> > I have something like that to serialize:
>> >
>> > {
>> >     id: "1",
>> >     name: "my name",
>> >     myArray: [1, 2, 3]
>> > }
>> >
>> > my backend is php and what I want to receive is:
>> >
>> > id=1
>> > name=my name
>> > myArray[0]=1
>> > myArray[1]=2
>> > myArray[2]=3
>> >
>> > would be great to be able to serialize something more complex too:
>> >
>> > myArray[0][2]
>> >
>> > or maps:
>> >
>> > myMap["index"]["another"]
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>> > is the only developer event you need to attend this year. Jumpstart
>> your
>> > developing skills, take BlackBerry mobile applications to market and
>> stay
>> > ahead of the curve. Join us from November 9&#45;12, 2009. Register
>> > now&#33;
>> > http://p.sf.net/sfu/devconf
>> > _______________________________________________
>> > qooxdoo-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Easiest-way-to-serialize-model-objects-tp3645573p3646763.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9&#45;12, 2009. Register
>> now&#33;
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Easiest-way-to-serialize-model-objects-tp3645573p3648548.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to