- All Implemented Interfaces:
- javax.faces.FacesWrapper<javax.faces.view.ViewDeclarationLanguageFactory>
public class SwitchingViewDeclarationLanguageFactory
extends javax.faces.view.ViewDeclarationLanguageFactory
This ViewDeclarationLanguageFactory enables a custom view id to be used (at runtime) in order to force retrieval of a certain VDL to run the current view under. This is helpful, for instance, if you want to test a series of JSP's to ensure that they run in Facelets as well, or if you want to automate a series of tests to run both as JSP's OR as Facelets to ensure consistency of behavior. This Factory simply uses the SwitchingViewDeclarationLanguageConfigurator's forcedViewId (if there is one) in order to retrieve the ViewDeclarationLanguage. The actual page that's run should not be effected.