Questions tagged [dropdownchoice]

78 questions
1
vote
1 answer

Wicket DropDownChoice saves object to database, instead of field

I have a problem implementing dropdownchoice in my code. I want to display a list of object of type ProductCategory. This is all well and fine, but when i try to save the form, the whole ProductCategory object is saved, and not just the field from…
Troels
  • 57
  • 5
1
vote
1 answer

How to add empty option in ajax

I have data retrieved using AJAX. I need to add an empty option, '-----'. How can I do this? I tried many examples but can't find a way. So this const takes from Django filed form!It is countries, districts, settlement. I need before this data EMPTY…
Ken Ist
  • 79
  • 6
1
vote
1 answer

How to convert the CheckGroup<> to FormComponent for Validation

I have a dropdownchoice and checkbox . Have added code to throw error when none of these are selected by the user onsubmit . CheckGroup billableGroup = new CheckGroup<>(id, new PropertyModel(billableProjects,…
sharonm
  • 75
  • 6
1
vote
1 answer

How to listen to on selected event in choice box javafx

Im using scenebuilder and I have come up with 3 choiceboxes. The second choicebox depends on the input of the first choicebox and the third depends on the 2nd. How can I achieve this? I've tried this @FXML private ChoiceBox …
1
vote
2 answers

Creating a choicelist dialog box with tkinter

I am trying to make using tkinter a function similar to buttonbox of easygui (http://easygui.sourceforge.net/tutorial.html#buttonbox) which I should be able to call from both console and gui applications: from tkinter import * def…
rnso
  • 23,686
  • 25
  • 112
  • 234
1
vote
1 answer

Wicket AjaxFormUpdatingBehavior and Javascript

I have these two DropDownChoice (DDC) objects that work perfectly fine: when one element is chosen from the first DDC, the list for the second gets update with related choices. The first is strumListDDC, the latter is controlListDDC. …
il_boga
  • 1,305
  • 1
  • 13
  • 21
1
vote
1 answer

Wicket DropDownChoice return integer from value

here you see a working example for a wicket DropDownChoice, but this is not what I would like to have. The returned value of the dropdownchoice should be an integer matching the value. The return value of the dropdownchoice is: returnedLabel=123…
chris222
  • 11
  • 2
1
vote
1 answer

JavaFX Update font with ChoiceBox

I have a ScrollPane with text, and I need to update the color & font. The color picker works ok. My problem is with the ChoiceBox for selecting the fonts. It changes when I first select a font, but when I select another option, it will not update…
1
vote
1 answer

How to set context menu width to match choice box

I created ChoiceBox using scene builder 2.0 and attached to IntelliJ Idea and add below code to add item to ChoiceBox in Main class ChoiceBox genderBox = (ChoiceBox)…
lakshman
  • 2,641
  • 6
  • 37
  • 63
1
vote
0 answers

Wicket DropDownChoice Ajax onUpdate getDefaultModelObject null

I have a DropDownChoice which is returning null Ajax update, the model is passed as a List. Here is the code: My intention, of course, is onUpdate, retreive the currently selected group. final List groups =…
Fer
  • 460
  • 2
  • 4
  • 17
1
vote
0 answers

symfony entity choice, is there a way to render multiple drop downs instead of one

I'm trying to render multiple select drop-downs. Here's my actual code I have the formType $builder /*->add('idRolInstitucion') ->add('idOfertaAcademica') ->add('idEstatus')*/ ->add('idOfertaAcademica',…
1
vote
1 answer

Attempt to set model object on null model of component: DropDownChoice

I'm using a wicket Wizard to let the user take multiple steps for a registration. But Somehow I get this error: Last cause: Attempt to set model object on null model of component: wizard:form:view:sprachenDrop WicketMessage: Method…
Peter
  • 1,844
  • 2
  • 31
  • 55
1
vote
2 answers

How to add "onchange" SimpleAttributeModifier to DropDownChoice in Apache Wicket

I want to run a particular javascript when selection is changed in the drop down choice, so I added a simple attribute modifier like this : ddc.add(new SimpleAttributeModifier("onchange", "calc();")); But if I do this, it completely overrides the…
Soumitri Pattnaik
  • 3,246
  • 4
  • 24
  • 42
1
vote
1 answer

Show two fields in Wicket DropDownChoice via ChoiceRenderer

In my DropDownChoice I want to show two fields: Name - Surname DropDownChoice customer = new DropDownChoice( "customer", new PropertyModel(customermodel, "customer"),list, new…
user2025818
1
vote
3 answers

Symfony2 doctrine dropdown menu select choices from related entity

I have two entities: Event and City. And I want to implement create event form. but one of the fields should be dropdown list with the values from database (City entity). currently I have that in my controller: $city = $this->getDoctrine() …
Einius
  • 1,352
  • 2
  • 20
  • 45