Examples of encodeAll()


Examples of com.liferay.faces.alloy.component.button.Button.encodeAll()

          button.setOnclick(onClick);
        }
      }

      // Invoke the button's renderer so that it renders itself and its child icon.
      button.encodeAll(facesContext);
    }

    // If the component is enabled, then create the boundingBox and contentBox of the picker.
    if (!disabled) {
View Full Code Here

Examples of com.liferay.faces.alloy.component.dataitem.DataItem.encodeAll()

          responseWriter.startElement(itemTag, prototypeChildDataItem);
          responseWriter.writeAttribute(StringPool.CLASS, styleClass + StringPool.DASH + ITEM,
            StringPool.CLASS);

          // Encode the children of the specified child as the actual content.
          prototypeChildDataItem.encodeAll(facesContext);

          // Encode the closing element for the specified child.
          responseWriter.endElement(itemTag);

          if (facet != null) {
View Full Code Here

Examples of com.liferay.faces.portal.component.navitem.NavItem.encodeAll()

    if ((iterateOverDataModel) && (prototypeChildNavItem != null)) {
      int rowCount = nav.getRowCount();

      for (int i = 0; i < rowCount; i++) {
        nav.setRowIndex(i);
        prototypeChildNavItem.encodeAll(facesContext);
      }
    }
    else {
      List<UIComponent> children = nav.getChildren();
View Full Code Here

Examples of javax.faces.component.UICommand.encodeAll()

        if (_for != null) {
            UICommand applyButton = Components.getOrCreateFacet(context, compositeFilter, HtmlCommandButton.COMPONENT_TYPE, "applyButton", UICommand.class);
            if (applyButton.getValue() == null)
                applyButton.setValue("Apply");
            applyButton.getAttributes().put("onclick", new ScriptBuilder().O$(compositeFilter).dot().functionCall("apply").append(";return false;").toString());
            applyButton.encodeAll(context);

            String ajaxForApplyId = Components.generateIdWithSuffix(compositeFilter, "ajaxForApply");
            Ajax ajaxForApply = (Ajax) compositeFilter.findComponent(ajaxForApplyId);
            if (ajaxForApply == null) {
                ajaxForApply = new Ajax();
View Full Code Here

Examples of javax.faces.component.UIComponent.encodeAll()

            try {
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                PrintWriter printWriter = new PrintWriter(outputStream);
                ResponseWriter newResponseWriter = facesContext.getRenderKit().createResponseWriter(printWriter, null, null);
                facesContext.setResponseWriter(newResponseWriter);
                facet.encodeAll(facesContext);
                printWriter.flush();
                String value = new String(outputStream.toByteArray());
                options.put(name, value);
            } catch (IOException e) {
                throw new FacesException("Can't encode facet '" + name + "' of component '" + component.getClass().getName()
View Full Code Here

Examples of javax.faces.component.UIComponent.encodeAll()

        String cellStyleClass = (String) dataTableBase.getAttributes().get("noDataCellStyleClass");
        cellStyleClass = concatClasses(getNoDataCellClass(), cellStyleClass);
        writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, cellStyleClass, null);

        if (noDataFacet != null && noDataFacet.isRendered()) {
            noDataFacet.encodeAll(facesContext);
        } else if (noDataLabel != null && noDataLabel.length() > 0) {
            writer.writeText(noDataLabel, "noDataLabel");
        } else {
            writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, "display: none;", null);
        }
View Full Code Here

Examples of javax.faces.component.UIComponent.encodeAll()

        renderFacet(context, component, CONTROLS_FACET);
    }

    private void renderFacet(FacesContext context, UIComponent component, String facet) throws IOException {
        UIComponent headerFacet = component.getFacet(facet);
        headerFacet.encodeAll(context);
    }

    @SuppressWarnings("unchecked")
    protected void doDecode(FacesContext context, UIComponent component) {
        super.doDecode(context, component);
View Full Code Here

Examples of javax.faces.component.UIComponent.encodeAll()

            if (strategy != null) {
                strategy.begin(writer, context, column, new String[] { facetName });

                UIComponent facet = column.getFacet(facetName);
                if (facet != null && facet.isRendered()) {
                    facet.encodeAll(context);
                }
                strategy.end(writer, context, column, new String[] { facetName });
            }
            if (useBuiltInSort) {
                this.renderSortButton(context, column, "rf-dt");
View Full Code Here

Examples of javax.faces.component.UIComponent.encodeAll()

                    if (component.isRendered()) {
                        rowEnded = true;
                        encodeRowEnd(writer);
                    }

                    component.encodeAll(facesContext);
                    rowHolder.setRowStart(true);
                }
            }
        }
View Full Code Here

Examples of javax.faces.component.UIComponent.encodeAll()

        //Resources
        UIViewRoot viewRoot = context.getViewRoot();
        ListIterator<UIComponent> iter = (viewRoot.getComponentResources(context, "head")).listIterator();
        while (iter.hasNext()) {
            UIComponent resource = (UIComponent)iter.next();
            resource.encodeAll(context);
        }
    }

    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
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.