Re: how to add meta tag in the header's page [with uibinder ?]

2012-12-31 Thread Benjamin Possolo
Here is an example for setting the description meta element public static void setMetaDescription(String description){ NodeListElement nodes = Document.get().getElementsByTagName(meta); for( int i = 0; i nodes.getLength(); i++ ){ MetaElement meta = (MetaElement)nodes.getItem(i); if(

how to add meta tag in the header's page [with uibinder ?]

2012-12-19 Thread Axel REGNOULT
Hello, I know how to change meta tags in my main html page (the one that does a call to the gwt's bootstrap script)... But I do not know how could I add the meta name=robots content=noindex in the header of my error page. Any solution including uibinder would be interesting. Thanks you, --

Re: how to add meta tag in the header's page [with uibinder ?]

2012-12-19 Thread Matthew Dempsky
What error page are you referring to? Do you mean the 404 or 502 errors returned by your web server? If so, I don't think GWT or UiBinder has anything to do with that, and you just need to add the meta tag to whatever file your web server is configured to serve for those errors. If you mean

Re: how to add meta tag in the header's page [with uibinder ?]

2012-12-19 Thread Axel REGNOULT
Ok, I mean that my site has some pages 'under construction'. For example, if you click on the 'foto menu' so I will *not* show *www.mysite/foto** *but *www.mysite/error*...(my error page explains that my site is under construction but I do not want this page indexed or referenced by the google