This content has been marked as final.
Show 3 replies
-
2. Re: rich:inputNumberSpinner style for other input fields
hispeedsurfer Mar 13, 2007 6:11 AM (in response to hispeedsurfer)Hi,
thank you Sergey.
I use nowstyleClass="dr-spnr-e"
to get the slightly blue background-color.
Some hours before I used Firebug to inspect the inputNumberSpinner tag but in this styleclass "dr-spnr-e" I can't see anything to color the background.
Bye
Andi -
3. Re: rich:inputNumberSpinner style for other input fields
sergeysmirnov Mar 13, 2007 4:10 PM (in response to hispeedsurfer)This is from FireBug:
dr-spnr-e {eAFbJaehBAADeAET.... (line 38) background-image:url(/richfaces-demo/a4j.res/org.richfaces.renderkit.html.images.background.SpinnerFieldGradient/DATA/eAF<skipped>__.jsf); }
So, this is a dynamically generated image. The parameters required for generating are at the tail of the request string.
From SpinnerFieldGradient.java :import org.richfaces.renderkit.html.BaseGradient; public class SpinnerFieldGradient extends BaseGradient { public SpinnerFieldGradient() { super(30, 50, 12, "additionalBackgroundColor", "controlBackgroundColor"); } }
Conclusion - two colors for gradient image are taken from two skin-parameters:
additionalBackgroundColor
controlBackgroundColor