I’ve not seen a useful, authoritative web resource which says how to reliably enable rollover effects on a4j:commandButton elements in RichFaces JSF content.
I have found plenty of css resources re buttons, but then when they start talking about html I start wondering what the equivalent is in more recent web technologies.
Basically I want my buttons to look different on hover and then on click. I’d like to use images but client side js is out of scope for this q.
m
Use the following attributes as in this example below to your
a4j:commandButton(have a look at the full list (v3.3.1.GA)):And create classes
ctlBtn,btnHoverandbtnDownin your included .css file.