Examples of UIInputDate


Examples of org.mycompany.component.UIInputDate

public abstract class InputDateRendererBase  extends HeaderResourcesRendererBase{

  public void decode(FacesContext context, UIComponent component){
    ExternalContext external = context.getExternalContext();
    Map requestParams = external.getRequestParameterMap();
    UIInputDate inputDate = (UIInputDate)component;
    String clientId = inputDate.getClientId(context);
    String submittedValue = (String)requestParams.get(clientId);
   
    if (submittedValue != null) {
      inputDate.setSubmittedValue(submittedValue);
    }
  } 
View Full Code Here

Examples of org.mycompany.component.UIInputDate

 

  protected String getValueAsString(FacesContext context,
      UIComponent component) throws IOException {

    UIInputDate inputDate = (UIInputDate) component;
    String valueString = (String) inputDate.getSubmittedValue();

    if (valueString == null) {
      Object value = inputDate.getValue();
      if (value != null) {
        Converter converter = getConverter(context, inputDate);
        valueString = converter.getAsString(context, component, value);
      }
    }
View Full Code Here

Examples of org.mycompany.component.UIInputDate

  }
     
 
  public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException
      {
      UIInputDate inputDate = (UIInputDate)component;
      Converter converter = getConverter(context, inputDate);
      String valueString = (String)submittedValue;
      return converter.getAsObject(context, component, valueString);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.