Am 15.04.2011 15:55, schrieb tech7:
Any suggestion?
-
Wicket-Java
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html
Sent from the Users forum mailing list archive at Nabble.com
Any suggestion?
-
Wicket-Java
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html
Sent from the Users forum mailing list archive at Nabble.com
Hello!
I got confused on what is the intended behavior of the dropdownchoice
with integers.
I wanted to create a dropdownchoice, which would list a range of
integers for user to select.
It seems to me, that if I call the setType(Integer.class), then it
changes the way it is processed when I subm
Object object,
>>> int index) {
>>> return
>>> ((Device)object).getDeviceID();
>>> }
>>> });
>>>
>>>
return
>> ((Device)object).getDeviceID();
>> }
>> });
>>
>> add(ddc);
>> }
>>
>> I also have a simple "Device" PO
}
>
> I also have a simple "Device" POJO class with getters and setters.
> The HTML looks like that:
>
> ...
>
>
>
>Select Device
>
>Some device
>
>
>
>
>
>
>
like that:
>
> ...
>
>
>
> Select Device
>
> Some device
>
>
>
>
>
>
>
> ...
>
>
>
> Any ideas what i'm doing wrong?
>
>
--
View this message in context:
http://www.nabble.com/p
add(ddc);
}
I also have a simple "Device" POJO class with getters and setters.
The HTML looks like that:
...
Select Device
Some device
...
Any ideas what i'm doing wrong?
--
View this message in context:
Great you figured it out!
Some problems have simple solutions...
Regards,
Daan
On 17 sep 2008, at 16:07, Anders Peterson wrote:
Isn't it always like this; as soon as you ask someone you start
thinking about the problem differently. Or should I say you start
thinking straight. The problem w
Isn't it always like this; as soon as you ask someone you start thinking
about the problem differently. Or should I say you start thinking
straight. The problem was, of course, with the equals-method of the
listed objects (two instances of that class would never be equal).
Thanks for being the
This is the code that creates the DropDownChoice:
myForm.add(new DropDownChoice("views",
this.getPortfolio().getViews(), new
ChoiceRenderer("toDisplayString")) {
@Override
protected void onSelectionChanged(BLView newSelection) {
super.onSelectionChange
On 17 sep 2008, at 14:55, Anders Peterson wrote:
My DropDownChoice always displays as if nothing is selected. Using
it works fine, but every time the page is (re)loaded the selection
is reset.
wantOnSelectionChangedNotifications return true.
I have an older version of my app deployed (usin
My DropDownChoice always displays as if nothing is selected. Using it
works fine, but every time the page is (re)loaded the selection is reset.
wantOnSelectionChangedNotifications return true.
I have an older version of my app deployed (using an older version of
Wicket) that works as expected.
odelObject(null);
> target.addComponent(dropDown2);
> }
>
--
View this message in context:
http://www.nabble.com/Problem-with-DropDownChoice-and-AjaxFormComponentUpdatingBehavior-tf4394596.html#a12561183
Sent from the Wicket - User mailing li
use PropertyModels.
> > > >
> > > > This all works fine until the form is submitted and validation fails.
> > In
> > > > this (normal) situation the form is still visible, with the feedback
> > > > messages displayed, but the 2nd and 3rd DropDo
uation the form is still visible, with the feedback
> > > messages displayed, but the 2nd and 3rd DropDownChoices no longer
> react to
> > > the first DropDownChoice. I have verified that the properties on which
> > > DropDownChoices depend are being correctly set.
still visible, with the feedback
> > messages displayed, but the 2nd and 3rd DropDownChoices no longer react to
> > the first DropDownChoice. I have verified that the properties on which
> > DropDownChoices depend are being correctly set.
> >
> > Is there anything I ca
s,
> Julian
>
> --
> View this message in context:
> http://www.nabble.com/Problem-with-DropDownChoice-and-AjaxFormComponentUpdatingBehavior-tf4394596.html#a12531138
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
longer react to
> > the first DropDownChoice. I have verified that the properties on which
> > DropDownChoices depend are being correctly set.
> >
> > Is there anything I can do to make them behave properly? Any help is
> > appreciated.
> >
>
nd are being correctly set.
>
> Is there anything I can do to make them behave properly? Any help is
> appreciated.
>
> Thanks,
> Julian
>
> --
> View this message in context:
> http://www.nabble.com/Problem-with-DropDownChoice-and-AjaxFormComponentUpdat
rectly set.
Is there anything I can do to make them behave properly? Any help is
appreciated.
Thanks,
Julian
--
View this message in context:
http://www.nabble.com/Problem-with-DropDownChoice-and-AjaxFormComponentUpdatingBehavior-tf4394596.html#a12531138
Sent from the Wicket - User mailing list
21 matches
Mail list logo