Fix build breakage on Tomcat.

SECTION: Modified Files
----------------------------
M       jsf-ri/src/main/java/com/sun/faces/application/view/ViewScopeManager.java

- in processEvent(), take no action if we have no contextManager.


git-svn-id: https://svn.java.net/svn/mojarra~svn/branches/MOJARRA_2_2X_ROLLING@13192 761efcf2-d34d-6b61-9145-99dcacc3edf1
https://java.net/jira/browse/JAVASERVERFACES-3250

SECTION: Modified Files
=======================

M       jsf-ri/src/main/java/com/sun/faces/flow/FlowCDIContext.java

- Fix logic error discovered by FindBugs


git-svn-id: https://svn.java.net/svn/mojarra~svn/branches/MOJARRA_2_2X_ROLLING@13193 761efcf2-d34d-6b61-9145-99dcacc3edf1
Another approach to fixing the tomcat build.

SECTION: Modified Files
----------------------------
M       jsf-ri/src/main/java/com/sun/faces/application/view/ViewScopeManager.java

- In the ViewScopeManager() ctor, don't even attempt to instantiate the
  ViewScopeContextManager unless CDI is available.

- make getContextManager() package private because the only user is in
  our same package.

- Don't use getContextManager() locally, use the ivar directly instead,
  checking for it to be null.

M       test/javaee7/cdi/initDestroy/nbactions.xml

- Make it so the Debug Focused Test Method works.


git-svn-id: https://svn.java.net/svn/mojarra~svn/branches/MOJARRA_2_2X_ROLLING@13194 761efcf2-d34d-6b61-9145-99dcacc3edf1
http://java.net/jira/browse/JAVASERVERFACES-3250

- Ensure FlowScoped clustering works on WLS

- Do comprehensive survey of usage of session scope in Mojarra with a
  view toward clustering support.

- Tested with full cluster tests.

- Ran full tests on GlassFish 3.1.2.2 and GlassFish 4.0 before committing.

SECTION: Modified Files
----------------------------
M       jsf-ri/src/main/java/com/sun/faces/config/WebConfiguration.java
M       jsf-ri/src/main/java/com/sun/faces/config/ConfigureListener.java

- Scan the web.xml for <distributable /> and make its presence or
  absence known to the runtime.  This allows us to limit unnecessary
  writes to the session in the case that clustering is not enabled.  I
  assume the only way to add clustering to a web-app is by setting
  <distributable /> in the web.xml.  In other words, I assume there is
  no annotation based way of declaring the web-app is distributable.  If
  this assumption is false, then this commit needs to be reworked.

M       jsf-ri/src/main/java/com/sun/faces/context/ExternalContextImpl.java
M       jsf-ri/src/main/java/com/sun/faces/context/SessionMap.java

- Take advantage of knowing if <distributable /> has been set to disable
  the "don't write to the session if the value is unchanged.  Such an
  optimization is not safe when the value stored in the session is a
  data structure whose contents have changed.

M       jsf-ri/src/main/java/com/sun/faces/flow/FlowHandlerImpl.java
M       jsf-ri/src/main/java/com/sun/faces/flow/FlowCDIContext.java

- Leverage the distributable awareness

M       jsf-ri/src/main/java/com/sun/faces/facelets/tag/ui/UIDebug.java

- Make this safe for clustering.  Because this is a debug component, it
  is safe to do this.

M       jsf-ri/src/main/java/com/sun/faces/application/view/FaceletViewHandlingStrategy.java

- clean up imports.


git-svn-id: https://svn.java.net/svn/mojarra~svn/branches/MOJARRA_2_2X_ROLLING@13195 761efcf2-d34d-6b61-9145-99dcacc3edf1
Fixes https://java.net/jira/browse/JAVASERVERFACES-3260, make sure InitFacesContext is cleaned up when no Faces Servlet is present

git-svn-id: https://svn.java.net/svn/mojarra~svn/branches/MOJARRA_2_2X_ROLLING@13196 761efcf2-d34d-6b61-9145-99dcacc3edf1