I just read http://www.laliluna.de/first-java-server-faces-tutorial.html

and don't understand one thing:

All action listener methods access the session. Why?

Take a look at the "deleteBook" method, for instance. Instead of passing the
book-ID direktly, its parameter is an event. Why?

I mean, could the listBooks.jsp not simply pass the Book-ID as parameter to
the method so that the parameter of deleteBook would be ID instead of event?

Why is it necessary to access the session in every action listener and pass
them events instead of IDs?

Thanks

Matt

Reply via email to