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 -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -