[ 
http://issues.apache.org/jira/browse/IBATIS-344?page=comments#action_12437584 ] 
            
Christian Poitras commented on IBATIS-344:
------------------------------------------

>From what I see the problem is the #workflows[]#. This should be replaced by 
>#[]#.

Still, the exception is not completely normal. I think that iBATIS should 
support doing something like this (even if it doesn't make to much sense to me).
<iterate property="workflows" open="(" close=")" conjunction="OR" >
workflow=#[]# AND workFlowState=#workflowState[]#
</iterate>
Considering an object having 2 arrays "workflows" and "workflowState" of the 
same size.

> iterate tag does not work for list containing strings
> -----------------------------------------------------
>
>                 Key: IBATIS-344
>                 URL: http://issues.apache.org/jira/browse/IBATIS-344
>             Project: iBatis for Java
>          Issue Type: Bug
>         Environment: windows, jre 1.4.2
>            Reporter: sriram easwaran
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to