Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright Aug 6, 2006 The Apache Software Foundation
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry.form;
Marker interface for components that would like to override the default logic used to render validation contributions made for client side form validation.

public interface ValidatableFieldExtension extends ValidatableField

Called during render of the specified component. Renders any contributions from validators. Check to see if this field would like to override the default contributions made by the specified org.apache.tapestry.form.validator.Validator with it's own contributions.

validator The validator to check if component wants to override.
cycle The current request cycle.
True if this field wants to override default, false otherwise.
    boolean overrideValidator(Validator validatorIRequestCycle cycle);
Very similar to the method signature used by ValidatableFieldSupport.renderContributions(org.apache.tapestry.form.ValidatableField,org.apache.tapestry.IMarkupWriter,org.apache.tapestry.IRequestCycle), with the additional parameter being the org.apache.tapestry.form.validator.Validator that this component has chosen to override.

This method will only be called if overrideValidator(org.apache.tapestry.form.validator.Validator,org.apache.tapestry.IRequestCycle) returns true for the specified org.apache.tapestry.form.validator.Validator.

validator The original org.apache.tapestry.form.validator.Validator that component opted to override.
context The context object used by validation contributors.
writer The markup writer to send content to. (if any is needed)
cycle The current request cycle.
            IMarkupWriter writerIRequestCycle cycle);
New to GrepCode? Check out our FAQ X