星期二, 7月 05, 2011

Javascript library loading in Vaadin


3
4
5
6
7
8
public class TDMApplicationServlet extends ApplicationServlet {

    @Override
    protected void writeAjaxPageHtmlHeader(BufferedWriter page, String title, String themeUri) throws IOException {
        super.writeAjaxPageHtmlHeader(page, title, themeUri);
        page.append("<script type=\"text/javascript\" src=\"../charts/FusionCharts.js\"></script>");
    }
}

沒有留言: