Image button disable/enable
Hello
I currently have a set of images i would like to use for buttons. For each button there is a enable and disable image.
When i do a commit operation button, it will be disabled when commit is not possible and at this point the disable image should be shown on the button. Then of course the opposite should be when it is enable then i would like to show the enabled image.
Is there any way to get this done easily?
What i would like to do, is to have some kind of observer method in a bean which looks at the binding.commit.enabled and when it change execute the bean method. This method would then take care of changing the picture. But how can i accomplish this while still keeping it simple, since it might needed to be used all over the application which is splitted into several workspaces?
Thank in advance.