Hi,
I was reading the developer guide and I saw that if you want to put custom HTML and JavaScript into a smartGWT app you should extend the Canvas class.
I was not able to find an example and I not sure how to proceed, of course I know how to extend a Java class, but how will I include my custom HTML/Javascript code into the nem Canvas class?
setContents(), or an override of getInnerHTML().
Thank you very much for your help, I’ll try that
Hi,
I tried the solution and unfortunately it didn’t work.
I would like to put the attached html into a canvas
public class GISBaseCavnas extends Canvas
{
@Override
public String getInnerHTML()
{
StringBuffer buff = new StringBuffer();
buff.append(HTML ATTACHED);
return buff.toString();
}
}
As a result it should display a text and a map.
The output i got was only the text.
Is there some limitation on smartgwt that I’m not aware of?
Or am I doing something wrong?
Thank you very much
testeDecarta.html (3.5 KB)