code: public static Class<?> getType(UIComponent p_component) {
  		ValueExpression valueExpression = p_component.getValueExpression("value");
  		if (valueExpression != null) {
  			FacesContext context = FacesContext.getCurrentInstance();
  			ELContext elContext = context.getELContext();
  			return valueExpression.getType(elContext);
  		}
  		return null;
  	}
docs: Yields the type of the variable displayed by a component.
  
  @param p_component
  the UIComponent
  @return the type (as class)