Package org.apache.myfaces.wap.component

Examples of org.apache.myfaces.wap.component.Message


        if (context == null || component == null) {
            throw new NullPointerException();
        }
        if (!component.isRendered()) return;
       
        Message comp = (Message)component;       
        ResponseWriter writer = context.getResponseWriter();
       
        String _for = comp.getFor();
        if (_for == null) log.error("Attribute 'for' of UIMessage must not be null.");
       
        UIComponent forComponent = component.findComponent(_for);
        if (forComponent == null) log.error("Unable to find component '" + _for + "'. Can not render UIMessage component.");
       
        Iterator iter = context.getMessages(forComponent.getClientId(context));       
        if (iter.hasNext()) {
            FacesMessage message = (FacesMessage)iter.next();
            if (comp.isShowSummary())
                writer.write(message.getSummary());
            if (comp.isShowDetail())
                writer.write(message.getDetail());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.wap.component.Message

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.