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 -

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

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -