1 15 package org.apache.tapestry.form.translator; 16 17 import org.apache.tapestry.form.FormEventType; 18 import org.apache.tapestry.form.FormComponentContributorTestCase; 19 20 26 public abstract class TranslatorTestCase extends FormComponentContributorTestCase 27 { 28 protected void trim() 29 { 30 _component.getForm(); 31 _componentControl.setReturnValue(_form); 32 33 _form.getName(); 34 _formControl.setReturnValue("formName"); 35 36 _component.getName(); 37 _componentControl.setReturnValue("fieldName"); 38 39 _form.addEventHandler(FormEventType.SUBMIT, "trim(document.formName.fieldName)"); 40 _formControl.setVoidCallable(); 41 } 42 } 43 | Popular Tags |