7 Replies Latest reply on Jan 10, 2013 11:45 PM by Sanjeev Shrestha

    Richfaces 4 migration problem

    unzoomed Newbie

      Hi

       

      I'm currently doing a migration from Richfaces 3 -> 4. I have followed the guide available at https://community.jboss.org/wiki/RichFacesMigrationGuide33x-4xMigration, but I have come across some issues that I can not find a solution for.

       

      The problem right now is a HtmlComponentControl that seems to be deprecated and I dont know how I should replace it. The code is as follows:

       

      HtmlComponentControl control = new HtmlComponentControl();

      control.setId("resultMenu");

      control.setEvent("onclick");

      control.setFor("searchMenu");

      control.setOperation("show");

      button.getChildren().add(control);

       

      button is declared as a UICommandButton.

       

      Edit: btw, is there any code tags that I can use on this forum?