public class ContextPathGenerator extends Behavior
http://localhost/context/product/1231 and the specified url is
images/border.jpg the generated url will be ../../images/border.jpg| Constructor and Description |
|---|
ContextPathGenerator(IModel<String> contextRelativePath)
Constructor
|
ContextPathGenerator(String contextRelativePath)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach(Component component)
Allows the behavior to detach any state it has attached during request processing.
|
void |
onComponentTag(Component component,
ComponentTag tag)
Called any time a component that has this behavior registered is rendering the component tag.
|
afterRender, beforeRender, bind, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove, renderHead, unbindpublic ContextPathGenerator(IModel<String> contextRelativePath)
contextRelativePath - context-relative path, eg images/border.jpgpublic ContextPathGenerator(String contextRelativePath)
contextRelativePath - context-relative path, eg images/border.jpgpublic void onComponentTag(Component component, ComponentTag tag)
onComponentTag in class Behaviorcomponent - the component that renders this tag currentlytag - the tag that is renderedCopyright © 2006–2014 Apache Software Foundation. All rights reserved.