|
JSF has some nice features for event notification (and redirection) whereIt's interesting that you present these together. Personally, I love the ability to link a button to a method, and absolutely despise the idea of returning a value which is compared to an XML file to determine the next page. Me, I'd rather the program was able to determine the next page directly and forward to it, especially if it needed to add parms to the URL. In JSP, you do this with getRequestDispatcher().forward() call and I've always loved that technique. I mean, if you really want to use a configuration file, then by all means have a method that accesses the configuration file and returns a URL and then forward to it. But I've always hated (loathed, despised) the idea of an application configuration file.
you can simply tie a button to a Java method and when clicked it goes right
to that method. From there the Java programmer has access to globally
defined variables (where I store my state sometimes) and can determine where
to go next based on the string value returned from the method (i.e. return
"success" will check the faces config file for a mapping of the literal
"success" to an actual page name like page123.jsp)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.