application.getDebugSettings().getComponentUseCheck())); add(new Label("compressWhitespace", "" + application.getMarkupSettings().getCompressWhitespace())); add(new Label("stripComments", "" + application.getMarkupSettings().getStripComments())); add(new Label("stripWicketTags", "" + application.getMarkupSettings().getStripWicketTags())); add(new Label("bufferResponse", "" + application.getRequestCycleSettings().getBufferResponse()));
/** * Construct. */ public WicketLinkTagHandler() { setAutomaticLinking(Application.get().getMarkupSettings().getAutomaticLinking()); }
@Override protected void onBeforeRender() { super.onBeforeRender(); // Set default for before/after link text if (beforeDisabledLink == null) { final Application app = getApplication(); beforeDisabledLink = app.getMarkupSettings().getDefaultBeforeDisabledLink(); afterDisabledLink = app.getMarkupSettings().getDefaultAfterDisabledLink(); } }
@Override public void init() { super.init(); getMarkupSettings().setStripWicketTags(true); mountPage("/basic", BasicExamplesPage.class); mountPage("/basic/helloworld", HelloWorldPage.class); mountPage("/basic/linkcounter", LinkCounterPage.class); mountPage("/basic/guestbook", GuestbookPage.class); mountPage("/components", ComponentExamplesPage.class); }
if (Application.get().getMarkupSettings().getStripWicketTags())
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT. * * @return The markup cache associated with the application * @deprecated please use {@link IMarkupSettings#getMarkupCache()} instead */ @Deprecated public final IMarkupCache getMarkupCache() { return getMarkupSettings().getMarkupCache(); }
markupSettings.getDefaultMarkupEncoding()); if (markupSettings.getThrowExceptionOnMissingXmlDeclaration())
final boolean stripComments = markupSettings.getStripComments(); final boolean compressWhitespace = markupSettings.getCompressWhitespace();
getMarkupSettings().setStripWicketTags(false); getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_EXCEPTION_PAGE); getMarkupSettings().setStripWicketTags(true); getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
if (Application.get().getMarkupSettings().getStripWicketTags())
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT. * * @return The markup cache associated with the application * @deprecated please use {@link IMarkupSettings#getMarkupCache()} instead */ public final IMarkupCache getMarkupCache() { return getMarkupSettings().getMarkupCache(); }
markupSettings.getDefaultMarkupEncoding()); if (markupSettings.getThrowExceptionOnMissingXmlDeclaration())
final boolean stripComments = markupSettings.getStripComments(); final boolean compressWhitespace = markupSettings.getCompressWhitespace();
@Override protected void init() { getMarkupSettings().setStripWicketTags(true); AnnotationsKiAuthorizationStrategy authz = new AnnotationsKiAuthorizationStrategy(); getSecuritySettings().setAuthorizationStrategy(authz); getSecuritySettings().setUnauthorizedComponentInstantiationListener( new KiUnauthorizedComponentListener(LoginPage.class, UnauthorizedPage.class, authz)); mountBookmarkablePage("account/login", LoginPage.class); mountBookmarkablePage("account/logout", LogoutPage.class); mountBookmarkablePage("admin", RequireAdminRolePage.class); mountBookmarkablePage("view", RequireViewPermissionPage.class); mountBookmarkablePage("auth", RequireAuthPage.class); }
/** * @see org.apache.wicket.Component#onBeforeRender() */ @Override protected void onBeforeRender() { RuntimeConfigurationType configurationType = Application.get().getConfigurationType(); if (configurationType.equals(RuntimeConfigurationType.DEVELOPMENT) && !Application.get().getMarkupSettings().getStripWicketTags()) { log.warn("Application is in DEVELOPMENT mode && Wicket tags are not stripped," + " Firefox 3.0 will not render the GMap." + " Change to DEPLOYMENT mode || turn on Wicket tags stripping." + " See:" + " http://www.nabble.com/Gmap2-problem-with-Firefox-3.0-to18137475.html."); } super.onBeforeRender(); }
/** * @return True if this markup container has associated markup */ public boolean hasAssociatedMarkup() { return getApplication().getMarkupSettings().getMarkupCache().hasAssociatedMarkup(this); }
protected void onBeforeRender() { super.onBeforeRender(); // Set default for before/after link text if (beforeDisabledLink == null) { final Application app = getApplication(); beforeDisabledLink = app.getMarkupSettings().getDefaultBeforeDisabledLink(); afterDisabledLink = app.getMarkupSettings().getDefaultAfterDisabledLink(); } }
/** * Construct. */ public WicketLinkTagHandler() { setAutomaticLinking(Application.get().getMarkupSettings().getAutomaticLinking()); }
getMarkupSettings().setStripWicketTags(false); getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_EXCEPTION_PAGE); getMarkupSettings().setStripWicketTags(true); getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
Application.get().getMarkupSettings().getStripWicketTags();