4 Replies Latest reply on May 21, 2008 12:08 PM by ilya_shaikovsky

    richfaces skin for h:inputText and commandButton?

    ddzira1

      on the live demo it seems as though some of the examles of input components have a gradient / style applied to standard inputs (h:inputText / commandButton's) from this link:

      http://livedemo.exadel.com/richfaces-demo/richfaces/message.jsf?s=ruby

      when I view the source I don't see any thing special that link the standard inputs to the skin, not sure if I am missing anything. I can't seem to get this to work.

      I also came across this post: http://jboss.com/index.html?module=bb&op=viewtopic&t=103494

      but the best I can get is the a4jSkin.additionalBackgroundColor but I don't get the gradient and style that is displayed on the live demo.

      Can some one point me in the right direction please?

      I am using version 3.2.0.

      Thanks!

      Delali

        • 1. Re: richfaces skin for h:inputText and commandButton?

          hi,

          have you inserted

          <context-param>
           <param-name>org.richfaces.CONTROL_SKINNING</param-name>
           <param-value>enable</param-value>
          </context-param>


          into web.xml?

          • 2. Re: richfaces skin for h:inputText and commandButton?
            ddzira1

            ahhh, that did the trick!! thanks!

            Now its being applied to everything, how can I disable it for certain links / buttons? can I override the style on specific styles?

            • 3. Re: richfaces skin for h:inputText and commandButton?
              ddzira1

              I was actually able to get most of my components working with:

               <context-param>
               <param-name>org.richfaces.CONTROL_SKINNING</param-name>
               <param-value>disable</param-value>
               </context-param>
               <context-param>
               <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
               <param-value>enable</param-value>
               </context-param>
              


              then adding the style directly to the component with:

              <h:inputText slyleClass="rich-select"/>
              
              


              Note, the style rich-input didn't seem to have the same net effect. This also worked on my buttons adding rich-button. The only component I couldn't get working was the rich:comboBox I would think this would be styled by default (with the gradient). But it doesn't seem that way. when I enable on control skinning for all components it works, when I disable it, can't seem to find out how to add the same gradient to the combo box individually.

              • 4. Re: richfaces skin for h:inputText and commandButton?
                ilya_shaikovsky

                This could be also solved using some parent with rich-container class specified for the region of controls which need to be skinned.