org.apache.shale.clay.component.chain
Class AssignViewRootCommand

java.lang.Object
  extended by org.apache.shale.clay.component.chain.AbstractCommand
      extended by org.apache.shale.clay.component.chain.AssignViewRootCommand
All Implemented Interfaces:
Command

public class AssignViewRootCommand
extends AbstractCommand

This Command assigns properties to an existing UIViewRoot. It can only update the renderKit and locale properties. There are two new properties on the view root in JSF 1.2, beforePhaseListener and afterPhaseListener. These two require MethodExpression that is introduced in JSP 2.1. We will have to wait until we can migrate to 1.2 before we can support these attributes. For some reason, these are not wrappered like the ValueBinding is wrapperd by the ValueExpression.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AssignViewRootCommand()
           
 
Method Summary
 boolean execute(Context context)
          If the target componentType is "javax.faces.ViewRoot", assign the property overrides is present.
 
Methods inherited from class org.apache.shale.clay.component.chain.AbstractCommand
getCatalog, getCustomizationCatalog, getMessages, getTagUtils, isValueReference, realizeSymbols, replaceMnemonic, replaceMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignViewRootCommand

public AssignViewRootCommand()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

If the target componentType is "javax.faces.ViewRoot", assign the property overrides is present.

Specified by:
execute in interface Command
Specified by:
execute in class AbstractCommand
Parameters:
context - commons chains context
Returns:
true if the current display element is for the view root; Otherwise, return false to create/update a component.
Throws:
Exception - any error that might terminate processing


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.