Skip to main content

Blog Archive for mriem during February 2014

In every JSF application view state is kept either on the client or on the server. How do you make sure this state is smaller? The 'com.sun.faces.compressViewState' comes in handy here. It makes it so that the Mojarra runtime will Gzip compress the view state. Note the context-param is set by default to true, so only if you want to turn it off you will need to do something. In your web.xml file...
Today we are covering what the "com.sun.faces.sendPoweredByHeader" context-param does. Historically the JSF runtime would send the "X-Powered-By" servlet response header that would tell what the backing engine was (for Mojarra 2.2.x it would show "JSF/2.2"). To make it possible to turn this on or off this context-param was introduced. From a security perspective it would be smart to keep it off...
The "com.sun.faces.validateXml" context-param makes it possible for you to have the Mojarra JSF runtime verify your configuration files against the faces-config.xml schema. If an error is found you will immediately be made aware as deployment will fail until you fix the problem. Note when you are ready to go to production the "com.sun.faces.validateXml" context-param should be set to "false". In...
By convention in Faces Flows the page that is the start node has the same name as the flow, but is it possible to change that? It sure is, read on! We'll dive into the Faces configuration file that will make this work. <faces-config version="2.2"              xmlns="http://xmlns.jcp.org/xml/ns/javaee"...