Package javax.faces.context

Examples of javax.faces.context.ResponseWriter.writeText()


                    //only when useSubmittedValue==true, else use the real item value Objects
                    if (!isSelectOne)
                    {
                        writer.startElement(HTML.LI_ELEM, component);
                    }
                    writer.writeText(selectItem.getLabel(), null);
                    if (!isSelectOne)
                    {
                        writer.endElement(HTML.LI_ELEM);
                    }
                    if (isSelectOne)
View Full Code Here


      ResponseWriter writer = context.getResponseWriter();
      writer.startElement("label", component);
      writer.writeAttribute("for", id, null);
      XhtmlRenderer.renderStyleClass(context, arc,
                                     SkinSelectors.HIDDEN_LABEL_STYLE_CLASS);
      writer.writeText(text, null);
      writer.endElement("label");
    }
  }

View Full Code Here

        writer.startElement("fieldset", null);
        writer.writeAttribute("style", "border:none", null);
        writer.startElement("legend", null);
        renderStyleClass(context, arc,
                         SkinSelectors.HIDDEN_LABEL_STYLE_CLASS);
        writer.writeText(shortDesc, "shortDesc");
        writer.endElement("legend");
      }
    }

    encodeSelectItems(context, arc, component, bean,
View Full Code Here

    // passed the empty string for our title.
    String description = item.getDescription();
    if ((description != null) && !"".equals(description))
      rw.writeAttribute("title", description, null);

    rw.writeText(item.getLabel(), null);
    rw.endElement("label");

    return true;
  }
View Full Code Here

              int columns = ((columnsObj == null) ? 0 : columnsObj.intValue());

              // If wrapping is pointless, skip it.
              if ((columns <= 1) || (columns > textLength))
              {
                rw.writeText(textString, "value");
              }
              else
              {
                // Get a BreakIterator.  Note that this code doesn't
                // really work for multi-lingual pages (e.g., an English
View Full Code Here

                _writeTextWithBreaks(context, breaks, textString, columns);
              }
            } // endif wrapping on
            else
            {
              rw.writeText(textString, "value");
            }
          } // endif textLength > 0
        } // endif textvalue != null

        rw.endElement("pre");
View Full Code Here

        rw.endElement("pre");
      } // endif !renderAsElement
      else
      {
        rw.writeText(textValue, "value");
      }
    }  // endif isTextArea()
    else
    {
      // Don't render anything for disabled password fields
View Full Code Here

    else
    {
      // Don't render anything for disabled password fields
      if (!getSecret(bean))
      {
        rw.writeText(textValue, "value");
      }
    }
  }

  /**
 
View Full Code Here

    OutputUtils.renderIcon(context, arc, icon, shortDesc, null );                     

    String text = getText(bean);   
    if (text != null)
    {
      writer.writeText(XhtmlConstants.NBSP_STRING, null);
     
      // output the text directly since we have no access key
      writer.writeText(text, "text");       
    }
View Full Code Here

    if (text != null)
    {
      writer.writeText(XhtmlConstants.NBSP_STRING, null);
     
      // output the text directly since we have no access key
      writer.writeText(text, "text");       
    }

    writer.endElement("div");  
    if (getRenderSimpleSpan)
      writer.endElement("span");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.