1 Reply Latest reply: Jun 18, 2013 12:32 AM by keerthioaf RSS

    How to change colours of buttons

    Aravinda

      Dear friends,

       

      I need to change the colour of global buttons .Please share any ideas how to do this.

       

      Thanks

      Aravinda

        • 1. Re: How to change colours of buttons
          keerthioaf

             Hey hi there ,

           

           

            Use inline css in processRequest of your controller class :

           

            import oracle.cabo.style.CSSStyle;

           

          CSSStyle customCss = new CSSStyle();

          customCss.setProperty("background-color", "#FFFF00"); // you can define any color

          OASubmitButtonBean button = (OASubmitButtonBean) webBean.findChildRecursive("Submit");

          if(button!=null)

          {

          button.setInlineStyle(customCss); //set custom css style

          }

           

           

          Regards ,

          Keerthi