2 Replies Latest reply on Nov 21, 2008 10:48 AM by Bart DP

    Disable component

    Bart DP Newbie

      Hi all,


      I have posted this question on another forum, but didn't got an answer so far. And I also believe that the smart guys are sitting here :-)


      When I push a button, I want to disable a component from another form.
      This is the code in my bean:



      FacesContext context = FacesContext.getCurrentInstance();
      UIForm form = (UIForm)context.getViewRoot().findComponent("formid");
      UIInput comp=(UIInput)formHeader.findComponent("compid");
      comp.getAttributes().put("disabled", Boolean.TRUE);
      
      



      If I debug, I see that the component is set to disabled true. But nothing happens on the screen.
      How can I solve this problem?


      Thx Fons