Package org.apache.tapestry.valid

Examples of org.apache.tapestry.valid.IValidationDelegate.record()


        IFormComponent component = (IFormComponent) getComponent(componentId);

        IValidationDelegate delegate = getValidationDelegate();

        delegate.setFormComponent(component);
        delegate.record(message, null);
    }

    /**
     *  Returns true if the delegate indicates an error, or the error property is not null.
     *
 
View Full Code Here


        IFormComponent component = (IFormComponent) getComponent(componentId);

        IValidationDelegate delegate = getValidationDelegate();

        delegate.setFormComponent(component);
        delegate.record(message, null);
    }

    /**
     * Returns true if the delegate indicates an error, or the error property is not null.
     */
 
View Full Code Here

    {
        IValidationDelegate delegate = getValidationDelegate();
        IFormComponent field = (IFormComponent) getComponent(componentId);

        delegate.setFormComponent(field);
        delegate.record(message, null);
    }

    private void clear(String componentId)
    {
        IValidationDelegate delegate = getValidationDelegate();
View Full Code Here

    {
        IFormComponent field = (IFormComponent) getComponent(componentId);

        IValidationDelegate delegate = getValidationDelegate();
        delegate.setFormComponent(field);
        delegate.record(new ValidatorException(message));
    }

    public abstract void setCallback(ICallback value);

    public abstract ICallback getCallback();
View Full Code Here

    {
        IFormComponent field = (IFormComponent) getComponent(componentId);

        IValidationDelegate delegate = getValidationDelegate();
        delegate.setFormComponent(field);
        delegate.record(new ValidatorException(message));
    }

    public abstract void setCallback(ICallback value);

    public abstract ICallback getCallback();
View Full Code Here

        IFormComponent component = (IFormComponent) getComponent(componentId);

        IValidationDelegate delegate = getValidationDelegate();

        delegate.setFormComponent(component);
        delegate.record(message, null);
    }

    /**
     * Returns true if the delegate indicates an error, or the error property is not null.
     */
 
View Full Code Here

            component.writeValue(object);
        }
        catch (ValidatorException ex)
        {
            delegate.record(ex);
        }
    }
}
View Full Code Here

        {
            unreachable();
        }
       
        trainGetDelegate(formc, form, delegate);
        delegate.record(exception);
       
        replayControls();

        component.render(writer, cycle);
       
View Full Code Here

        {
            unreachable();
        }
       
        trainGetDelegate(formc, form, delegate);
        delegate.record(exception);
       
        replayControls();

        component.render(writer, cycle);
       
View Full Code Here

        {
            unreachable();
        }
       
        trainGetDelegate(formc, form, delegate);
        delegate.record(exception);
       
        replayControls();

        component.render(writer, cycle);
       
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.