How to distinguish between events from different OptionGroup components?

Hi,

Probably a simple question, but I’m trying to figure out how to distinguish between events from different OptionGroup components from within a single CustomComponent?

The command:

event.getProperty().getValue()

doesn’ t give a clue from which OptionGroup this selection comes!

Up to this moment no resource found that gives me a hint, sorry!

Regards,
Gerard

Hi!

Could it be an option to just create anonymous inner classes like

        og2.addValueChangeListener(new ValueChangeListener() {
            @Override
            public void valueChange(ValueChangeEvent event) {
                // Events from optionGroup2
            }
        });

otherwise it may be a bit tricky to figure out which component fired the event.

An old thread, but anyway: isn’t event.getProperty() returning the OptionGroup component that also implements Property (like any AbstractSelect/AbstractField does)?