|
public class InputDateTag extends UIComponentTag {
private String value = null;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getComponentType() {
return UIInputeDate.COMPONENT_TYPE;
}
public String getRendererType() {
return InputDateRenderer.RENDERER_TYPE;
}
protected void setProperties(UIComponent uiComponent) {
super.setProperties( uiComponent );
FacesContext context = FacesContext.getCurrentInstance();
if ( value != null ){
if ( isValueReference( value ) ){
uiComponent.setValueBinding( "value" , context.getApplication().createValueBinding( value ) );
}else{
uiComponent.getAttributes().put( "value" , value );
}
}
}
|
|