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.HtmlSelectOneRadio; 20 import org.apache.myfaces.taglib.html.HtmlSelectOneRadioTagBase; 21 22 import javax.faces.component.UIComponent; 23 24 54 public class HtmlSelectOneRadioTag 55 extends HtmlSelectOneRadioTagBase 56 { 57 public String getComponentType() 58 { 59 return HtmlSelectOneRadio.COMPONENT_TYPE; 60 } 61 62 public String getRendererType() 63 { 64 return "org.apache.myfaces.Radio"; 65 } 66 67 private String _enabledOnUserRole; 68 private String _visibleOnUserRole; 69 70 public void release() { 71 super.release(); 72 _enabledOnUserRole=null; 73 _visibleOnUserRole=null; 74 } 75 76 protected void setProperties(UIComponent component) 77 { 78 super.setProperties(component); 79 setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole); 80 setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole); 81 } 82 83 public void setEnabledOnUserRole(String enabledOnUserRole) 84 { 85 _enabledOnUserRole = enabledOnUserRole; 86 } 87 88 public void setVisibleOnUserRole(String visibleOnUserRole) 89 { 90 _visibleOnUserRole = visibleOnUserRole; 91 } 92 93 } 94 | Popular Tags |