Spring Roo
  1. Spring Roo
  2. ROO-477

Scaffold jsp generation for date fields have one javascript tag ineasted of two.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.0.RC4
    • Fix Version/s: 1.1.0.M1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Currently Scaffold will generate these scripts for date fields in jsp files:

      <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_today_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', required : false}})); </script>

      <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_today_id', widgetType : 'dijit.form.DateTextBox', widgetAttrs : {promptMessage: '${field_validation}', constraints: {datePattern : '${foobar_today_date_format}', required : false}, datePattern : '${foobar_today_date_format}'}})); </script>

      While with this script we could have same functionality:

      <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_today_id', widgetType : 'dijit.form.DateTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', required : false, datePattern : '${foobar_today_date_format}'}})); </script>

        Activity

        Hide
        Stefan Schmidt added a comment -

        This is fixed in the current trunk and will be available with the upcoming Roo 1.1 M1 release.

        Show
        Stefan Schmidt added a comment - This is fixed in the current trunk and will be available with the upcoming Roo 1.1 M1 release.

          People

          • Assignee:
            Stefan Schmidt
            Reporter:
            Sid
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: