filtering depending on the value of a boolean field

"Guillaume KUHMEL" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template,gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hi everybody,
 
 
I'd like to create a filter based on the value of a boolean field of my container.
first i have my declaration of my container, with my field:
 
<content:declareField name="toto" title="toto" titleKey="toto" bundleKey="<%= CompositePartenaire.BUNDLE_ID%>" type="Boolean" />

so i create a checkbox, to filter on the value of this field :
<input type="checkbox" name="<%=paramName%>" id="<%=paramName%>" value="true" <%=paramValue? "checked=\"checked\"" : "" %>/>

And after the submission i create the filter :

booleanFilter.addClause(ContainerFilterBean.COMP_EQUAL, String.valueOf(paramValue));

paramValue is the value sent by the checkbox.
 
But, it doesn't work !!  i guess that the value to compare is not "String.valueOf(paramValue)", but i don't know what must be my second parameter
 
Have someone already been dealing with such filters??? 
 
Thanks a lot !
Guillaume KUHMEL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.