Examples of writeAttribute()


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

            }

            final String styleClass = command.getStyleClass();
            if (styleClass != null)
            {
                writer.writeAttribute(
                    "class",
                    styleClass,
                    "styleClass");
            }
View Full Code Here

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

            }

            final String style = command.getStyle();
            if (style != null)
            {
                writer.writeAttribute(
                    "style",
                    style,
                    "style");
            }
View Full Code Here

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

    }
    StateManager stateManager = context.getApplication().getStateManager();
    ResponseWriter writer = context.getResponseWriter();

    writer.startElement("xfc:viewState", context.getViewRoot());
    writer.writeAttribute("id", javax.faces.render.ResponseStateManager.VIEW_STATE_PARAM, null);

    if (stateManager.isSavingStateInClient(context)) {
     
      if (log.isDebugEnabled()) {
        log.debug("Save state on client");     
View Full Code Here

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

      zos.close();
      String valueToWrite = (new String(Base64.encodeBase64(bos.toByteArray()),"ISO-8859-1"));
      if (log.isTraceEnabled()) {
        log.trace("Saving on client side : " + valueToWrite);
      }
      writer.writeAttribute("value",valueToWrite, null);
    } else {
      if(log.isDebugEnabled()){
        log.debug("Save state on server")
        log.debug("VIEW_STATE_PARAM " + view.getStructure());
      }
View Full Code Here

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

    } else {
      if(log.isDebugEnabled()){
        log.debug("Save state on server")
        log.debug("VIEW_STATE_PARAM " + view.getStructure());
      }
      writer.writeAttribute("value", view.getStructure(), null);     
    }
    writer.endElement("xfc:viewState");

    String renderKitId = context.getApplication().getDefaultRenderKitId();
    if (log.isDebugEnabled()) {
View Full Code Here

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

    if (log.isDebugEnabled()) {
      log.debug("RENDER_KIT_ID_PARAM " + renderKitId);
    }
    if (renderKitId != null && renderKitId.equals(XULRenderKit.XUL_BASIC_RENDER_KIT)) {
      writer.startElement("xfc:renderKit", context.getViewRoot());
      writer.writeAttribute("id", ResponseStateManager.RENDER_KIT_ID_PARAM, "id");
      writer.writeAttribute("value", XULRenderKit.XUL_BASIC_RENDER_KIT, "value");
      writer.endElement("xfc:renderKit");
    } else {
      log.error(BAD_RENDERKIT_ID);
      throw new FacesException(BAD_RENDERKIT_ID);
View Full Code Here

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

      log.debug("RENDER_KIT_ID_PARAM " + renderKitId);
    }
    if (renderKitId != null && renderKitId.equals(XULRenderKit.XUL_BASIC_RENDER_KIT)) {
      writer.startElement("xfc:renderKit", context.getViewRoot());
      writer.writeAttribute("id", ResponseStateManager.RENDER_KIT_ID_PARAM, "id");
      writer.writeAttribute("value", XULRenderKit.XUL_BASIC_RENDER_KIT, "value");
      writer.endElement("xfc:renderKit");
    } else {
      log.error(BAD_RENDERKIT_ID);
      throw new FacesException(BAD_RENDERKIT_ID);
   
View Full Code Here

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

  public void encodeBegin(FacesContext facesContext, UIComponent component)
      throws IOException {
    super.encodeBegin(facesContext,component);
    ResponseWriter responseWriter = facesContext.getResponseWriter();
        responseWriter.startElement("radiogroup",component);
        responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
        renderAttributes(facesContext, component, (List) component
        .getAttributes().get("annotatedAttributes"));
  }

  public void encodeChildren(FacesContext facesContext, UIComponent component)
View Full Code Here

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

    Object object = selectOne.getValue();
    Boolean disabled = (Boolean) selectOne.getAttributes().get("disabled");
    while(iterator.hasNext()){
      SelectItem selectItem  = (SelectItem) iterator.next();
      responseWriter.startElement("radio",null);
      responseWriter.writeAttribute("label",selectItem.getLabel(),"label");
      responseWriter.writeAttribute("value",selectItem.getValue(),"value");
      if(disabled != null){
        if(disabled.booleanValue()){
          responseWriter.writeAttribute("disabled","true","disabled");
        }
View Full Code Here

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

    Boolean disabled = (Boolean) selectOne.getAttributes().get("disabled");
    while(iterator.hasNext()){
      SelectItem selectItem  = (SelectItem) iterator.next();
      responseWriter.startElement("radio",null);
      responseWriter.writeAttribute("label",selectItem.getLabel(),"label");
      responseWriter.writeAttribute("value",selectItem.getValue(),"value");
      if(disabled != null){
        if(disabled.booleanValue()){
          responseWriter.writeAttribute("disabled","true","disabled");
        }
      }
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.