"Fossies" - the Fresh Open Source Software Archive

Member "apidocs/src-html/org/apache/tapestry5/corelib/base/AbstractInternalPage.html" (9 Sep 2020, 4330 Bytes) of package /linux/www/apache-tapestry-5.6.1-apidocs.zip:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

001// Licensed under the Apache License, Version 2.0 (the "License");
002// you may not use this file except in compliance with the License.
003// You may obtain a copy of the License at
005//     http://www.apache.org/licenses/LICENSE-2.0
007// Unless required by applicable law or agreed to in writing, software
008// distributed under the License is distributed on an "AS IS" BASIS,
009// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
010// See the License for the specific language governing permissions and
011// limitations under the License.
013package org.apache.tapestry5.corelib.base;
015import org.apache.tapestry5.annotations.Import;
016import org.apache.tapestry5.annotations.Property;
017import org.apache.tapestry5.internal.InternalConstants;
018import org.apache.tapestry5.ioc.annotations.Inject;
019import org.apache.tapestry5.services.Request;
022 * Base page for Tapestry internal pages, that should suppress any application changes to the core stack's CSS.
023 * CSS from the core stack is suppressed, instead the internal stack (which exists for just this purpose)
024 * is imported.
025 *
026 * @since 5.4
027 */
028public abstract class AbstractInternalPage
030    @Inject @Property(write = false)
031    protected Request request;
033    void setupRender()
034    {
035        request.setAttribute(InternalConstants.SUPPRESS_CORE_STYLESHEETS, true);
036    }
038    @Import(stack = "internal")
039    void beginRender()
040    {
042    }