Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-344

iterate tag does not work for list containing strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None
    • windows, jre 1.4.2

    Description

      I have an iterate tag in my query that looks like the following:

      <iterate property="workflows" open="(" close=")" conjunction="OR" >
      state=#workflows[]#
      </iterate>

      The workflows attribute is an ArrayList containing strings. When i execute this query i get the following exception:
      Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: ""

      Somehow ibatis seems to think that the list is numeric and i am not sure how to make the iterate tag work with my list of strings.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sreasw sriram easwaran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: