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.
Comments
Post a Comment