Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2005 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
 //
 //     http://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry.form;
Interface for objects that contribute client-side events back to a form.

Author(s):
Paul Ferraro
Since:
4.0
public interface FormComponentContributor
{
    
Invoked by a form component after it finishes rendering its tag (but before the tag is closed) to allow this object to contribute to the component's rendering process. Typically used by Validators and Translators to add javascript methods to the form's submit event handler.

Parameters:
writer allows contributor to write additional attributes into the component's tag
cycle for accessing request information
context utilities for genering messages and client-side validation
field the field for which contributions are being rendered
    void renderContribution(IMarkupWriter writerIRequestCycle cycle,
            FormComponentContributorContext contextIFormComponent field);
New to GrepCode? Check out our FAQ X