Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Alex Objelean
I am glad that so many people start to debate in this topic. First of all I need to explain my usecase: it is indeed about a tree... I have a tree containing Roles (hierarchical structure). There is a screen in which the user must select the Roles which he want to assign to a user. The logic

Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Eelco Hillenius
If I were to create that component, I probably would not extend from CheckBox as both the model is semantically different and the rendering is done a different way. Instead, I would extend FormComponent directly. I also would not choose for a model that has true/false/null, which would imo be no

Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Johan Compagner
you don't have to use ajax or somethingthe click can just be a img src tag replace You do need a hidden field and update what value is set on the backend the component should have a renderer something like the IChoiceRenderer where you map the 3 states to your real object that you want in a

Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Eelco Hillenius
On 8/31/06, Johan Compagner [EMAIL PROTECTED] wrote: you don't have to use ajax or something the click can just be a img src tag replace Technically, you don't have to, but as this typically is tree functionality, it is wise - imho - to do so. Furthermore, on a click you should update, as this

Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Johan Compagner
i dont think it is typically a tree functionality i would use such a componentfar most often in another area. Especially required checkboxes..I would like such a more general component (core or extentions) johanOn 8/31/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/31/06, Johan Compagner [EMAIL

Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread Eelco Hillenius
I would like such a more general component (core or extentions) I'm looking forward to whatever you come up with :) Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly

Re: [Wicket-user] Tri-state checkbox

2006-08-31 Thread JasonB
Alex Objelean wrote: The logic is simple: if you check a node - the checked Role is added to the list of selected Roles, otherwise it is removed from the list. At the same time, if you check a child - all the ancestors changes theirs state to intermediate (if their current state is

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Korbinian Bachl
you know what the limits of HTML are suggest you look at w3c.org the HTML specs, and think about a realistic way to solve your business needs. Regards -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Alex Objelean Gesendet:

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Alex Objelean
Well, thank you for your support :)... That's exactly what I needed! Maybe I was not clear enough in my specification. If I would not say that I need a tri-state checkbox, but a formComponent which looks like checkbox (see here:

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Alex Objelean
Unfortunately, the dropDownChoice component does not suite my needs. The ideea with button seems to be a good ideea, why not use just input type=button or button instead of input type=submit... The problem is: should I reuse the Checkbox code by extending it or just extend Form component and

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Korbinian Bachl
compliant and safe for all browsers... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Alex Objelean Gesendet: Mittwoch, 30. August 2006 13:38 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Tri-state checkbox

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Igor Vaynberg
: [Wicket-user] Tri-state checkbox Unfortunately, the dropDownChoice component does not suite my needs. The ideea with button seems to be a good ideea, why not use just input type=button or button instead of input type=submit... The problem is: should I reuse the Checkbox code by extending

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Eelco Hillenius
That's an interesting Widget! How would it work on the server side though... what kind of model would it need. I'd be interested to hear about how you plan to use it. It seems this is a component you'd always use with a tree, correct? If so it would just be a matter of letting the tree render the

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Korbinian Bachl
:18An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Tri-state checkbox too bad the point is not to submit the form on every click so input type="submit" wont work.you need something to carry the value on form submissions so you will need a hidden field. i would

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Igor Vaynberg
- submitting the whole form IMHO is not a big problem Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Igor VaynbergGesendet: Mittwoch, 30. August 2006 18:18An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Tri-state checkbox too bad

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Nick Heudecker
I thought about something like this to represent null/yes/no, but figured it might confuse casual users. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Korbinian Bachl
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor VaynbergGesendet: Mittwoch, 30. August 2006 20:24An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Tri-state checkbox if you havent noticed its 2006 and _javascript_ is as pervasive

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Igor Vaynberg
if you havent noticed its 2006 and _javascript_ is as pervasive as html WRONG !!! - i know companies, that for example have JS disabled at ALL of their systems - we have 2006 and thinking JS is everywhere is same as thinking that no illness exists because you see no ill people on the

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Igor Vaynberg
people (e.g.: blind) the web was made for anyone, not just some tecchies... Regards, Korbinian Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Igor VaynbergGesendet: Mittwoch, 30. August 2006 20:55 An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Korbinian Bachl
very true. Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor VaynbergGesendet: Mittwoch, 30. August 2006 21:20An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Tri-state checkbox all this really depends on the site you are building

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Johan Compagner
the model could be simple:Boolean (null, true false)johanOn 8/30/06, Eelco Hillenius [EMAIL PROTECTED] wrote:That's an interesting Widget! How would it work on the server side though... what kind of model would it need.I'd be interested to hear about how you plan to use it. It seems thisis a

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Eelco Hillenius
But it wouldn't be a direct model, as the indeterminate value would be calculated from children, right? I just wonder whether a seperate component like that would make sense if - as I think - it is something you would only use in a tree. Eelco On 8/30/06, Johan Compagner [EMAIL PROTECTED]

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Johan Compagner
not really.for example if you fill in a form (enquete) that has questionsthen you can have this:Do you think this is bad? Yes/No But the default is nothing (because there is no data) so there is no selection yet.. So the null thing is a not filled in question by the user.johanOn 8/30/06, Eelco

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Eelco Hillenius
Yeah, you thought that up yourself :) I guess that *could* be a valid use case, though it is entirely different than this http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Tri-state_Checkbox.htm component. Eelco On 8/30/06, Johan Compagner [EMAIL PROTECTED] wrote: not really. for

Re: [Wicket-user] Tri-state checkbox

2006-08-30 Thread Eelco Hillenius
On 8/30/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, you thought that up yourself :) I guess that *could* be a valid use case, though it is entirely different than this http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Tri-state_Checkbox.htm component. Where the choice is