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;
 
 
 import  org.apache.hivemind.ClassResolver;
 import  org.apache.hivemind.Resource;
 import  org.apache.hivemind.util.ClasspathResource;
Implementation of org.apache.tapestry.form.FormComponentContributorContext.

Author(s):
Howard Lewis Ship
Since:
4.0
 
 public class FormComponentContributorContextImpl extends ValidationMessagesImpl implements
 {
     private final ClassResolver _resolver;
 
     private final PageRenderSupport _pageRenderSupport;
 
     private final IFormComponent _field;
 
     private final IForm _form;
 
     private final String _formId;
    
    
Used only for testing.
 
 
     {
         super(field.);
 
          = field;
          = null;
          = null;
          = null;
          = null;
     }
 
     public FormComponentContributorContextImpl(Locale localeIRequestCycle cycle,
             IFormComponent field)
     {
         super(fieldlocale);
 
          = field;
          = field.getForm();
          = .getName();
 
          = cycle.getInfrastructure().getClassResolver();
 
          = TapestryUtils.getPageRenderSupport(cyclefield);
     }
 
     public void includeClasspathScript(String path)
     {
         Resource resource = new ClasspathResource(path);
         
         .addExternalScript(resource);
     }
     
     public void addSubmitHandler(String submitListener)
     {
         .addInitializationScript("Tapestry.onsubmit('" +  + "', "
                 + submitListener + ");");
     }
     
     public void addInitializationScript(IComponent targetString script)
     {
     }
     
     public void registerForFocus(int priority)
     {
         .registerForFocus(priority);
     }
 
    public JSONObject getProfile()
    {
        return .getProfile();
    }
New to GrepCode? Check out our FAQ X