C
- @Deprecated public abstract class CategoryTemplatePage<C extends ContentDescriber,T extends Template<TemplatePage>> extends PublishTemplatePage<T,ContentDescriber>
TemplatePage
s Template
FacetMeta
are applied to the category on the page like a regular Page.
For the children there is an additional templateForChild
to apply for the rending of each child element. Each child element is hence expected to be built on that
Template
to supply the relevant information.
ListView
s
Modifier and Type | Field and Description |
---|---|
protected String |
categoryName
Deprecated.
|
protected TemplatePage |
parentTemplate
Deprecated.
Ideally one would want to extend this Class from a Custom template so that all the template properties are inherited.
|
protected Template<TemplatePage> |
templateForChild
Deprecated.
For the rendering of the Child elements what template will be Used and so the Child will be defined as per the facets in this template
|
facetContentCache
contentDesc, template, templateService
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
ALL_RECS, CAMPAIGN_ID, LANG, PAGE_ID, PAGE_MODE_MOBILE, PAGE_MODE_POPUP, PAGE_NAME, PAGE_NUM, PAGE_PARAM, PAGE_PARENT, PAGE_PARENT_ID, PAGE_REFERRER, PAGE_TYPE, PREVIEW
Constructor and Description |
---|
CategoryTemplatePage()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Page<C> |
categoryPageExtractionhandler()
Deprecated.
How using the parent category we wish to extract the children.
|
protected abstract void |
errorHandler(Exception e)
Deprecated.
Get the custom error handler Page
|
protected org.apache.wicket.MarkupContainer |
getFacetContainer()
Deprecated.
By default the container for all the facets is the template page at row level.
|
TemplatePage |
getParentTemplate()
Deprecated.
|
protected Class<? extends TemplatePage> |
getTemplatePageClass()
Deprecated.
|
protected void |
iterateAndAddContentFacetsToPage(org.apache.wicket.MarkupContainer container,
ContentDescriber contentDesc,
Collection<? extends FacetMeta> facets)
Deprecated.
Iterates over the collection of ? extends
FacetMeta s and adds them using {@link #getComponentForFacet(ContentFacet)} to the {@link TemplatePage}. |
void |
onInitialize()
Deprecated.
|
protected abstract void |
populateChild(org.apache.wicket.markup.html.list.ListItem<C> item)
Deprecated.
Can override further based on any custom rendering requirements
|
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Deprecated.
|
void |
setParentTemplate(TemplatePage parentTemplate)
Deprecated.
|
getComponentForFacet, getContentDescriber, getContentService
allowOnPage, checkPageMatchesTemplate, fetchContentForPage, getContainerForFacet, getContent, getNewContentInstance, getPageContext, getPageLocale, getTemplate
configureResponse, getMarkupType, getUrlCompressor, getWebRequestCycle, homePageLink, onAfterRender, onNewBrowserWindow, setHeaders
afterCallComponent, beforeCallComponent, componentChanged, componentRendered, detachModels, dirty, endComponentRender, expireOldestVersion, getAjaxVersionNumber, getAutoIndex, getAutoIndex2, getCurrentVersionNumber, getId, getNumericId, getPageClass, getPageId, getPageMap, getPageMapEntry, getPageMapName, getPageParameters, getPageReference, getSizeInBytes, getStatelessHint, getVersion, getVersions, hierarchyAsString, ignoreVersionMerge, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, moveToPageMap, newVersionManager, onBeforeRender, onDetach, onPageAttached, onRedirect, onRender, prepareForRender, removePersistedFormData, renderPage, rollbackPage, setNumericId, setStatelessHint, startComponentRender, toString, writeReplace
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAttach, onBeginRequest, onComponentTag, onConfigure, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
protected transient String categoryName
protected Template<TemplatePage> templateForChild
protected TemplatePage parentTemplate
TemplatePage
pass the desired parent; it will decorate that (Optional)protected void iterateAndAddContentFacetsToPage(org.apache.wicket.MarkupContainer container, ContentDescriber contentDesc, Collection<? extends FacetMeta> facets)
FacetMeta
s and adds them using {@link #getComponentForFacet(ContentFacet)} to the {@link TemplatePage}.
iterateAndAddContentFacetsToPage
in class TemplatePage<T extends Template<TemplatePage>,ContentDescriber>
container
- @nullable true (if not null then it adds facets to specified container, else it adds to the page directly)contentDesc
- as ContentDescriber
@nullable truefacets
- as Collection
of ? extends ContentFacet
protected Page<C> categoryPageExtractionhandler()
protected abstract void populateChild(org.apache.wicket.markup.html.list.ListItem<C> item)
item
- protected abstract void errorHandler(Exception e)
e
- @nullable truepublic TemplatePage getParentTemplate()
public void setParentTemplate(TemplatePage parentTemplate)
protected org.apache.wicket.MarkupContainer getFacetContainer()
Template
Facets are added to this.getFacetContainer
in class TemplatePage<T extends Template<TemplatePage>,ContentDescriber>
MarkupContainer
public void onInitialize()
onInitialize
in class TemplatePage<T extends Template<TemplatePage>,ContentDescriber>
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class PublishTemplatePage<T extends Template<TemplatePage>,ContentDescriber>
protected Class<? extends TemplatePage> getTemplatePageClass()
getTemplatePageClass
in class TemplatePage<T extends Template<TemplatePage>,ContentDescriber>
Copyright © 2018. All rights reserved.