You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dhongyt <da...@gmail.com> on 2013/10/18 22:39:44 UTC

How Does Checkbox Know To Store To My Data Object

I have a Data Object called DownloadBagService which works as a place to hold
the checked files the a user selects.

I have a page that the user are able to select files from and add it to the
DownloadBagService.


When the user checks on files and hits submit. The files appear in the
DownloadBagService "magically".
As you can see my onSubmit contains code that is commented out. How does
Wicket know to put those files in the DownloadBagService?



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How Does Checkbox Know To Store To My Data Object

Posted by dhongyt <da...@gmail.com>.
Sorry I'm using the  tag

        Form<DownloadBagService> form = new
Form<DownloadBagService>("dataForm")
        {
            @Override
            protected void onSubmit()
            {
            }
        };

Basically looks like this.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661907.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How Does Checkbox Know To Store To My Data Object

Posted by Paul Bors <pa...@bors.ws>.
Read section 10.2 "Models and JavaBeans" of the Wicket Guide at:
http://wicket.apache.org/guide/guide/chapter10.html#chapter10_2

>From the code snipet you posted I take it your form or parent of your form
has a CompondPropertyModel which must be feeding your checkbox. Either that,
or you have a model tight to your checkbox.



-----
~ Thank you,
    Paul@Bors.ws
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661947.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How Does Checkbox Know To Store To My Data Object

Posted by meduolis <me...@gmail.com>.
Try to add something like this onSubmit: System.out.println("It's up to date
compiled code running here") and check console if you get this output :).
I think you need to recompile your sources and application. Because this
code snipped does nothing.
I might be wrong, we all do mistakes :)



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661927.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How Does Checkbox Know To Store To My Data Object

Posted by dhongyt <da...@gmail.com>.
I think its an object in my Model?



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661925.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How Does Checkbox Know To Store To My Data Object

Posted by Per Newgro <pe...@gmx.ch>.
Hi david,

there is no code in your email.

Cheers
Per

Am 18.10.2013 22:39, schrieb dhongyt:
> I have a Data Object called DownloadBagService which works as a place to hold
> the checked files the a user selects.
>
> I have a page that the user are able to select files from and add it to the
> DownloadBagService.
>
>
> When the user checks on files and hits submit. The files appear in the
> DownloadBagService "magically".
> As you can see my onSubmit contains code that is commented out. How does
> Wicket know to put those files in the DownloadBagService?
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org