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:
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…
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…
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,…
0
votes
1 answer

How to generate Ajax Paging Navigation in Wicket with ListView?

I have a HTML markup for Ajax Paging Navigation like:
BSeitkazin
  • 2,889
  • 25
  • 40
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
0
votes
3 answers

Defining the number of options to be selected from dropdown selection html

Is there a way to limit the number of options the user can select in a multiple select html field like the one below?