2 Replies Latest reply on Jun 16, 2011 12:31 PM by toxor

    rich:componentControl programmatically

    toxor

      Hi, how can I programmatically do the following :

       

      <h:commandButton value="Call the popup">

              <rich:componentControl target="popup" operation="show" />

      </h:commandButton>

        • 1. Re: rich:componentControl programmatically
          lfryc

          Hi Patrick,

           

          #{rich:component("popup")}.show()

           

          should be useful.

          • 2. Re: rich:componentControl programmatically
            toxor

            Hi Lukas, thanks for the response.

             

            How do you mean that ? I have the following Code :

             

            UIColumn column_edit = new UIColumn();

            actionDataTable.getChildren().add(column_edit);

             

            HtmlOutputText header_edit = new HtmlOutputText();

            header_edit.setValue("Edit");

            column_edit.setHeader(header_edit);

             

            HtmlGraphicImage bild_edit = new HtmlGraphicImage();

            bild_edit.setId("bild_2");

            bild_edit.setValue("/images/edit.gif");

            bild_edit.setStyle("border:none");

             

             

            HtmlCommandLink editLink = new HtmlCommandLink();

            editLink.setId("ed"); // Custom ID is required in dynamic UIInput and UICommand.

            editLink.getChildren().add(bild_edit);

            editLink.setActionExpression(createActionExpression("#{facetBean.edit}", String.class));

            column_edit.getChildren().add(editLink);

             

             

             

            So I have a Link instead of a button, but that should work as well. What I want to do now is to, to add the richComponent to the Link.