So I have these graphic buttons on my menu. They have 2 versions of them, 1 active and 1 inactive image. When I click on for instance the "forum" button, I would like my "inactive" image on that link, to become "active", and the "Index active" button, to become inactive.
This is how the buttons look in the menu:
When I click that link I want the
and the currently used Index-active.jpg to become Index-unactive.jpg
Is there any "easy" way to do this?
Joined: Oct 21, 2010
I've accomplished things like this before using the "rendered" attribute tied to a boolean value in a backing bean. For example, you could say:
That's how I've accomplished this before.
Hope that helps
Joined: Oct 27, 2011
Yes! That is perfect. A great way to solve it. I am having a few troubles making the myBean tho