0 Replies Latest reply on Jan 11, 2013 1:58 AM by unzoomed

    HtmlAjaxCommandButton to UICommandButton?

    unzoomed Newbie

      Making a separate thread for this instead.

       

      Hi

       

      I am doing some 3 to 4 migration of a project and I have followed the guid at: https://community.jboss.org/wiki/RichFacesMigrationGuide33x-4xMigration

       

      A problem that I can not really figure out . From what I can see in the guide, the HtmlAjaxCommandButton is now a UICommandButton and I have changed it accordongly and also changed some of the methods in it with different names. I am however stuck on these two:

      button.setEventsQueue("searchForm");

      button.setIgnoreDupResponses(true);

       

      I dont know how to replace them, I have read that setIgnoreDupResponse is a part of attachQueue behaviors but I dont know how to fix it. Please can someone give a few pointers?

       

      The whole component:

      UICommandButton button = new UICommandButton();

      button.setValue(link.getLabel());

      button.setId("LINK_BUTTON_" + link.getID());

      button.setStyleClass(button.getStyleClass() + LINK_BUTTON_STYLE);

      button.addActionListener(navigationAction);

      button.setRender("searchForm");

      button.setEventsQueue("renderSearchForm");

      button.setIgnoreDupResponses(true);

      button.setExecute(button);

      buttonCell.getChildren().add(button);

       

       

      To answer response from previous thread: I'm affraid it is not an option to disable the button, it needs to work the same as before =/