This content has been marked as final.
Show 3 replies
-
1. Re: a4jcommandButton changing image
ilya_shaikovsky May 23, 2007 9:13 AM (in response to prashantak)check in your client side functions that performs chnge the images if the button disabled.
Or did I miss something? -
2. Re: a4jcommandButton changing image
prashantak May 24, 2007 2:28 AM (in response to prashantak)Can you send me some workaround as there is no attribute like 'Disabled Icon' that will change image runtime acording to the disabled attribute .
Can you plz explain more as I din't get your ans.
Thanx Prashantak, -
3. Re: a4jcommandButton changing image
ilya_shaikovsky May 24, 2007 8:00 AM (in response to prashantak)simplified example
<a4j:commandButton disabled="..." image="/pages/colorado.gif" action="greeting" onmouseover="changeicon()" id="button"></a4j:commandButton>
and JS:function changeicon(){ if (document.getElementById('form:button').disabled==false){ document.getElementById('form:button').src='nebraska.gif'; }; };
So just check if the button disabled and then changing icon