Application application = context.getApplication(); HtmlOutputText heading = (HtmlOutputText) application.createComponent( HtmlOutputText.COMPONENT_TYPE ); heading.setId( FacesUtils.createUniqueId() ); heading.setStyle( mStyle ); heading.setStyleClass( mStyleClass );
Application application = context.getApplication(); HtmlOutputText heading = (HtmlOutputText) application.createComponent( HtmlOutputText.COMPONENT_TYPE ); heading.setId( FacesUtils.createUniqueId() ); heading.setStyle( mStyle ); heading.setStyleClass( mStyleClass );
/** * Sets the label. * * @param jsfContext * The context. * @param label * The label. */ private void setLabel(final RenderContext jsfContext, final String label) { this.label = new HtmlOutputText(); this.label.setId(VariableUtil.compileName("label_", jsfContext.getPrefixDeque())); this.label.setValue(label); this.label.setStyleClass(jsfContext.resolveStyleClass(JsfStyleClasses.TABLE_OUTPUT_LABEL)); }
/** {@inheritDoc} */ @Override public void build(final PropertyDescriptor<P, E> property, final RenderContext context) { Validate.notNull(property, "Descriptor may not be null."); Validate.notNull(context, "Render context may not be null."); final Deque<PropertyDescriptor<?, ?>> prefixes = context.getPrefixDeque(); this.buildLabel(property, context); this.buildMessages(property, context); this.input = new HtmlOutputText(); this.addValue(this.input, prefixes, property, context); this.input.setId(this.compileInputName(prefixes)); this.input.setStyleClass(context.resolveStyleClass(JsfStyleClasses.FORM_INPUT_ROTEXT)); final PresentationPropertyDescriptor<?, ?> presentationProperty = property.adapt(PresentationPropertyDescriptor.class); String format = null; if (!CheckUtil.isNull(presentationProperty)) { format = presentationProperty.getFormat(); } if (!CheckUtil.isNull(format)) { final HtmlFormat htmlFormat = new HtmlFormat(); htmlFormat.setFormat(format); this.input.getFacets().put("format", htmlFormat); } }
= (HtmlOutputText)application.createComponent(HtmlOutputText.COMPONENT_TYPE); text.setValue(content); text.setId(component.getId() + "_" + valueForLink.getTime() + "_text"); text.setTransient(true);
headerText.setId( FacesUtils.createUniqueId() ); headerText.setValue( "<div></div>" ); headerText.setEscape( false );
headerText.setId( FacesUtils.createUniqueId() ); headerText.setValue( metawidget.getLabelString( columnAttributes ) ); column.setHeader( headerText );
headerText.setId( FacesUtils.createUniqueId() ); headerText.setValue( "<div></div>" ); headerText.setEscape( false );
uiText.setId(scroller.getId() + id + "_text"); uiText.setTransient(true); uiText.setValue(text);
headerText.setId( FacesUtils.createUniqueId() ); headerText.setValue( metawidget.getLabelString( columnAttributes ) ); column.setHeader( headerText );
String id = "txt-" + text.hashCode(); text.setId(id); text.setValue(labelText);