Questions tagged [dropdownchoice]
78 questions
20
votes
2 answers
How to keep "Choose One" option in a DropDownChoice Wicket?
When I first load a page, the default option on a dropdownchoice is "Choose One". Is there a way to keep it in the dropdown, even when I have selected a choice?
(In case I would like to put nothing later)

Sephy
- 50,022
- 30
- 123
- 131
10
votes
5 answers
In the Wicket DropDownChoice how can you replace "Choose one" to another text
I have a DropDownChoice like below:
final DropDownChoice terms = new DropDownChoice("terms", new Model(), new Model(new ArrayList(termDao.findAll())), new IChoiceRenderer() {
public Object getDisplayValue(Term object)…

Gollie
- 169
- 1
- 1
- 8
5
votes
1 answer
Reusable DropDownChoice in Wicket Form
In my project I have more than 50 forms, and they are mostly simillar to each other and use the same DropDownChoice component. May I create separate Panel, where I define my DropDownChoice, and after that I will use that Panel in my another forms?…

BSeitkazin
- 2,889
- 25
- 40
5
votes
2 answers
Wicket - DropDownChoice with object Selected
Im having problem with a DropDownChoice. I have to pre-selected an item but every tutorial and example I have found, only consider a list of primitive type.
I have a list of Object.
class myObject {
private String name;
private String…

MrMime
- 665
- 4
- 10
- 24
5
votes
3 answers
Wicket, how to lazy-load DropDown choices on click?
I have a lot of DropDownChoice components with many items in a form, and on loading the form, I'd like to display only the saved selected options. When the user clicks on a DropDownChoice, I'd like to ajax-load the full item list on the fly.
Can…

Per
- 636
- 5
- 8
4
votes
1 answer
Trying to populate a Jenkins parameter with a list of choices but the parameter stays empty, what could be the reason?
I'm using Jenkins "Extensible Choice" plugin in order to populate a parameter with a list of AWS RDS DB instance names.
In "Choice provider" I chose "System groovy choice parameter".
This is the groovy code which is supposed to return the list of…

Itai Ganot
- 5,873
- 18
- 56
- 99
4
votes
2 answers
Wicket, How can a DropDownChoice select change the options of another DropDownChoice?
Is there something in Wicket to do two drop down choices so that the first selection of the first doprdownchoice changes all the options of the second one?

evilkorona
- 87
- 2
- 10
3
votes
1 answer
Replace "Choose One" with another text programmatically
I need to replace the "Choose One" text in a DropDownChoice with another text programmatically. (I.e. I can't put the replacement text in a .properties file as suggested here.) How do I achieve this?
To give a little context, I have objects that…

aioobe
- 413,195
- 112
- 811
- 826
3
votes
2 answers
Wicket DropDownChoice NOT working correctly with PropertyModels
I have been trying to debug why my DropDownChoice in a simple form with just the DropDown and a Submit Button hasn't been working correctly for hours now.
It has a very weird behaviour. Where the first value selected in the drop down choice is sent…

topriddy
- 71
- 5
2
votes
1 answer
Select a valid choice. 2.6 is not one of the available choices
I have a model with a field having choices in it as given below. I am messing with the DecimalField somehow. And i cannot pass values like 1.7 or 2.6. But it is accepting 1.0 and 2.0 .
Please let me know what am I doing wrong.
class…

Srijwal R
- 552
- 9
- 16
2
votes
1 answer
Select option of choice dropdown in a form
I want to select an option in the dropdown from the controller. I am trying with the following piece of code:
$form = $this->createForm(new SearchAdvancedType());
$form->get('option')->setData($session->get('option'));
But it is doing nothing in…

Iban Arriola
- 2,526
- 9
- 41
- 88
2
votes
2 answers
How to get selected value in Wicket DropDownChoice?
In wicket form I have a DropDownChoice, and I want to take a selected value in it. I have:
private final List specificList;
private DimSpecific specificPtr = null;
...
specificList = roles.getSpecificList();
specificPtr = new…
user2025818
2
votes
2 answers
wicket:how to get dropdownlist selected value in ListView
i have a page,there are some dropdown.when page was load,accord the list,there will show some dropdown.now want to get the dropdownlist selected value in listview,but i can't get the dropdownchoice seleceted value.how can i do to get this…

user1556729
- 21
- 2
2
votes
1 answer
Filtering a ListView in wicket using 2 drop down boxes
I am trying to filter a list that is placed into a listview through the use of 2 drop down boxes.
The first dropdown box is titled price and the second is owner.
I want to be able to select a value in one or more of these drop down boxes and then…

user1383163
- 577
- 1
- 7
- 24
1
vote
1 answer
Wicket DropDownChoice in ListView, no get method defined
Can anybody tell me, why this source
List datas = ~getData();
PropertyListView listView =
new PropertyListView("listView", new PropertyModel
- >(this, "datas")){
private static final long serialVersionUID = 1L;
…

Victor
- 325
- 4
- 12