Package javax.faces.context

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


            }

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


            }

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

            }

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

            }

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

            }

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

    }
    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

      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

    } 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

    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

      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

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.