repeatable not saving all entries?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

repeatable not saving all entries?

slide
I have a plugin that I am updating. It has a repeatable section for
multiple entries, each entry has a checkbox. What I am seeing is that
only the entries with the checkbox checked are getting saved into the
configuration. I am using bindParametersToList to grab all the items
from the form and save into a List<T> which is then serialized into
the config file. The class I am passing into bindParametersToList has
a constructor with @DataBoundConstructor on it, is there anything I
would need to do?

Thanks,

slide

--
slide-o-blog
http://slide-o-blog.blogspot.com/
Reply | Threaded
Open this post in threaded view
|

RE: repeatable not saving all entries?

martin.loiselle@medrium.com
This post has NOT been accepted by the mailing list yet.
On vacation:
I will be out of the office starting the Dec. 23rd and
will return on January 10.

for any problem related to your email or computer, please send an email to [hidden email].

For any emergency, call at 1-418-264-6911
Reply | Threaded
Open this post in threaded view
|

Re: repeatable not saving all entries?

John Borghi
In reply to this post by slide
Hi Slide,
I had the same issue -  seemed using bindParametersToList() would discard data for an entire section that contained checkboxes unless they were checked.  I resolved it by switching to use bindJSONToList() instead, which behaved in a more sociable manner.
John

On 1/3/2011 12:10 PM, Slide wrote:
I have a plugin that I am updating. It has a repeatable section for
multiple entries, each entry has a checkbox. What I am seeing is that
only the entries with the checkbox checked are getting saved into the
configuration. I am using bindParametersToList to grab all the items
from the form and save into a List<T> which is then serialized into
the config file. The class I am passing into bindParametersToList has
a constructor with @DataBoundConstructor on it, is there anything I
would need to do?

Thanks,

slide

Reply | Threaded
Open this post in threaded view
|

RE: Re: repeatable not saving all entries?

martin.loiselle@medrium.com
This post has NOT been accepted by the mailing list yet.
On vacation:
I will be out of the office starting the Dec. 23rd and
will return on January 10.

for any problem related to your email or computer, please send an email to [hidden email].

For any emergency, call at 1-418-264-6911
Reply | Threaded
Open this post in threaded view
|

Re: repeatable not saving all entries?

slide
In reply to this post by John Borghi
John,

Thanks for the tip, I found the same thing! Seems kind of odd to me.

Thanks,

slide

On Tue, Jan 4, 2011 at 4:06 PM, John Borghi <[hidden email]> wrote:

> Hi Slide,
> I had the same issue -  seemed using bindParametersToList() would discard
> data for an entire section that contained checkboxes unless they were
> checked.  I resolved it by switching to use bindJSONToList() instead, which
> behaved in a more sociable manner.
> John
>
> On 1/3/2011 12:10 PM, Slide wrote:
>
> I have a plugin that I am updating. It has a repeatable section for
> multiple entries, each entry has a checkbox. What I am seeing is that
> only the entries with the checkbox checked are getting saved into the
> configuration. I am using bindParametersToList to grab all the items
> from the form and save into a List<T> which is then serialized into
> the config file. The class I am passing into bindParametersToList has
> a constructor with @DataBoundConstructor on it, is there anything I
> would need to do?
> Thanks,
> slide
>



--
slide-o-blog
http://slide-o-blog.blogspot.com/
Reply | Threaded
Open this post in threaded view
|

RE: Re: repeatable not saving all entries?

martin.loiselle@medrium.com
This post has NOT been accepted by the mailing list yet.
On vacation:
I will be out of the office starting the Dec. 23rd and
will return on January 10.

for any problem related to your email or computer, please send an email to [hidden email].

For any emergency, call at 1-418-264-6911