package com.idega.builder.facelets; import java.io.IOException; import java.util.Iterator; import javax.el.ELException; import javax.faces.FacesException; import javax.faces.component.UIComponent; import com.sun.facelets.FaceletContext; import com.sun.facelets.FaceletException; import com.sun.facelets.tag.TagConfig; import com.sun.facelets.tag.TagHandler; import com.sun.facelets.tag.TextHandler; /** * <p> * Implementation of the "value" tag in the IBXML page format * as a Facelets Tag handler * </p> * * @author <a href="tryggvi@idega.is">Tryggvi Larusson </a> * * Last modified: $Date: 2009/01/14 15:35:25 $ by $Author: tryggvil $ * @version 1.0 */ public class PropertyValueTagHandler extends TagHandler{ String value; public PropertyValueTagHandler(TagConfig config) { super(config); Iterator itr = this.findNextByType(TextHandler.class); while (itr.hasNext()) { TextHandler nameChild = (TextHandler) itr.next(); setValue(nameChild.getText()); //if (log.isLoggable(Level.FINE)) { // log.fine(tag + " found PropertyNameTagHandler[" + nameChild + "]"); //} } } public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { //Does nothing except forward to the sub handlers this.nextHandler.apply(ctx, parent); } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }