本文整理汇总了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");
}
示例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); //
}
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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!");
// }
}
示例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);
}
}
示例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);
}
}
示例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$
}
}
示例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);
}
}
示例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);
}
}
示例13: encodeChildrenOriginal
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
public void encodeChildrenOriginal(FacesContext context, UIComponent component) throws IOException {
FacesUtil.renderChildren(context, component);
}
示例14: writeChildren
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeChildren(FacesContext context, ResponseWriter w, UIDialogContent dialogContent) throws IOException {
FacesUtil.renderChildren(context, dialogContent);
}
示例15: writeChildren
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeChildren(FacesContext context, ResponseWriter w, UIDialogButtonBar dialogBar) throws IOException {
FacesUtil.renderChildren(context, dialogBar);
}