Hello all,
I have a class that holds two DropDownChoice object.
We have a generic behavior:
According to one DropDown value, we set the list to the other.
Here's a code snippet of the 1st component:
    private DropDownChoice createUniverseDropDown() {
        IModel universesModel = getUniversesmodel();
        DropDownChoice uniDropDown =
                new DropDownChoice("universeSelect", new PropertyModel(this,
"universeName"),
                        universesModel) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    protected boolean localizeDisplayValues() {
                        return true;
                    }
                };
        uniDropDown.add(new AjaxFormComponentUpdatingBehavior("onchange") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                target.addComponent(configurationsDropDown);
            }
        });
        uniDropDown.setRequired(true);
        return uniDropDown;
    }

configurationsDropDown is the other one.

The situation:
We have a page and in that page there's a form with several components, some
buttons and the two DropDown from the special class (they have getters of
course).

The problem:
If the user chose a universe but did not choose a configuration (there's
still the 'choose one'), none of the buttons is submitted.
I have put confDropDown.setNullValid(false); but it did not help.
One of the buttons is CANCEL so I don't need any input and don't mind what
are the values in the components.

Is there any way of a walk through?
Please advise,
-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P Save a tree. Please don't print this e-mail unless it's really necessary

Reply via email to