java - Which UI component can contain static html files? -


i want display static html file in vaadin view. use com.vaadin.server.fileresource class under:

string basepath = vaadinservice.getcurrent().getbasedirectory().getabsolutepath(); fileresource resource = new fileresource(new file(basepath + "/web-inf/my_file.html")); 

but dont know can use this.?

you can use label component this. set html content mode , read content of html file , set label text.

see here


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -