Package ui

Examples of ui.HtmlStream


    F.Promise<String> searchPromise = ServiceClientJ.makeServiceCall("search");

    F.Promise<Html> wvypHtmlPromise = render(wvypPromise, views.html.wvyp.wvypCount.f());
    F.Promise<Html> searchHtmlPromise = render(searchPromise, views.html.wvyp.searchCount.f());

    HtmlStream wvypStream = Pagelet.renderStream(wvypHtmlPromise, "wvypCount");
    HtmlStream searchStream = Pagelet.renderStream(searchHtmlPromise, "searchCount");

    HtmlStream body = HtmlStream.interleave(Arrays.asList(wvypStream, searchStream));

    return ok(HtmlStream.toChunks(views.stream.wvyp.wvyp.apply(body)));
  }
View Full Code Here

TOP

Related Classes of ui.HtmlStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.