Package javax.faces.component

Examples of javax.faces.component.UIMessage


      UIComponent uiComponent) throws IOException {


    // FIXME: must be refactored! Bitte daran denken die msie version auch umzubauen!!!

    UIMessage component = (UIMessage) uiComponent;

    String clientId = ComponentUtil.findClientIdFor(component, facesContext);

    Iterator iterator = facesContext.getMessages(clientId);
View Full Code Here


  }

  public void encodeEnd(FacesContext facesContext,
      UIComponent uiComponent) throws IOException {

    UIMessage component = (UIMessage) uiComponent;

    String clientId = ComponentUtil.findClientIdFor(component, facesContext);

    Iterator iterator = facesContext.getMessages(clientId);
View Full Code Here

        // algoritm.
        Iterator<UIComponent> facetsAndChildren = component.getFacetsAndChildren();
        while (facetsAndChildren.hasNext()) {
            UIComponent child = (UIComponent) facetsAndChildren.next();
            if (child instanceof UIMessage) {
                UIMessage message = (UIMessage) child;
                String messageFor = message.getFor();
                if (null != messageFor && messageFor.equals(getParent().getId())) {
                    messages.add(message);
                }
            } else {
                findMessages(child, messages);
View Full Code Here

                return "";
            } else {
                return messages.getFor();
            }
        } else if (isComponentMessage(component)) {
            UIMessage message = (UIMessage) component;
            return message.getFor();
        } else {
            return (String) component.getAttributes().get("for");
        }
    }
View Full Code Here

        String detail = message.getDetail();
        boolean showSummary = true;
        boolean showDetail = false;
        boolean isMessages = false;
        if (isComponentMessage(component)) {
            UIMessage uiMessage = (UIMessage) component;
            showSummary = uiMessage.isShowSummary();
            showDetail = uiMessage.isShowDetail();
        } else if (isComponentMessages(component)) {
            UIMessages uiMessages = (UIMessages) component;
            showSummary = uiMessages.isShowSummary();
            showDetail = uiMessages.isShowDetail();
            isMessages = true;
View Full Code Here

       
        if (getRendererType() != null) {
            component.setRendererType(getRendererType());
        }
       
        UIMessage comp = (UIMessage)component;
       
        if (forComponent != null) {
            if (isValueReference(forComponent)) {
                ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding(forComponent);
                component.setValueBinding("for", vb);
            } else {
                comp.setFor(forComponent);
            }
        }
       
        if (showDetail != null) {
            if (isValueReference(showDetail)) {
                ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding(showDetail);
                component.setValueBinding("showDetail", vb);
            } else {
                boolean bool = Boolean.valueOf(showDetail).booleanValue();
                comp.setShowDetail(bool);
            }
        }
       
        if (showSummary != null) {
            if (isValueReference(showSummary)) {
                ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding(showSummary);
                component.setValueBinding("showSummary", vb);
            } else {
                boolean bool = Boolean.valueOf(showSummary).booleanValue();
                comp.setShowSummary(bool);
            }
        }
    }
View Full Code Here

      UIComponent uiComponent) throws IOException {


    // FIXME: must be refactored! Bitte daran denken die msie version auch umzubauen!!!

    UIMessage component = (UIMessage) uiComponent;

    String clientId = ComponentUtil.findClientIdFor(component, facesContext);

    Iterator iterator = facesContext.getMessages(clientId);
View Full Code Here

  }

  public void encodeEnd(FacesContext facesContext,
      UIComponent uiComponent) throws IOException {

    UIMessage component = (UIMessage) uiComponent;

    String clientId = ComponentUtil.findClientIdFor(component, facesContext);

    Iterator iterator = facesContext.getMessages(clientId);
View Full Code Here

      UIComponent uiComponent) throws IOException {


    // FIXME: must be refactored! Bitte daran denken die msie version auch umzubauen!!!

    UIMessage component = (UIMessage) uiComponent;

    String clientId = ComponentUtil.findClientIdFor(component, facesContext);

    Iterator iterator = facesContext.getMessages(clientId);
View Full Code Here

  }

  public void encodeEnd(FacesContext facesContext,
      UIComponent uiComponent) throws IOException {

    UIMessage component = (UIMessage) uiComponent;

    String clientId = ComponentUtil.findClientIdFor(component, facesContext);

    Iterator iterator = facesContext.getMessages(clientId);
View Full Code Here

TOP

Related Classes of javax.faces.component.UIMessage

Copyright © 2018 www.massapicom. 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.