Questions tagged [dropdownchoice]
78 questions
0
votes
2 answers
Wicket - form components losing reference when PropertyModel is updated
I have a form with some fields and DropdownChoices. One of them is filled dynamically: when the State is filled, City dropdown is updated, and that's ok until here.
Dropdowns filled dynamically (I'm using hibernate as ORM):
// in my form…

tomrlh
- 1,006
- 1
- 18
- 39
0
votes
1 answer
Javafx add a dropdown event listener for choicebox
I have a ChoiceBox and I want to refresh it's content whenever user expands it. I haven't found a proper listener for this. All the stuff google gives is related to handling ChangeValue events.
I reckon I should add eventListener to…

Quipex
- 37
- 2
- 10
0
votes
2 answers
Wicket - how to use SelectOption with DropDownChoice?
I have a single setting that I want to use in multiple locations. I need to get and set an Integer value: 0, 1, 2, -1. The displayed string are not stored.
Fragment of the html:

JoeAB
- 53
- 9
0
votes
1 answer
Symfony2 - ChoiceType - get choice list from JSON without JS
I have a JSON file with all world languages and would like to put them into choices array inside ChoiceType form field.
$builder->add('languages', ChoiceType::class, array(
'choices' => array()
))
My JSON file is stored:…

Ignas Damunskis
- 1,515
- 1
- 17
- 44
0
votes
1 answer
Wicket 7 - Select, SelectOptions and pre-set
Im using Select instead of DropDownChoice to use OPTGROUP.
Select roleInput = new Select("role", new PropertyModel(this,"selectedRole"));
The two list of Role are:
SelectOptions fedOptions = new…

RetroMime
- 387
- 1
- 8
- 23
0
votes
1 answer
Getting errors whenever I click on the choicebox
I created a ChoiceBox object called backgroundChoiceBox. I added the following code to my controller class:
@FXML
private ChoiceBox backgroundChoiceBox = new ChoiceBox<>();
In the initialize method, I added these two lines of…

Michael
- 3,093
- 7
- 39
- 83
0
votes
1 answer
Select2 Choice Box not working when dynamically load
Currently I a using Bootstrap Metronic theme and in that i am using Select2 Choice. This works when input type text used as "hidded". Syntax for it is

Ritesh Paliwal
- 3
- 6
0
votes
2 answers
Rock Paper Scissors Lizard Spock in java
Doing a project for class and I tried to do it a different way from what the professor ended up doing. When compiling I get:
RPSLS.java:65: error: incompatible types: Object cannot be converted to int
switch (userChoice){
^
1…

Jaskal
- 37
- 1
- 9
0
votes
2 answers
dropdownchoice with choicerenderer, how to get values
i have problem trying to get some values. this is my situation (wicket)
i have a dropdownchoice study_template, i don't have problem populating the DDC, the problem is when i try to get some value (id or name). this is the code
ChoiceRenderer…
0
votes
2 answers
how to do different things with each droplist chioce? HTML
I am creating tax calculator and when the user chooses an option from the drop list choices i want to create a way that each choice will do a different formula in my function. so if the user picks choice 1 it will do formula 1, if they choose option…

user3630455
- 1
- 4
0
votes
0 answers
Transient wicket form field ignored
so I have an entity called "User"
@Entity(name = "user")
@Audited
public class User extends DataObjectAudit {
private static final long serialVersionUID = 1L;
private Set roles = new…

diminuta
- 1,545
- 8
- 32
- 55
0
votes
1 answer
WicketMessage: Null object returned for expression: issueObject.name for setting value: prinsenpark 11
I have changed DropDownChoice field to AutoCompleteTextField and getting above error.
Before, DropDownChoice was like,
DropDownChoice ddcObject = new DropDownChoice("myObjectName", new PropertyModel(mynewModel,…

user3506926
- 31
- 7
0
votes
1 answer
How to generate Ajax Paging Navigation in Wicket with ListView?
I have a HTML markup for Ajax Paging Navigation like:
0
votes
2 answers
Change DropDownChoice to ListView in Wicket
I need to change in CustomPagingPanel DropDownChoice where I collect information about paging like [1-50], [51-100], to ListView.So I have a code:
// Ajax DropDownChoice used as Page navigator
pagingDropDownChoice = new…

BSeitkazin
- 2,889
- 25
- 40