当前位置: 首页>>代码示例>>Java>>正文


Java FacesUtil.renderChildren方法代码示例

本文整理汇总了Java中com.ibm.xsp.util.FacesUtil.renderChildren方法的典型用法代码示例。如果您正苦于以下问题:Java FacesUtil.renderChildren方法的具体用法?Java FacesUtil.renderChildren怎么用?Java FacesUtil.renderChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.ibm.xsp.util.FacesUtil的用法示例。


在下文中一共展示了FacesUtil.renderChildren方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeBodyContent

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
protected void writeBodyContent(final FacesContext facesContext, final ResponseWriter w, final UIWidgetContainer c) throws IOException {

	// Since there's only one styleClass, we have to store lots in there
	// In this area, search for no-padding and use it if present
	w.startElement("div", c);
	String styleClass = c.getStyleClass();
	if(styleClass != null && styleClass.contains("no-padding")) {
		w.writeAttribute("class", "widget-main no-padding", null);
	} else {
		w.writeAttribute("class", "widget-main", null);
	}

	FacesUtil.renderChildren(facesContext, c);

	if( c.getChildCount() == 0 ){
		boolean isBodyPreventBlank = (Boolean) getProperty(PROP_BODY_PREVENT_BLANK);
		if( isBodyPreventBlank ){
			JSUtil.writeTextBlank(w); //  
		}
	}

	w.endElement("div");
}
 
开发者ID:jesse-gallagher,项目名称:Miscellany,代码行数:25,代码来源:AceWidgetContainerRenderer.java

示例2: writeBodyContent

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeBodyContent(FacesContext context, ResponseWriter w, UIWidgetContainer c) throws IOException {
    FacesUtil.renderChildren(context, c);
    if( c.getChildCount() == 0 ){
        boolean isBodyPreventBlank = (Boolean) getProperty(PROP_BODY_PREVENT_BLANK);
        if( isBodyPreventBlank ){
            JSUtil.writeTextBlank(w); //  
        }
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:10,代码来源:WidgetContainerRenderer.java

示例3: writeHeader

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
protected void writeHeader(FacesContext context, ResponseWriter w, UIWidgetContainer c) throws IOException {
    UIComponent header = c.getFacet(UIWidgetContainer.FACET_HEADER);
    if(header!=null) {
        String tag = (String)getProperty(PROP_TAGHEADER);
        w.startElement(tag, c);

        //TODO Possible bug in extlib WidgetContainer. PROP_CSSHEADER & PROP_CSSSCROLLUP are
        //both set to the same property value (41). Overriding the writeHeader method to fix it here
        //but it may need to be fixed in extlib instead
        String cls = (String)getProperty(PROP_CSSHEADERCLASS);
        if(StringUtil.isNotEmpty(cls)) {
            w.writeAttribute("class", cls, null); // $NON-NLS-1$
        }
        FacesUtil.renderChildren(context, header);
        
        w.endElement(tag);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:20,代码来源:WidgetContainerRenderer.java

示例4: encodeChildren

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
    if( ! component.isRendered() ){
        return;
    }
    FacesUtil.renderChildren(context, component);
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:8,代码来源:InputDateRenderer.java

示例5: writeHeader

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeHeader(FacesContext context, ResponseWriter w, UIWidgetContainer c) throws IOException {
    UIComponent header = c.getFacet(UIWidgetContainer.FACET_HEADER);
    if(header!=null) {
        String tag = (String)getProperty(PROP_TAGHEADER);
        w.startElement(tag, c);
        String cls = (String)getProperty(PROP_CSSHEADER);
        if(StringUtil.isNotEmpty(cls)) {
            w.writeAttribute("class", cls, null); // $NON-NLS-1$
        }
        FacesUtil.renderChildren(context, header);
        
        w.endElement(tag);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:15,代码来源:WidgetContainerRenderer.java

示例6: writeFooter

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeFooter(FacesContext context, ResponseWriter w, UIWidgetContainer c) throws IOException {
    UIComponent footer = c.getFacet(UIWidgetContainer.FACET_FOOTER);
    if(footer!=null) {
        String tag = (String)getProperty(PROP_TAGFOOTER);
        w.startElement(tag, null);
        String cls = (String)getProperty(PROP_CSSFOOTER);
        if(StringUtil.isNotEmpty(cls)) {
            w.writeAttribute("class", cls, null); // $NON-NLS-1$
        }
        FacesUtil.renderChildren(context, footer);
        
        w.endElement(tag);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:15,代码来源:WidgetContainerRenderer.java

示例7: encodeChildren

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
public void encodeChildren(FacesContext context, UIComponent component)
        throws IOException {
    Integer mode = (Integer) HtmlUtil.readEncodeParameter(context,
            component, false);
    if ((mode == FULL) || (mode == AJXCONTENT)) {
        FacesUtil.renderChildren(context, component);
    }
    // if(mode==FRAME) {
    // context.getResponseWriter().write("IN FRAME!");
    // }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:13,代码来源:DojoContentPaneRenderer.java

示例8: encodeChildren

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
public void encodeChildren(FacesContext context) throws IOException {
   	if(isDynamicContent()) {
   		if(!isValidInContext(context)) {
   			return;
   		}
   		FacesUtil.renderChildren(context, this);
   	} else {
   		super.encodeChildren(context);
   	}
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:12,代码来源:UIDynamicControl.java

示例9: encodeChildren

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
    String newRendererType = (String)HtmlUtil.readEncodeParameter(context, component, "newRendererType", /*remove*/false); //$NON-NLS-1$
    Renderer delegate = findDelegate(context, component, newRendererType);
    
    if( delegate.getRendersChildren() ){
        delegate.encodeChildren(context, component);
    }else{
        // else implement here using the default implementation.
        FacesUtil.renderChildren(context, component);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:13,代码来源:InputDateDetectRenderer.java

示例10: writeSubHeader

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeSubHeader(FacesContext context, ResponseWriter w, UIWidgetContainer c) throws IOException {
    UIComponent header = c.getFacet(UIWidgetContainer.FACET_HEADER);
    if(header!=null) {
        w.startElement("div", c); // $NON-NLS-1$
        String clsSection = (String)getProperty(PROP_SECTION_SUBHEADER_CSS);
        if(StringUtil.isNotEmpty(clsSection)) {
            w.writeAttribute("class", clsSection, null); // $NON-NLS-1$
        }
        
        // Manage the section state
        boolean closed = c.isClosed();
        if(closed){
            w.writeAttribute("style", _DISPLAY_NONE, null);  // $NON-NLS-1$
        } else {
            w.writeAttribute("style", _DISPLAY_BLOCK, null);  // $NON-NLS-1$
        }
        
        String tag = (String)getProperty(PROP_TAGHEADER);
        w.startElement(tag, c);
        String clsSubheader = (String)getProperty(PROP_CSSSUBHEADER);
        if(StringUtil.isNotEmpty(clsSubheader)) {
            w.writeAttribute("class", clsSubheader, null); // $NON-NLS-1$
        }
        FacesUtil.renderChildren(context, header);
        //close header tag
        w.endElement(tag);
        //close sub-header section
        w.endElement("div"); // $NON-NLS-1$
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:31,代码来源:OneUIv302WidgetContainerRenderer.java

示例11: writeSummary

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
protected void writeSummary(FacesContext context, ResponseWriter w,
        AbstractDataView c, ViewDefinition viewDef) throws IOException {
    if (viewDef.summaryColumn == null && viewDef.summaryFacet == null) {
        return;
    }
    // Add the enclosing tag
    if (viewDef.summaryFacet == null) {
        w.startElement("div", c); // $NON-NLS-1$
        String styleClass = ExtLibUtil.concatStyleClasses(
                (String) getProperty(PROP_SUMMARYCOLSTYLECLASS),
                viewDef.summaryColumn.getStyleClass());
        if (StringUtil.isNotEmpty(styleClass)) {
            w.writeAttribute("class", styleClass, null); // $NON-NLS-1$
        }
        String style = ExtLibUtil.concatStyles(
                (String) getProperty(PROP_SUMMARYCOLSTYLE),
                viewDef.summaryColumn.getStyle());
        if (StringUtil.isNotEmpty(style)) {
            w.writeAttribute("style", style, null); // $NON-NLS-1$
        }
        writeColumnValue(context, w, c, viewDef, viewDef.summaryColumn);
        w.endElement("div"); // $NON-NLS-1$
    }
    else {
        // Write the content column
        FacesUtil.renderChildren(context, viewDef.summaryFacet);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:30,代码来源:MobileViewRenderer.java

示例12: writeCategory

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeCategory(FacesContext context, ResponseWriter w,
        AbstractDataView c, ViewDefinition viewDef) throws IOException {

    int categoryListIndex = findCategoryListIndex(context, c, viewDef,
            viewDef.categoryColumns);
    CategoryColumn categoryColumn = (-1 == categoryListIndex) ? null
            : viewDef.categoryColumns.get(categoryListIndex);
    if (null == categoryColumn) {
        return;
    }

    UIComponent categoryFacet = getCategoryRowFacet(c, categoryListIndex);

    // Add the enclosing tag
    if (categoryFacet == null) {
        w.startElement("div", c); // $NON-NLS-1$
        String styleClass = ExtLibUtil.concatStyleClasses(
                (String) getProperty(PROP_EXTRACOLSTYLECLASS),
                categoryColumn.getStyleClass());
        if (StringUtil.isNotEmpty(styleClass)) {
            w.writeAttribute("class", styleClass, null); // $NON-NLS-1$
        }
        String style = ExtLibUtil.concatStyles(
                (String) getProperty(PROP_EXTRACOLSTYLE),
                categoryColumn.getStyle());
        if (StringUtil.isNotEmpty(style)) {
            w.writeAttribute("style", style, null); // $NON-NLS-1$
        }
        writeColumnValue(context, w, c, viewDef, categoryColumn);
        w.endElement("div"); // $NON-NLS-1$
    }
    else {
        // Write the content column
        FacesUtil.renderChildren(context, categoryFacet);
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:37,代码来源:MobileViewRenderer.java

示例13: encodeChildrenOriginal

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
public void encodeChildrenOriginal(FacesContext context, UIComponent component) throws IOException {
    FacesUtil.renderChildren(context, component);
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:4,代码来源:DialogRenderer.java

示例14: writeChildren

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeChildren(FacesContext context, ResponseWriter w, UIDialogContent dialogContent) throws IOException {
    FacesUtil.renderChildren(context, dialogContent);
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:4,代码来源:DialogContentRenderer.java

示例15: writeChildren

import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeChildren(FacesContext context, ResponseWriter w, UIDialogButtonBar dialogBar) throws IOException {
    FacesUtil.renderChildren(context, dialogBar);
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:4,代码来源:DialogButtonBarRenderer.java


注:本文中的com.ibm.xsp.util.FacesUtil.renderChildren方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。