Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 package javax.faces.component; 17 18 import javax.faces.context.FacesContext; 19 import javax.faces.el.ValueBinding; 20 21 27 public class UISelectItems 28 extends UIComponentBase 29 { 30 32 public static final String COMPONENT_TYPE = "javax.faces.SelectItems"; 33 public static final String COMPONENT_FAMILY = "javax.faces.SelectItems"; 34 35 private Object _value = null; 36 37 public UISelectItems() 38 { 39 } 40 41 public String getFamily() 42 { 43 return COMPONENT_FAMILY; 44 } 45 46 public void setValue(Object value) 47 { 48 _value = value; 49 } 50 51 public Object getValue() 52 { 53 if (_value != null) return _value; 54 ValueBinding vb = getValueBinding("value"); 55 return vb != null ? (Object )vb.getValue(getFacesContext()) : null; 56 } 57 58 59 public Object saveState(FacesContext context) 60 { 61 Object values[] = new Object [2]; 62 values[0] = super.saveState(context); 63 values[1] = _value; 64 return ((Object ) (values)); 65 } 66 67 public void restoreState(FacesContext context, Object state) 68 { 69 Object values[] = (Object [])state; 70 super.restoreState(context, values[0]); 71 _value = (Object )values[1]; 72 } 73 } 75
| Popular Tags
|