insights2jsf.wordpress.com
using a custom Lifecycle implementation to handle Exceptions in JSF 1.2 | Insights into Java Server Faces
https://insights2jsf.wordpress.com/2009/07/20/using-a-custom-lifecycle-implementation-to-handle-exceptions-in-jsf-1-2
Insights into Java Server Faces. Using a custom Lifecycle implementation to handle Exceptions in JSF 1.2. 8212; Tags: JSF-1.2. 8212; Hanspeter @ 22:48. JSF processes all requests in 6 phases along a defined lifecycle – exceptions might be thrown from any of these phases. With a custom Lifecycle we can wrap the standard Lifecycle to intercept these Exceptions and handle them as wanted. In the CustomLifecycleFactory we use again the delegating factory constructor (see previous post about FactoryFinder and ...
insights2jsf.wordpress.com
Suppress second execution of buildView() as performane improvement when using Facelets views | Insights into Java Server Faces
https://insights2jsf.wordpress.com/2013/01/14/suppress-second-execution-of-buildview-as-performane-improvement-when-using-facelets-views
Insights into Java Server Faces. Suppress second execution of buildView() as performane improvement when using Facelets views. 8212; Hanspeter @ 21:58. With conditional includes or templates it is possible the include or template changes after RESTORE VIEW and before RENDER RESPONSE phase. Conditional include or conditional template is a result of using:. C:if test=”…” around a ui:include src=”…”. EL expression in the ui:include src=”#{expression.to.source}”. I created a little project on github – ...
insights2jsf.wordpress.com
Combine multiple properties files into one ResourceBundle | Insights into Java Server Faces
https://insights2jsf.wordpress.com/2010/01/04/combine-multiple-properties-files-into-one-resourcebundle-2
Insights into Java Server Faces. Combine multiple properties files into one ResourceBundle. 8212; Hanspeter @ 20:54. Sometimes it would be nice to combine multiple properties files into one single ResourceBundle. For example, a part of the resources is provided by some library and another part of the resources should be provided by the application using that library. Public class ExampleResourceBundle extends MultiplePropertiesResourceBundle { public ExampleResourceBundle() { super("example"); } }. On ev...
insights2jsf.wordpress.com
MultiValidator component allows validation across multiple input fields | Insights into Java Server Faces
https://insights2jsf.wordpress.com/2009/08/06/multivalidator-component-allows-validation-across-multiple-input-fields
Insights into Java Server Faces. MultiValidator component allows validation across multiple input fields. 8212; Tags: JSF-1.2. 8212; Hanspeter @ 22:52. JSF provides validation, you can even attach multiple validators to a single input component. But it does not (yet? Support validation across multiple input components. To address this shortcoming we developed a MultiValidator component. Why would we need a MultiValidator? MultiValidator extends from UIComponentBase and overrides processValidation to hand...