@Override protected void onConfigure() { super.onConfigure(); WebMarkupContainer container = new WebMarkupContainer("output") { @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { try { CharArrayWriter baos = new CharArrayWriter(0); DocumentationDefinitionResolver.get().renderDocumentationHTML(typeLoader.loadTypeOrException(stypeClass), baos); replaceComponentTagBody(markupStream, openTag, baos.toString()); } catch (Exception e) { throw SingularException.rethrow(e.getMessage(), e); } } }; queue(container); } }
@Override protected void onConfigure() { super.onConfigure(); WebMarkupContainer container = new WebMarkupContainer("output") { @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { try { CharArrayWriter baos = new CharArrayWriter(0); DocumentationDefinitionResolver.get().renderDocumentationHTML(typeLoader.loadTypeOrException(stypeClass), baos); replaceComponentTagBody(markupStream, openTag, baos.toString()); } catch (Exception e) { throw SingularException.rethrow(e.getMessage(), e); } } }; queue(container); } }
@Override protected void onConfigure() { super.onConfigure(); WebMarkupContainer container = new WebMarkupContainer("output") { @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { try { CharArrayWriter baos = new CharArrayWriter(0); DocumentationDefinitionResolver.get().renderDocumentationHTML(typeLoader.loadTypeOrException(stypeClass), baos); replaceComponentTagBody(markupStream, openTag, baos.toString()); } catch (Exception e) { throw SingularException.rethrow(e.getMessage(), e); } } }; queue(container); } }
@Override protected void onConfigure() { super.onConfigure(); logoutPanel.setVisible(AuthenticatedWebSession.get().isSignedIn()); }
@Override protected void onConfigure() { super.onConfigure(); // Clean up comments for comments older than one hour for (Comment comment : comments) { Time createdAt = Time.valueOf(comment.getCreatedAt()); if (Duration.elapsed(createdAt).seconds() > 10) { comments.remove(comment); } } }
@Override protected void onConfigure() { super.onConfigure(); // Do not cache pages in development mode - allows us to make changes to the HMTL without // having to reload the application if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) { getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); getApplication().getResourceSettings() .setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE); } }
@Override protected void onConfigure() { super.onConfigure(); // Do not cache pages in development mode - allows us to make changes to the HMTL without // having to reload the application if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) { getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); getApplication().getResourceSettings().setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE); } }
@Override protected void onConfigure() { super.onConfigure(); // Do not cache pages in development mode - allows us to make changes to the HMTL without // having to reload the application if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) { getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); getApplication().getResourceSettings() .setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE); } }