|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.AutoLinkResolver
The AutoLinkResolver is responsible to handle automatic link resolution. Autolink components are automatically created by MarkupParser for anchor tags with no explicit wicket component. E.g. <a href="Home.html">
For each such tag a BookmarkablePageLink will be automatically created, with one exception. An ExternalLink is created is if the URL is absolute (starts with "/") and does not reference a valid Page class.
It resolves the given URL by searching for a page class, either relative or absolute, specified by the href attribute of the tag. If relative the href URL must be relative to the package containing the associated page. An exception is thrown if no Page class was found.
WicketLinkTagHandler| Nested Class Summary | |
static class |
AutoLinkResolver.AutolinkBookmarkablePageLink
Autolink components delegate component resolution to their parent components. |
static class |
AutoLinkResolver.AutolinkExternalLink
Autolink component delegate component resolution to their parent components. |
| Constructor Summary | |
AutoLinkResolver()
|
|
| Method Summary | |
boolean |
resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
Automatically creates a BookmarkablePageLink component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AutoLinkResolver()
| Method Detail |
public final boolean resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
resolve in interface IComponentResolvermarkupStream - The current markupStreamtag - The current component tag while parsing the markupcontainer - The container parsing its markup
IComponentResolver.resolve(MarkupContainer,
MarkupStream, ComponentTag)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||