JSF SelectOneMenu valueChangeListener
Today I used the following code in one of my projects...(the below is just a pseudo code..)
Inside the bean I had: public void mymethod(ValueChangeEvent ve) { ... ... }
I hoped that changing value on the select menu would fire the method but instead nothing happened...if you are also stuck at this point...change the code as follows:
Notice the onchage attribute that is newly added...this will fire the method...
Hope this helps...
0 comments:
Post a Comment