private void configureReload(WebPage destination) { destination.add(new Behavior() { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptReferenceHeaderItem.forReference(new PackageResourceReference(ServerTemplate.class, "singular.js"))); } }); destination.add($b.onReadyScript(() -> " Singular.atualizarContentWorklist(); ")); }
protected void configureReload(WebPage destination) { destination.add(new Behavior() { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptReferenceHeaderItem.forReference(new PackageResourceReference(Template.class, "singular.js"))); } }); destination.add($b.onReadyScript(() -> " Singular.atualizarContentWorklist(); ")); }
private void configureReload(WebPage destination) { destination.add(new Behavior() { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptReferenceHeaderItem.forReference(new PackageResourceReference(ServerTemplate.class, "singular.js"))); } }); destination.add($b.onReadyScript(() -> " Singular.atualizarContentWorklist(); ")); }
/** * Common code executed by constructors. */ private void commonInit() { // if automatic multi window support is on, add a page checker instance if (getApplication().getPageSettings().getAutomaticMultiWindowSupport()) { add(new PageMapChecker(this)); } }
/** * Common code executed by constructors. */ private void commonInit() { // if automatic multi window support is on, add a page checker instance if (getApplication().getPageSettings().getAutomaticMultiWindowSupport()) { add(new PageMapChecker(this)); } }
add(header);