4 Replies Latest reply on Apr 26, 2011 2:17 AM by Srinivasan Thoyyeti

    rich:pickList 3.3.1: how to disable at "client side"?

    Srinivasan Thoyyeti Newbie

      I know everybody trying richfaces 4.0. Please try to answer this. Thank you.


      Client side: need help. I have tried following but no success.


       <script type="text/javascript">
              function disablePickList(){
                     ${rich:component('componentID')}.disable();  -- not working
                     ${rich:element('componentID')}.setAttribute('class', 'rich-list-picklist rich-list-picklist-disabled'); --not working


      Server Side Setting: <rich:pickList disabled = "true"/> works.