public class GenericStaticPageWrapper extends Object
WebPage
that invokes this to be located, it is important that a bean entry of StaticPageMountPointLoader
be defined in the context
that will allow for the page to be located in the first place.Constructor and Description |
---|
GenericStaticPageWrapper() |
Modifier and Type | Method and Description |
---|---|
String |
getBasePagePath()
Prefix this to the URL's page path
If supplied; will negate the path folders from the Expected URL resource path. |
String |
getChildPageComponentName() |
protected void |
processSpecialTags(WicketExtendInput input,
org.apache.wicket.MarkupContainer templateContainerOrPage) |
void |
processStaticPage(org.apache.wicket.MarkupContainer templateContainerOrPage,
String webRelativePath) |
void |
processStaticRequests(org.apache.wicket.MarkupContainer templateContainerOrPage,
String staticPathPrefix) |
void |
setBasePagePath(String basePagePath)
Prefix this to the URL's page path
If supplied; will negate the path folders from the Expected URL resource path. |
void |
setChildPageComponentName(String childPageComponentName) |
public String getChildPageComponentName()
public void setChildPageComponentName(String childPageComponentName)
public void processStaticPage(org.apache.wicket.MarkupContainer templateContainerOrPage, String webRelativePath)
templateContainerOrPage
- as WebPage
to the Template that represents all Static PageswebRelativePath
- as complete relative web path + fileName where the static pages will be found.public void processStaticRequests(org.apache.wicket.MarkupContainer templateContainerOrPage, String staticPathPrefix)
templateContainerOrPage
- as WebPage
to the Template that represents all Static PagesstaticPathPrefix
- as relative web path where the static pages will be found.protected void processSpecialTags(WicketExtendInput input, org.apache.wicket.MarkupContainer templateContainerOrPage)
public String getBasePagePath()
StaticPageMountPointLoader.getBasePagePath()
is set to "subcontext/" ; then if basePagePath
is null or "" it will expect the static
files to exist in the folder/path "subcontext/..."
StaticPageMountPointLoader.getBasePagePath()
then the path can remain relative to root as it will do a String.replaceFirst(String, String)
on the generated path and remove the matching basePath.public void setBasePagePath(String basePagePath)
StaticPageMountPointLoader.getBasePagePath()
is set to "subcontext/" ; then if basePagePath
is null or "" it will expect the static
files to exist in the folder/path "subcontext/..."
StaticPageMountPointLoader.getBasePagePath()
then the path can remain relative to root as it will do a String.replaceFirst(String, String)
on the generated path and remove the matching basePath.Copyright © 2018. All rights reserved.