FilterPane Plugin
  1. FilterPane Plugin
  2. GPFILTERPANE-18

ClassCastException when not filling the second parameter on an integer between filter (tryed with 'id')

    Details

    • Type: Bug Bug
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      filterpane 0.7, grails 1.3.5, jvm 1.6.22, kubuntu 10.04.1

      Description

      Plan to reproduce:

      Preparation:
      Simply add a filterpane as described on the plugin page on a scaffolded app.
      Additional add the id parameter.

      Steps:

      • Open the filterpane and select 'between' on the id.
      • Fill the first parameter with a correct value (any number).
      • Dont fill the second parameter.
      • Execute the filter.

      Result:
      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

      On other wrong input it does a good job but there it results in a RunTimeExeption.


      Some general Idea:

      For sure it would be nice, if there was some warnings on bad inputs.
      Maybe in a way it happens with the wrong input on scaffolded grails-forms.

      Possibly with a tag like the currentCriteria criteria tag, or directly in the form.
      Anyways this are just ideas, while the bug remains.

      Hope that helps you improve that awesome Plugin you devoloped.

        Activity

        Hide
        Steve Krenek added a comment -

        Agreed. The form needs some sort of validation, especially for numeric fields. In the meantime, the fix for GRAILSPLUGINS-1717 at least resolves the ClassCastException.

        Show
        Steve Krenek added a comment - Agreed. The form needs some sort of validation, especially for numeric fields. In the meantime, the fix for GRAILSPLUGINS-1717 at least resolves the ClassCastException.

          People

          • Assignee:
            Steve Krenek
            Reporter:
            Konstantinos Kostarellis
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: