I have a vaadin class that extends a div and displays standard Vaadin components.
public class MyView extends Div {
private H3 header3 = new H3("Header");
public MyView() {
add(header3);
}
}
The footer of the page uses a footer html tag and is a static piece of html.
The footer has been given to me as part of an html file from a 3rd. party so I don’t really control its content and it could change.
I could add the footer by adding the contents of the footer element in the html file (all the div elements etc.) to the page but I was wondering if there was a better way to do it.
Is it possible to “include” the piece of “footer” html into my page so that if it did change I could just change the static piece of html rather than having to modify my Java code.
So my view class becomes something like the following …
public class MyView extends Div {
private H3 header3 = new H3("Header");
public MyView() {
add(header3);
add_my_externally_supplied_footer("footer.html")
}
}
I’d be gratefol for any suggestions.
John.