[jboss-cvs] jboss-seam/ui/src/main/java/org/jboss/seam/ui/handler ...

Peter Muir peter at bleepbleep.org.uk
Fri Jun 15 13:07:08 EDT 2007


  User: pmuir   
  Date: 07/06/15 13:07:08

  Added:       ui/src/main/java/org/jboss/seam/ui/handler 
                        DecorateHandler.java
  Log:
  Refactor cdk port
  
  Revision  Changes    Path
  1.1      date: 2007/06/15 17:07:08;  author: pmuir;  state: Exp;jboss-seam/ui/src/main/java/org/jboss/seam/ui/handler/DecorateHandler.java
  
  Index: DecorateHandler.java
  ===================================================================
  package org.jboss.seam.ui.handler;
  
  import java.io.IOException;
  
  import javax.el.ELException;
  import javax.faces.FacesException;
  import javax.faces.component.UIComponent;
  
  import com.sun.facelets.FaceletContext;
  import com.sun.facelets.tag.jsf.ComponentConfig;
  import com.sun.facelets.tag.jsf.ComponentHandler;
  
  public class DecorateHandler extends ComponentHandler
  {
     private com.sun.facelets.tag.ui.DecorateHandler delegate;
  
     public DecorateHandler(ComponentConfig config)
     {
        super(config);
        if ( tag.getAttributes().get("template")!=null )
        {
           delegate = new com.sun.facelets.tag.ui.DecorateHandler(config);
        }
     }
     
     @Override
     protected void applyNextHandler(FaceletContext context, UIComponent component) 
        throws IOException, FacesException, ELException
     {
        if ( tag.getAttributes().get("template")!=null )
        {
           delegate.apply(context, component);
        }
        else
        {
           nextHandler.apply(context, component);
        }
     }
  
  }
  
  
  



More information about the jboss-cvs-commits mailing list