1 16 package org.apache.myfaces.taglib.html.ext; 17 18 import org.apache.myfaces.component.UserRoleAware; 19 import org.apache.myfaces.component.html.ext.HtmlInputTextarea; 20 import org.apache.myfaces.taglib.html.HtmlInputTextareaTagBase; 21 22 import javax.faces.component.UIComponent; 23 24 38 public class HtmlInputTextareaTag 39 extends HtmlInputTextareaTagBase 40 { 41 public String getComponentType() 42 { 43 return HtmlInputTextarea.COMPONENT_TYPE; 44 } 45 46 public String getRendererType() 47 { 48 return "org.apache.myfaces.Textarea"; 49 } 50 51 private String _enabledOnUserRole; 52 private String _visibleOnUserRole; 53 54 public void release() { 55 super.release(); 56 57 _enabledOnUserRole=null; 58 _visibleOnUserRole=null; 59 } 60 61 protected void setProperties(UIComponent component) 62 { 63 super.setProperties(component); 64 setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole); 65 setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole); 66 } 67 68 public void setEnabledOnUserRole(String enabledOnUserRole) 69 { 70 _enabledOnUserRole = enabledOnUserRole; 71 } 72 73 public void setVisibleOnUserRole(String visibleOnUserRole) 74 { 75 _visibleOnUserRole = visibleOnUserRole; 76 } 77 78 } 79 | Popular Tags |