[jboss-cvs] jboss-seam/seam-ui-cdk/jboss-seam-ui/src/main/java/org/jboss/seam/ui/handler ...
Peter Muir
peter at bleepbleep.org.uk
Wed Mar 28 08:52:13 EDT 2007
User: pmuir
Date: 07/03/28 08:52:13
Added: seam-ui-cdk/jboss-seam-ui/src/main/java/org/jboss/seam/ui/handler
DecorateHandler.java
Log:
More ui examples, better ant integration for cdk, lots of fixes to button and link
Revision Changes Path
1.1 date: 2007/03/28 12:52:13; author: pmuir; state: Exp;jboss-seam/seam-ui-cdk/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