T
- as UserNotification
typepublic class NotificationsContainer<T extends UserNotification<?>>
extends org.apache.wicket.markup.html.list.ListView<T>
UserNotification
s that uses a CompoundPropertyModel
over each "notification" Fragment
<ul wicket:id="notificationContainer" class="status_STATUS severity_SEVERITY tag1 tag2 tag3"> <!-- If UserNotification.tags is comma or space separated; class will covert to white spaces -->
<li wicket:id="notification" />
</ul>
<wicket:fragment wicket:id="UserNotification"> <!-- Matches the Simple class name of the UserNotification type -->
<label wicket:id="message" />
<label wicket:id="count" />
<input wicket:id="severity" type="hidden" />
<input wicket:id="status" type="hidden" />
<input wicket:id="tags" type="hidden" />
<input wicket:id="recipient" type="hidden" />
</wicket:fragment>
Constructor and Description |
---|
NotificationsContainer(String id,
List<T> list) |
Modifier and Type | Method and Description |
---|---|
protected void |
populateFragmentForNotificationType(Class<T> type,
org.apache.wicket.markup.html.panel.Fragment notificationFragment)
By default cater to
UserNotification type; put all data in DynamicFormField variables |
protected void |
populateItem(org.apache.wicket.markup.html.list.ListItem<T> item) |
getList, getListItemModel, getModel, getModelObject, getReuseItems, getStartIndex, getViewSize, iterator, moveDownLink, moveUpLink, newItem, onBeginPopulateItem, onPopulate, removeLink, renderChild, renderItem, renderIterator, setList, setModel, setModelObject, setReuseItems, setStartIndex, setViewSize
onBeforeRender, onRender
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onComponentTag, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, 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 void populateItem(org.apache.wicket.markup.html.list.ListItem<T> item)
populateItem
in class org.apache.wicket.markup.html.list.ListView<T extends UserNotification<?>>
protected void populateFragmentForNotificationType(Class<T> type, org.apache.wicket.markup.html.panel.Fragment notificationFragment)
UserNotification
type; put all data in DynamicFormField
variablesnotificationFragment
- Copyright © 2018. All rights reserved.