0 Replies Latest reply on Nov 20, 2012 4:16 AM by Martin Kožený

    rich:comboBox clear value using JQuery

    Martin Kožený Newbie

      Hi to all,


      I have problem with with clearing my filter's RichFaces components using JQuery. See code below:



      <a4j:commandButton value="#{msg['filter.clear']}" id="clearFilterButton" immediate="true"/>
      <rich:hotKey key="ctrl+f" handler="#{rich:element('clearFilterButton')}.click();" timing="onload"/>
      <rich:jQuery selector="#clearFilterButton" query="click(function(){clearFilterText()})"/>
      <rich:jQuery selector="#filterForm input[type=text]" name="clearFilterText" timing="onJScall" query="val('')"/>


      When clearing input texts or calendars, everything works fine. But when using my clear function on rich:comboBox and submit filter form, previous value to this field is bind. I also tried use convertor for this component, but this didn't help.


      Can anyone help me with that?

      Thanks in advance.