Re: Palette: how to track which entries in either choices element are selected?
On Wed, December 23, 2009, nino martinez wael wrote: > >From a very vague memory, it has a delimited number of choices in a > string or something (in java script).. Yes, there's a lot of JS stuff involved. But since the Choices class is a FormComponent, should I not - if I attach an OnChangeAjaxBehaviour to the component - be able to get the selected option(s)? I mean, the OnChangeAjaxBehaviour performs all the actions which would normally be performed at form submit, so in principle I should be able to get access to this information without having to fiddle with Javascript, or am I wrong? I already subclassed Choices to add some of my own custom stuff, so I could as well set a default model and implement things like updateModel() and convertInput(), but having done so I find myself unable to find out how to set the right stuff in my code, the request parameters do not seem to contain anything usable... Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Was ist ein Cluster? Wenn vier Bratscher unisono spielen. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Palette: how to track which entries in either choices element are selected?
>From a very vague memory, it has a delimited number of choices in a string or something (in java script).. 2009/12/23 Martin Dietze : > For some very special usecase I need a Palette which allows me > to track via Ajax which entries in either choices element are > selected as long as I have not submitted the form. Just to > clarify things: 'selected' in this context does not denote the > elements in the 'selected' choices element but those options > which the user has selected (with the mouse or keyboard). > > I tried to find out in the debugger how this all works, but it > seems like there's quite a bit of Javascript involved. Maybe > someone out there has already solved this problem and may help > me out with some hint? > > Cheers, > > M'bert > > -- > --- / http://herbert.the-little-red-haired-girl.org / - > =+= > Man moechte ja lieber Auslaender sein als gieriges kleines Inlaenderschwein, > doch wo das eine nicht geht, da faengt das andere an, und das Problem ist, > dass man wo man ist nichts anderes sein kann... > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Palette: how to track which entries in either choices element are selected?
For some very special usecase I need a Palette which allows me to track via Ajax which entries in either choices element are selected as long as I have not submitted the form. Just to clarify things: 'selected' in this context does not denote the elements in the 'selected' choices element but those options which the user has selected (with the mouse or keyboard). I tried to find out in the debugger how this all works, but it seems like there's quite a bit of Javascript involved. Maybe someone out there has already solved this problem and may help me out with some hint? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Man moechte ja lieber Auslaender sein als gieriges kleines Inlaenderschwein, doch wo das eine nicht geht, da faengt das andere an, und das Problem ist, dass man wo man ist nichts anderes sein kann... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org