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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -