Coverage Report - org.seasar.teeda.core.taglib.html.FormTag
 
Classes in this File Line Coverage Branch Coverage Complexity
FormTag
100%
11/11
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.teeda.core.taglib.html;
 17  
 
 18  
 import javax.faces.component.UIComponent;
 19  
 import javax.faces.component.html.HtmlForm;
 20  
 
 21  
 import org.seasar.teeda.core.JsfConstants;
 22  
 import org.seasar.teeda.core.taglib.UIComponentTagBase;
 23  
 
 24  
 /**
 25  
  * @author yone
 26  
  * @author shot
 27  
  */
 28  4
 public class FormTag extends UIComponentTagBase {
 29  
 
 30  
     public String getComponentType() {
 31  1
         return HtmlForm.COMPONENT_TYPE;
 32  
     }
 33  
 
 34  
     public String getRendererType() {
 35  5
         return "javax.faces.Form";
 36  
     }
 37  
 
 38  
     protected void setProperties(UIComponent component) {
 39  2
         super.setProperties(component);
 40  2
         setComponentProperty(component, JsfConstants.ACCEPT_ATTR, getAccept());
 41  2
         setComponentProperty(component, JsfConstants.ACCEPTCHARSET_ATTR,
 42  
                 getAcceptcharset());
 43  2
         setComponentProperty(component, JsfConstants.ENCTYPE_ATTR, getEnctype());
 44  2
         setComponentProperty(component, JsfConstants.ONRESET_ATTR, getOnreset());
 45  2
         setComponentProperty(component, JsfConstants.ONSUBMIT_ATTR,
 46  
                 getOnsubmit());
 47  2
         setComponentProperty(component, JsfConstants.TARGET_ATTR, getTarget());
 48  2
     }
 49  
 
 50  
 }