the following template override caused a compilation issue in researchr:

define override ignore-access-control input(d:Ref<Date>){
  var format := DateType.getDefaultDateFormat()
  var dateformatString := ""
  init{
    var attr := attribute("format");
    if(attr!=null && attr != ""){
      format := attr;
    }
    else{
      if(d.getReflectionProperty() != null){
        var formatanno := d.getReflectionProperty().getFormatAnnotation();
        if(formatanno!=null){
          format := formatanno;
        }
      }
    }
    dateformatString := "dateFormat: '"+convertDateFormatToJQuery(format)+"', ";
  }
  dateinputgeneric(d, format, "datepicker", dateformatString+" changeMonth: true, changeYear: true, yearRange: '1900:2100'")[all attributes]{elements()}
}
Submitted by Danny Groenewegen on 13 July 2012 at 18:12

Log in to post comments