com.liferay.faces.bridge.application.view
Class ViewDeclarationLanguageFactoryImpl

java.lang.Object
  extended by javax.faces.view.ViewDeclarationLanguageFactory
      extended by com.liferay.faces.bridge.application.view.ViewDeclarationLanguageFactoryImpl
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.view.ViewDeclarationLanguageFactory>

public class ViewDeclarationLanguageFactoryImpl
extends javax.faces.view.ViewDeclarationLanguageFactory

Author:
Neil Griffin

Constructor Summary
ViewDeclarationLanguageFactoryImpl(javax.faces.view.ViewDeclarationLanguageFactory wrappedFactory)
           
 
Method Summary
 javax.faces.view.ViewDeclarationLanguage getViewDeclarationLanguage(String viewId)
           
 javax.faces.view.ViewDeclarationLanguageFactory getWrapped()
           
protected  javax.faces.view.ViewDeclarationLanguageFactory getWrappedHack()
          There is (what seems to be) a bug in Mojarra such that this factory implementation gets created twice, and subsequently appears in the chain-of-responsibility twice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewDeclarationLanguageFactoryImpl

public ViewDeclarationLanguageFactoryImpl(javax.faces.view.ViewDeclarationLanguageFactory wrappedFactory)
Method Detail

getViewDeclarationLanguage

public javax.faces.view.ViewDeclarationLanguage getViewDeclarationLanguage(String viewId)
Specified by:
getViewDeclarationLanguage in class javax.faces.view.ViewDeclarationLanguageFactory

getWrapped

public javax.faces.view.ViewDeclarationLanguageFactory getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.view.ViewDeclarationLanguageFactory>
Overrides:
getWrapped in class javax.faces.view.ViewDeclarationLanguageFactory

getWrappedHack

protected javax.faces.view.ViewDeclarationLanguageFactory getWrappedHack()
There is (what seems to be) a bug in Mojarra such that this factory implementation gets created twice, and subsequently appears in the chain-of-responsibility twice. Because of this, the second creation causes this class to wrap an instance of this same class! So this method is a hack-workaround to ensure that we're always working with the correct wrapped factory.



Copyright © 2014 Liferay, Inc.. All Rights Reserved.