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,--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0Sf9PQUIcxEJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
public static void setMetaDescription(String description){
NodeList<Element> nodes = Document.get().getElementsByTagName("meta");
for( int i = 0; i < nodes.getLength(); i++ ){
MetaElement meta = (MetaElement)nodes.getItem(i);
if( "description".equals(meta.getName()) ){
meta.setContent(description);
break;
}
}
}