in my HTML ho...">

How to access gwt properties: properties from code?

For example, if I have

<meta name="gwt:property" content="variable=value"/> 

in my HTML host, how can I access it from java?

+4
source share
1 answer

Not sure if you can get this particular meta directly, but with the following GWT code you can get the content:

  final NodeList<Element> metas = Document.get().getElementsByTagName("meta"); for (int i = 0; i < metas.getLength(); i++) { final MetaElement m = MetaElement.as(metas.getItem(i)); if ("gwt:property".equals(m.getName())) { //do something with content: m.getContent(); } } 
+5
source

Source: https://habr.com/ru/post/1379088/


All Articles