/** * @see org.apache.wicket.jmx.DebugSettingsMBean#setComponentPathAttributeName(boolean) */ @Override public void setComponentPathAttributeName(final String name) { application.getDebugSettings().setComponentPathAttributeName(name); }
@Before public void setOutputPaths() { GeoServerApplication.get().getDebugSettings().setComponentPathAttributeName("wicketPath"); }
getDebugSettings().setComponentPathAttributeName("syncope-path");
@Override public void init(WebApplication webApplication) { if(properties.isEnabled()){ DebugSettings debugSettings = webApplication.getDebugSettings(); debugSettings.setDevelopmentUtilitiesEnabled(properties.isDevelopmentUtilitiesEnabled()); debugSettings.setAjaxDebugModeEnabled(properties.isAjaxDebugModeEnabled()); debugSettings.setComponentUseCheck(properties.isComponentUseCheck()); debugSettings.setOutputMarkupContainerClassName(properties.isOutputMarkupContainerClassName()); debugSettings.setComponentPathAttributeName(properties.getComponentPathAttributeName()); } wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", properties) .build()); }
@Override public void init(WebApplication webApplication) { if(properties.isEnabled()){ DebugSettings debugSettings = webApplication.getDebugSettings(); debugSettings.setDevelopmentUtilitiesEnabled(properties.isDevelopmentUtilitiesEnabled()); debugSettings.setAjaxDebugModeEnabled(properties.isAjaxDebugModeEnabled()); debugSettings.setComponentUseCheck(properties.isComponentUseCheck()); debugSettings.setOutputMarkupContainerClassName(properties.isOutputMarkupContainerClassName()); debugSettings.setComponentPathAttributeName(properties.getComponentPathAttributeName()); } wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", properties) .build()); }
@Override public void init() { super.init(); getRequestCycleSettings().setTimeout(Duration.minutes(5)); getRequestCycleListeners().add(new SingularServerContextListener()); Locale.setDefault(new Locale("pt", "BR"));//NOSONAR getApplicationSettings().setAccessDeniedPage(Error403Page.class); getApplicationSettings().setPageExpiredErrorPage(Page410.class); // Don't forget to check your Application server for this getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(10)); getMarkupSettings().setStripWicketTags(true); getMarkupSettings().setStripComments(true); getMarkupSettings().setDefaultMarkupEncoding(StandardCharsets.UTF_8.name()); getComponentOnConfigureListeners().add(component -> { boolean outputId = !component.getRenderBodyOnly(); component.setOutputMarkupId(outputId).setOutputMarkupPlaceholderTag(outputId); }); getComponentInstantiationListeners().add(new SpringComponentInjector(this, getApplicationContext(), true)); new SingularAnnotatedMountScanner().mountPages(this); if (RuntimeConfigurationType.DEVELOPMENT == getConfigurationType()) { getDebugSettings().setComponentPathAttributeName("wicketdebug"); WicketSerializationDebugUtil.configurePageSerializationDebug(this, this.getClass()); } }
@Override public void init() { super.init(); getRequestCycleSettings().setTimeout(Duration.minutes(5)); getRequestCycleListeners().add(new SingularServerContextListener()); Locale.setDefault(new Locale("pt", "BR"));//NOSONAR getApplicationSettings().setAccessDeniedPage(Error403Page.class); getApplicationSettings().setPageExpiredErrorPage(Page410.class); // Don't forget to check your Application server for this getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(10)); getMarkupSettings().setStripWicketTags(true); getMarkupSettings().setStripComments(true); getMarkupSettings().setDefaultMarkupEncoding(StandardCharsets.UTF_8.name()); getComponentOnConfigureListeners().add(component -> { boolean outputId = !component.getRenderBodyOnly(); component.setOutputMarkupId(outputId).setOutputMarkupPlaceholderTag(outputId); }); getComponentInstantiationListeners().add(new SpringComponentInjector(this, getApplicationContext(), true)); new SingularAnnotatedMountScanner().mountPages(this); if (RuntimeConfigurationType.DEVELOPMENT == getConfigurationType()) { getDebugSettings().setComponentPathAttributeName("wicketdebug"); WicketSerializationDebugUtil.configurePageSerializationDebug(this, this.getClass()); } }
@Override public void init() { super.init(); setPageManagerProvider(new RequirementPageManagerProvider(this)); getStoreSettings().setMaxSizePerSession(Bytes.megabytes(20)); getRequestCycleSettings().setTimeout(Duration.minutes(5)); getRequestCycleListeners().add(new SingularRequirementContextListener()); Locale.setDefault(new Locale("pt", "BR"));//NOSONAR getApplicationSettings().setAccessDeniedPage(Page403.class); getApplicationSettings().setPageExpiredErrorPage(Page410.class); // Don't forget to check your Application server for this getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(10)); getMarkupSettings().setStripWicketTags(true); getMarkupSettings().setStripComments(true); getMarkupSettings().setDefaultMarkupEncoding(StandardCharsets.UTF_8.name()); getComponentOnConfigureListeners().add(component -> { boolean outputId = !component.getRenderBodyOnly(); component.setOutputMarkupId(outputId).setOutputMarkupPlaceholderTag(outputId); }); getComponentInstantiationListeners().add(new SpringComponentInjector(this, getApplicationContext(), true)); new SingularAnnotatedMountScanner().mountPages(this); if (RuntimeConfigurationType.DEVELOPMENT == getConfigurationType()) { getDebugSettings().setComponentPathAttributeName("wicketdebug"); WicketSerializationDebugUtil.configurePageSerializationDebug(this, this.getClass()); } }
@Override public void init() { super.init(); getRequestCycleSettings().setTimeout(Duration.minutes(5)); getRequestCycleListeners().add(new SingularServerContextListener()); Locale.setDefault(new Locale("pt", "BR")); getApplicationSettings().setAccessDeniedPage(Error403Page.class); getApplicationSettings().setPageExpiredErrorPage(Page410.class); // Don't forget to check your Application server for this getApplicationSettings().setDefaultMaximumUploadSize(Bytes.megabytes(10)); getMarkupSettings().setStripWicketTags(true); getMarkupSettings().setStripComments(true); getMarkupSettings().setDefaultMarkupEncoding("UTF-8"); getComponentOnConfigureListeners().add(component -> { boolean outputId = !component.getRenderBodyOnly(); component.setOutputMarkupId(outputId).setOutputMarkupPlaceholderTag(outputId); }); if (applicationContext != null) { getComponentInstantiationListeners().add(new SpringComponentInjector(this, applicationContext, true)); } else { getComponentInstantiationListeners().add(new SpringComponentInjector(this)); applicationContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); } new AnnotatedMountScanner().scanPackage("org.opensingular").mount(this); for (String packageName : getPackagesToScan()) { new AnnotatedMountScanner().scanPackage(packageName).mount(this); } getDebugSettings().setComponentPathAttributeName("wicketpath"); }