ICEFaces actions against actionListener

I do not understand the difference between these two methods. I see that the actionListener accepts an ActionEvent as a parameter, but both can be bound to a method in the bean base.

Is the only functional difference to the ActionEvent parameter? So if I need an ActionEvent to use the listener method, if not, will it work?

+3
source share
1 answer

actionListener takes an ActionEvent as a parameter and returns void. The action takes no parameters and returns a string that can be used for navigation.

ActionEvent, , . ActionEvent, actionListener. , .

+6

Source: https://habr.com/ru/post/1712489/


All Articles