本文整理汇总了Java中com.ibm.xsp.util.FacesUtil.renderComponent方法的典型用法代码示例。如果您正苦于以下问题:Java FacesUtil.renderComponent方法的具体用法?Java FacesUtil.renderComponent怎么用?Java FacesUtil.renderComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ibm.xsp.util.FacesUtil
的用法示例。
在下文中一共展示了FacesUtil.renderComponent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeAuthorMeta
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
protected void writeAuthorMeta(final FacesContext context, final ResponseWriter w, final UIForumPost c, final UIComponent facet) throws IOException {
w.startElement("div", null); // div.name
String styleClass = (String)getProperty(PROP_AUTHORMETACLASS);
if(StringUtil.isNotEmpty(styleClass)) {
w.writeAttribute("class", styleClass, null);
}
String style = (String)getProperty(PROP_AUTHORMETASTYLE);
if(StringUtil.isNotEmpty(style)) {
w.writeAttribute("style", style, null);
}
FacesUtil.renderComponent(context, facet);
w.endElement("div");
}
示例2: writePostDetails
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
protected void writePostDetails(final FacesContext context, final ResponseWriter w, final UIForumPost c, final UIComponent facet) throws IOException {
w.startElement("div", null); // div.name
String styleClass = (String)getProperty(PROP_POSTDETAILSCLASS);
if(StringUtil.isNotEmpty(styleClass)) {
w.writeAttribute("class", styleClass, null);
}
String style = (String)getProperty(PROP_POSTDETAILSSTYLE);
if(StringUtil.isNotEmpty(style)) {
w.writeAttribute("style", style, null);
}
FacesUtil.renderComponent(context, facet);
w.endElement("div");
}
示例3: writeRightColumn
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
//TODO the small size fix has been applied to super class
// if that is delivered, we can delete this method
protected void writeRightColumn(FacesContext context, ResponseWriter w, UIApplicationLayout c, int size, BasicApplicationConfigurationImpl configuration) throws IOException {
UIComponent right = c.getRightColumn();
if (!isEmptyComponent(right)) {
w.startElement("div", c); // $NON-NLS-1$
String mdCol = (String)getProperty(PROP_COLUMN_MEDIUM);
String smCol = (String)getProperty(PROP_COLUMN_SMALL);
String columnClass = ExtLibUtil.concatStyleClasses(mdCol + size, smCol + (size+1));
w.writeAttribute("class", ExtLibUtil.concatStyleClasses(columnClass, "applayout-column-right"), null); // $NON-NLS-1$ $NON-NLS-2$
FacesUtil.renderComponent(context, right);
w.endElement("div"); // $NON-NLS-1$
}
}
示例4: writeDetail
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
@Override
protected void writeDetail(FacesContext context, ResponseWriter w,
AbstractDataView c, ViewDefinition viewDef) throws IOException {
UIComponent detail = viewDef.detailFacet;
if (detail != null) {
String id = c.getClientId(context) + ID_DETAIL;
w.startElement("div", c); // $NON-NLS-1$
w.writeAttribute("id", id, null); // $NON-NLS-1$
String styleClass = (String) getProperty(PROP_SUMMARYCOLTEXTSTYLECLASS);
if (StringUtil.isNotEmpty(styleClass)) {
w.writeAttribute("class", styleClass, null); // $NON-NLS-1$
}
String style = viewDef.summaryColumn != null ? viewDef.summaryColumn
.getStyle() : null;
if (StringUtil.isNotEmpty(style)) {
w.writeAttribute("style", style, null); // $NON-NLS-1$
}
FacesUtil.renderComponent(context, detail);
w.endElement("div"); // $NON-NLS-1$
}
}
示例5: writePostTitle
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writePostTitle(FacesContext context, ResponseWriter w, UIForumPost c, UIComponent facet) throws IOException {
if(facet==null) {
return;
}
w.startElement("div", c); // $NON-NLS-1$
String style = (String)getProperty(PROP_POSTTITLESTYLE);
if(StringUtil.isNotEmpty(style)) {
w.writeAttribute("style", style, null); // $NON-NLS-1$
}
String styleClass = (String)getProperty(PROP_POSTTITLECLASS);
if(StringUtil.isNotEmpty(styleClass)) {
w.writeAttribute("class", styleClass, null); // $NON-NLS-1$
}
FacesUtil.renderComponent(context, facet);
w.endElement("div"); // $NON-NLS-1$
}
示例6: writePostMeta
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writePostMeta(FacesContext context, ResponseWriter w, UIForumPost c, UIComponent facet) throws IOException {
if(facet==null) {
return;
}
w.startElement("div", c); // $NON-NLS-1$
String style = (String)getProperty(PROP_POSTMETASTYLE);
if(StringUtil.isNotEmpty(style)) {
w.writeAttribute("style", style, null); // $NON-NLS-1$
}
String styleClass = (String)getProperty(PROP_POSTMETACLASS);
if(StringUtil.isNotEmpty(styleClass)) {
w.writeAttribute("class", styleClass, null); // $NON-NLS-1$
}
FacesUtil.renderComponent(context, facet);
w.endElement("div"); // $NON-NLS-1$
}
示例7: writePostDetails
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writePostDetails(FacesContext context, ResponseWriter w, UIForumPost c, UIComponent facet) throws IOException {
if(facet==null) {
return;
}
w.startElement("div", c); // $NON-NLS-1$
String style = (String)getProperty(PROP_POSTDETAILSSTYLE);
if(StringUtil.isNotEmpty(style)) {
w.writeAttribute("style", style, null); // $NON-NLS-1$
}
String styleClass = (String)getProperty(PROP_POSTDETAILSCLASS);
if(StringUtil.isNotEmpty(styleClass)) {
w.writeAttribute("class", styleClass, null); // $NON-NLS-1$
}
FacesUtil.renderComponent(context, facet);
w.endElement("div"); // $NON-NLS-1$
}
示例8: writeMastFooter
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeMastFooter(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
UIComponent mastFooter = c.getMastFooter();
if(!isEmptyComponent(mastFooter)) {
if(DEBUG) {
w.writeComment("Start Mast Footer"); // $NON-NLS-1$
newLine(w);
}
FacesUtil.renderComponent(context, mastFooter);
if(DEBUG) {
w.writeComment("End Mast Footer"); // $NON-NLS-1$
newLine(w);
}
}
}
示例9: writeHeaderMiddle
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeHeaderMiddle(FacesContext context, ResponseWriter w, AbstractDataView c, ViewDefinition viewDef, UIComponent facet) throws IOException {
if(facet!=null) {
String tag = (String)getProperty(PROP_FACETTAG);
if(StringUtil.isNotEmpty(tag)) {
startElement(w, tag, PROP_HEADERMIDDLESTYLE, PROP_HEADERMIDDLECLASS, null);
}
FacesUtil.renderComponent(context, facet);
if(StringUtil.isNotEmpty(tag)) {
w.endElement(tag);
}
newLine(w);
}
}
示例10: writeNoRowsContent
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeNoRowsContent(FacesContext context, ResponseWriter w, AbstractDataView c, ViewDefinition viewDef) throws IOException {
UIComponent noRowsFacet = c.getFacet(AbstractDataView.FACET_NOROWS);
if( null != noRowsFacet) {
String tag = (String)getProperty(PROP_FACETTAG);
if(StringUtil.isNotEmpty(tag)) {
startElement(w, tag, null, PROP_NOROWSCLASS, null);
}
FacesUtil.renderComponent(context, noRowsFacet);
if(StringUtil.isNotEmpty(tag)) {
w.endElement(tag);
}
newLine(w);
}
}
示例11: dialogEncodeChildren
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
public void dialogEncodeChildren(FacesContext context, UIComponent component) throws IOException {
// The UIDialog.PopupContent can add dynamically add some children to the dialog (EventHandler),
// which means that the collection size can change. We cannot then use the FacesUtil.renderChildren
// method as it assumes that the number of children is constant.
List<?> children = component.getChildren();
for (int i=0; i<children.size(); i++) {
UIComponent child = (UIComponent)children.get(i);
FacesUtil.renderComponent(context, child);
}
}
示例12: writeChild
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeChild(FacesContext context, ResponseWriter w, UIList c, UIComponent child, boolean first, boolean last) throws IOException {
String tag = (String)getProperty(PROP_ITEMTAG);
if(StringUtil.isNotEmpty(tag)) {
w.startElement(tag,c);
writeItemAttributes(context, w, c, child, first, last);
newLine(w);
}
FacesUtil.renderComponent(context, child);
if(StringUtil.isNotEmpty(tag)) {
w.endElement(tag);
newLine(w);
}
}
示例13: writeRightColumn
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeRightColumn(FacesContext context, ResponseWriter w, UIApplicationLayout c, int size, SimpleResponsiveApplicationConfiguration configuratio, boolean collapseLeftColumnn) throws IOException {
UIComponent right = c.getRightColumn();
UIComponent left = c.getLeftColumn();
if (!isEmptyComponent(right)) {
w.startElement("div", c); // $NON-NLS-1$
w.writeAttribute("class", getRightColumnClasses(!isEmptyComponent(left), collapseLeftColumnn) + " applayout-column-right", null); // $NON-NLS-1$ $NON-NLS-2$
FacesUtil.renderComponent(context, right);
w.endElement("div"); // $NON-NLS-1$
newLine(w);
}
}
示例14: renderChildren
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void renderChildren(FacesContext context, UIComponent component) throws IOException {
// encode component and children
int count = component.getChildCount();
if (count > 0) {
List<?> children = component.getChildren();
for (int i = 0; i < count; i++) {
UIComponent child = (UIComponent) children.get(i);
if (isRenderChild(context, child)) {
FacesUtil.renderComponent(context, child);
}
}
}
}
示例15: writeRightColumn
import com.ibm.xsp.util.FacesUtil; //导入方法依赖的package包/类
protected void writeRightColumn(FacesContext context, ResponseWriter w, UIApplicationLayout c, BasicApplicationConfigurationImpl configuration) throws IOException {
UIComponent right = c.getRightColumn();
if(!isEmptyComponent(right)) {
if(DEBUG) {
w.writeComment("Start Right Column"); // $NON-NLS-1$
newLine(w);
}
String columnLastTag = (String)getProperty(PROP_COLUMNLASTTAG);
if( StringUtil.isNotEmpty(columnLastTag) ){
w.startElement(columnLastTag,c);
w.writeAttribute("role", "region", null); // $NON-NLS-1$ $NON-NLS-2$
String rightColumnLabel = configuration.getRightColumnLabel();
if (StringUtil.isNotEmpty(rightColumnLabel)) {
w.writeAttribute("aria-label", rightColumnLabel, null); // $NON-NLS-1$
}
String columnLastClass = (String)getProperty(PROP_COLUMNLASTCLASS);
if(StringUtil.isNotEmpty(columnLastClass) ){
w.writeAttribute("class",columnLastClass,null); // $NON-NLS-1$
}
writeRightColumnExtraAttributes(context, w, c, configuration);
}
FacesUtil.renderComponent(context, right);
if( StringUtil.isNotEmpty(columnLastTag) ){
w.endElement(columnLastTag);
newLine(w);
}
if(DEBUG) {
w.writeComment("End Right Column"); // $NON-NLS-1$
newLine(w);
}
}
}