-
1. Re: How to Stop Filtering in <rich:select>
michpetrov Jun 5, 2013 9:26 AM (in response to sumitghosh945)You can disable filtering by setting a clientFilterFunction for <rich:select>
<rich:select clientFilterFunction="noFilter"> <f:selectItems … /> </rich:select>
noFilter = function() { return true; }
This will show every item, but it won't highlight the item matching the text which I assume is what you want to do.
EDIT: the filter should be returning boolean
-
2. Re: How to Stop Filtering in <rich:select>
sumitghosh945 Jun 5, 2013 7:37 AM (in response to michpetrov)no its not doing,it causing the same problem as I have explained in the question,I have tried your sample,but not woking
-
3. Re: How to Stop Filtering in <rich:select>
michpetrov Jun 5, 2013 8:06 AM (in response to sumitghosh945)Are you getting any errors in the console?
-
4. Re: How to Stop Filtering in <rich:select>
sumitghosh945 Jun 5, 2013 8:43 AM (in response to michpetrov)no error but it is not serving the purpose I had mention in the question that after selection of an item from the list if user again click the dropdown it should show all the elements present in list.But your code not showing all the element after I select one Specific Element,it is showing only the selected item.If my word are not clear to you,please refer to the screenshot attached in the question,You will perhaps understand.
-
5. Re: How to Stop Filtering in <rich:select>
michpetrov Jun 5, 2013 10:29 AM (in response to sumitghosh945)Ok, I think I understand. You select a value from the list and when you click the input box again you want to see all the elements. That's not possible if you want the manual input to work as well. Manual input will filter the elements, that's the reason for using it.
But perhaps there is a workaround, why do you need to see all the values? I assume you want to change the value that is currently selected. But if the user is going to change the value manually he must delete the current value anyway. And when he does he will see the whole list again.
-
6. Re: How to Stop Filtering in <rich:select>
vijimv May 13, 2015 8:58 AM (in response to michpetrov)helloo,
I am also having the same requirement as SUMIT said. The user needs the filter functionality as well as the whole list while clicking on the dropdown button,
Is there any other component in richfaces that can we use for this purpose? or can we customize <rich:select> in such way that the above requirement is satisfied?
Can anyone suggest any solution......
Thanks
-
7. Re: How to Stop Filtering in <rich:select>
michpetrov May 13, 2015 10:14 AM (in response to vijimv)Forcing the list to show is probably the only option - you can put an event listener on the button and call __showPopup() on the select, that should work.
-
8. Re: How to Stop Filtering in <rich:select>
vijimv May 22, 2015 6:24 AM (in response to michpetrov)hi ,
i tried to add an event listner on the button but failed. I have a doubt - actually the button is added as a style , then how can we add event listner to that button?
i'm new to richfaces, please excuse me if I asked anything wrong .
Thanks
-
9. Re: How to Stop Filtering in <rich:select>
michpetrov May 25, 2015 3:55 AM (in response to vijimv)The button is an HTML element like any other, in this case a span with class="rf-sel-btn", simply select it with jQuery.