N
NiallM
Hey, I was wondering if anyone had any idea if it was possible to add an
action listener to a dropdownbean, what I want is when the property is
changed i.e. a item selected, a method is called, different methods for
each options etc. etc.
What I've done is I added a PropertyChangeListener , onto the bean, but it
doesn't seem to be called when I make a selection.
Any idea's? sorry if its a bad explanation. the code snippet follows
private EnumDropDownBean enumProduct;
enumProduct.addPropertyChangeListener(new PropertyChangeListener()
{
public void propertyChanged(PropertyChangeEvent event){
enumChanged();
}
});
}
action listener to a dropdownbean, what I want is when the property is
changed i.e. a item selected, a method is called, different methods for
each options etc. etc.
What I've done is I added a PropertyChangeListener , onto the bean, but it
doesn't seem to be called when I make a selection.
Any idea's? sorry if its a bad explanation. the code snippet follows
private EnumDropDownBean enumProduct;
enumProduct.addPropertyChangeListener(new PropertyChangeListener()
{
public void propertyChanged(PropertyChangeEvent event){
enumChanged();
}
});
}