title: google-web-toolkit add alt attrib in image
body: <p>Hi I have an image that that has arrows. I want to add "alt" attribute.</p>
  
  <p>here is my class:</p>
  
  <pre><code>public interface DisclosurePanelArrows extends ClientBundle
  {
  
      public static final DisclosurePanelArrows INSTANCE = GWT.create(DisclosurePanelArrows.class);
  
      @Source("disclosurePanelClosed.png")
      ImageResource disclosurePanelClosed();
  
  
      @Source("disclosurePanelOpen.png")
      ImageResource disclosurePanelOpen();
  
  }
  </code></pre>
  
  <p>I used it in here: (not working)</p>
  
  <pre><code> closedImage = new ICMImage(DisclosurePanelArrows.INSTANCE.disclosurePanelClosed());
          openImage = new ICMImage(DisclosurePanelArrows.INSTANCE.disclosurePanelOpen());
   closedImage.getElement().setAttribute("alt", "close test alt");
          openImage.getElement().setAttribute("alt", "open test alt");
  </code></pre>
  
  <p>I noticed that the HTML tags are being created programatically and produces it in  a .gwtml file.</p>
  
  <p>The only js i found linked to it is this which is in the WAR folder so I am not sure.</p>
  
  <pre><code>function com_irondata_icmcase_ICMCase(){var O='',vb='" for "gwt:onLoadErrorFn"',tb='" for "gwt:onPropertyErrorFn"',hb='"&gt;&lt;\/script&gt;',Y='#',cc='../css/ICMCase.css',dc='../css/dummy.css',bc='../css/theme.css',Wb='.cache.html',$='/',Rb='3A2B8EBB69B48C7A8A7573A74E0C6812',Sb='59203CCA1EBBD79FD6BB80354E15F64D',Vb=':',nb='::',kc='&lt;script defer="defer"&gt;com_irondata_icmcase_ICMCase.onInjectionDone(\'com.irondata.icmcase.ICMCase\')&lt;\/script&gt;',gb='&lt;script id="',gc='&lt;script language="javascript" src="',qb='=',Z='?',Eb='ActiveXObject',sb='Bad handler "',Tb='C3CB1347D72F2C0FB0DF18AB080081C2',Fb='ChromeTab.ChromeFrame',Ub='DDDD212960179CCBED9A98B8863C29E1',ec='DOMContentLoaded',ib='SCRIPT',fb='__gwt_marker_com.irondata.icmcase.ICMCase',jb='base',bb='baseUrl',S='begin',R='bootstrap',Db='chromeframe',ab='clear.cache.gif',P='com.irondata.icmcase.ICMCase',db='com.irondata.icmcase.ICMCase.nocache.js',mb='com.irondata.icmcase.ICMCase::',pb='content',X='end',Lb='gecko',Mb='gecko1_8',T='gwt.codesvr=',U='gwt.hosted=',V='gwt.hybrid',Xb='gwt/chrome/chrome.css',ub='gwt:onLoadErrorFn',rb='gwt:onPropertyErrorFn',ob='gwt:property',ac='head',Pb='hosted.html?com_irondata_icmcase_ICMCase',_b='href',Kb='ie6',Jb='ie8',Ib='ie9',wb='iframe',_='img',xb="javascript:''",fc='js/amathcontext.js',hc='js/amathcontext.js"&gt;&lt;\/script&gt;',ic='js/bigdecimal.js',jc='js/bigdecimal.js"&gt;&lt;\/script&gt;',Yb='link',Ob='loadExternalRefs',kb='meta',zb='moduleRequested',W='moduleStartup',Hb='msie',lb='name',Bb='opera',yb='position:absolute;width:0;height:0;border:none;alt=""',Zb='rel',Gb='safari',cb='script',Qb='selectingPermutation',Q='startup',$b='stylesheet',eb='undefined',Nb='unknown',Ab='user.agent',Cb='webkit';var l=window,m=document,n=l.__gwtStatsEvent?function(a){return l.__gwtStatsEvent(a)}:null,o=l.__gwtStatsSessionId?l.__gwtStatsSessionId:null,p,q,r,s=O,t={},u=[],v=[],w=[],x=0,y,z;n&amp;&amp;n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:R,millis:(new Date).getTime(),type:S});if(!l.__gwt_stylesLoaded){l.__gwt_stylesLoaded={}}if(!l.__gwt_scriptsLoaded){l.__gwt_scriptsLoaded={}}function A(){var b=false;try{var c=l.location.search;return (c.indexOf(T)!=-1||(c.indexOf(U)!=-1||l.external&amp;&amp;l.external.gwtOnLoad))&amp;&amp;c.indexOf(V)==-1}catch(a){}A=function(){return b};return b}
  </code></pre>
  
  <p>I also tried this <a href="https://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/2f66508a088f7643/ce928b035afc1945#ce928b035afc1945" rel="nofollow">solution</a> but it is putting the alt in diff tag</p>
  
  <p>Any suggestions? thanks.</p>