Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-06-01 Thread GS-ikiini
So i used this method ( check group and check) once then tried to use it again and when and checks won't come up where the objects are already present in the list. for example. you have a list of all colors and i have a list of blue and green. when i look at the check box, blue and green should be

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread GS-ikiini
thank you...I just figured it out..with help from the IRC -B svenmeier wrote: > > CheckGroup selectedPensCheckGroup = new CheckGroup("selectedPens", > selectedPensModel); > add(selectedPensCheckGroup); > ListView pensList = new ListView("pens", pensModel) > { > protected void populateIt

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread Sven Meier
CheckGroup selectedPensCheckGroup = new CheckGroup("selectedPens", selectedPensModel); add(selectedPensCheckGroup); ListView pensList = new ListView("pens", pensModel) { protected void populateItem(ListItem item) { item.add(new Check("check", item.getModel()));

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread GS-ikiini
so this would associate my object with a checkbox? how do i place the select objects in a collection from there? -B svenmeier wrote: > > I'm not sure I fully understand what you're trying to do, but > CheckGroup/Check components are a nice solution for managing the selection > of multiple obj

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread sven
I'm not sure I fully understand what you're trying to do, but CheckGroup/Check components are a nice solution for managing the selection of multiple objects. No need to introduce a boolean property in your domain objects. Please take a look at FormInput.java from wicket examples: CheckGroup chec

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread GS-ikiini
I don't understand that last post can you re phrase please.. -B svenmeier wrote: > > Could it be that you slipped our CheckGroup/Check components? Cannot get > simpler than that. > > Sven > > GS-ikiini wrote: >> this part of the concept i understand...what i don't get is a little >> deepe

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread Sven Meier
Could it be that you slipped our CheckGroup/Check components? Cannot get simpler than that. Sven GS-ikiini wrote: > this part of the concept i understand...what i don't get is a little > deeper...from your example i am accessing a property in input. however, I > don't have such a property in my

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread GS-ikiini
this part of the concept i understand...what i don't get is a little deeper...from your example i am accessing a property in input. however, I don't have such a property in my object. I some how have to figure out if that mode is selected. basically, i want to implement imodel as show in a example

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread Eelco Hillenius
Wicket models are a way to locate values. Let's take a look at wicket.examples.compref.CheckBoxPage. That page has a nested static class called Input, with a property bool: private static class Input implements Serializable { public Boolean bool = Boolean.TRUE;

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread GS-ikiini
ok so i'm trying to implement my own model but i have little idea what i am suppose to be trying to do here. can someone please give a brief overview as to what the getObject, and setObject expects and does please. I am really lost and need some help with this. also how does the model intereact wi

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread GS-ikiini
okI though that was a lower case bmy bad on the not so smart question... -B Eelco Hillenius wrote: > > java.lang.Boolean? > > Eelco > > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> one more thing...i see wehn you implement the IModel class in the thread, >> you >> use a dat

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Eelco Hillenius
java.lang.Boolean? Eelco On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: > > one more thing...i see wehn you implement the IModel class in the thread, you > use a data type called Boolean. What is this? is this something (an enum > class) that you create else wehre? > > -B > > > > igor.vaynberg

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini
one more thing...i see wehn you implement the IModel class in the thread, you use a data type called Boolean. What is this? is this something (an enum class) that you create else wehre? -B igor.vaynberg wrote: > > On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: >> >> >> its saying that you c

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini
Great so i do understand somewhat. I am reading the wiki on models now and its becoming more clear. I thought i knoew but apparently i didn't know the lowlevel workings. If i get stuck i will be seeking more help. Thanks a lot -B igor.vaynberg wrote: > > On 3/26/07, GS-ikiini <[EMAIL PROTECTE

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Igor Vaynberg
On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: its saying that you create a custom model that takes as an argument in the constructor the object/model that you want to tie to a check box. this model is used as the model that we pass to our check box component. the setObject method gets called

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini
I read the thread again and still don't quite understand. I thought i understod models but maybe i don't i am going to read the wiki on that now. but in between this is what i think all the tread is saying tell me if i'm wrong or not. its saying that you create a custom model that takes as an ar

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Igor Vaynberg
if you dont grasp the concepts perhaps you should read the wiki page on models the concept is: since the checkbox works by setting/clearing a boolean the model translates a set boolean->insert into collection and clear boolean->remove from collection. there is explanation there, try to read tha

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini
I don't quite grasp the concepts used in that tread. from what i understand i should create a separate model that takes the model that has to get set(the model that is selected via checkbox) in the object i'm making, and places it in a collection if it is selected. Is this correct? -B igor.vay

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread Igor Vaynberg
please search mail archives before posting http://www.nabble.com/Design-questions%3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510784 -igor On 3/26/07, GS-ikiini <[EMAIL PROTECTED]> wrote: Hey all, I have a list view that contains a list of objects. these objects are selectable

[Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-26 Thread GS-ikiini
Hey all, I have a list view that contains a list of objects. these objects are selectable via checkboxes. My problem is that i don't know how to know or tell my code what objects have been selected. here is what i want to do. i ahve a list of objects lets call them pens. So i have a list of 5 di