Package com.dodo.blog.ui.message

Examples of com.dodo.blog.ui.message.FieldMessage


        setAttribute( Attribute.STYLE, style );
    }

    public void info( String message )
    {
        RequestCycle.get().addMessage( new FieldMessage( getId(), message, MessageLevel.INFO ) );
    }
View Full Code Here


        RequestCycle.get().addMessage( new FieldMessage( getId(), message, MessageLevel.INFO ) );
    }

    public void warn( String message )
    {
        RequestCycle.get().addMessage( new FieldMessage( getId(), message, MessageLevel.WARN ) );
    }
View Full Code Here

        RequestCycle.get().addMessage( new FieldMessage( getId(), message, MessageLevel.WARN ) );
    }

    public void error( String message )
    {
        RequestCycle.get().addMessage( new FieldMessage( getId(), message, MessageLevel.ERROR ) );
    }
View Full Code Here

    {
        if ( e instanceof ValidationException )
        {
            for ( ConstraintViolation cv : ( ( ValidationException ) e ).getConstraintViolations() )
            {
                RequestCycle.get().addMessage( new FieldMessage( cv.getPropertyPath().toString(), cv.getMessage(), MessageLevel.ERROR ) );
            }
        }
        else
        {
            error( "error." + e.getClass().getSimpleName() );
View Full Code Here

TOP

Related Classes of com.dodo.blog.ui.message.FieldMessage

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.