-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem in Enabling a Filter using IN condition
PostPosted: Sat Oct 22, 2011 8:30 am 
Newbie

Joined: Sat Oct 22, 2011 8:05 am
Posts: 3
Hi All,

i have defined a filter like this

<filter-def name="areaDescColumn">
<filter-param name="areaDesc" type="string"/>
</filter-def>
and attached to the mapping element
<filter name="areaDescColumn" condition=":areaDesc IN AREA_DESC "/>

when i try to enable this filter,
session.enableFilter(entry.getKey().trim()+"Column").setParameter(entry.getKey().trim(),finalcol);

and this 'finalcol' is List of String.

when i do this i am getting the below error
[Servlet Error]-[Incorrect type for parameter [areaDesc]]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: Incorrect type for parameter [areaDesc]

Could any one please help me to solve this issue.


Top
 Profile  
 
 Post subject: Re: Problem in Enabling a Filter using IN condition
PostPosted: Mon Oct 24, 2011 1:15 am 
Newbie

Joined: Sat Oct 22, 2011 8:05 am
Posts: 3
got it.

have to use setParameterList(String name, Collection values) If we use IN clauses in your filters.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.