Hi Colleagues,

I have DropDownChoice with Integer list.
I need simply to catch selected value (300, 400 or 500). It is not important 
how I will do it.
Selected value will be used in other place of my code.
Can somebody help.

Thank you in advance!

Regards,
Rafal

final LinkedList selectionList = new LinkedList();
        widthSelectionList.add(new Integer(300));
        widthSelectionList.add(new Integer(400));
        widthSelectionList.add(new Integer(500));
  
  Form form = new Form("form");
        add(form);
DropDownChoice selection = new DropDownChoice("selection",selectionList);
        selection.add(new AjaxEventBehavior("onclick") {
                    protected void onEvent(AjaxRequestTarget target) {
                        System.out.println("SELECTION HAS BEEN MADE");
                        }
                });

                selection.setOutputMarkupId(true);
        form.add(selection);


HTML
<form wicket:id="form">
<select wicket:id="pictureWidthSelection">
  <option>300 px</option>
  <option>400 px</option>
  <option>500 px</option>
</select>
     <input type="submit" value="Send to server">
</form>


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to