| java.lang.Object uk.org.ponder.rsf.components.UIComponent uk.org.ponder.rsf.components.UILink
All known Subclasses: uk.org.ponder.rsf.components.UIInternalLink,
UILink | public class UILink extends UIComponent (Code) | | Peers with any tag/control in markup which is associated with a URL. In HTML,
for example, these controls are links(<a>), <img>, <frame>,
<iframe> and <script> tags. In the case the component simple
navigational link, operating this link is expected to give rise to an
idempotent ("render") request. In the case where the control accepts some
text (links), this may be supplied as the linktext field,
which may be either a direct String value or a bound String such as a
UIMessage . For more complex command contents including bound ones,
leave linktext as null and add rendering components as childen
of the link in the template.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
linktext | public UIBoundString linktext(Code) | | A bound String representing any text to be rendered for this control *
|
target | public UIBoundString target(Code) | | A string representing the target of this link - e.g. in an HTML system, a
URL. In HTML in particular, the special prefix $context/ will be resolved
onto the context for the current webapp - that is, the directory
immediately above WEB-INF.
For an InternalLink this will be filled in by a fixup from the
ViewParameters member.
|
make | public static UILink make(UIContainer parent, String ID, String linktext, String target)(Code) | | Construct a navigation link.
Parameters: parent - Container to which the link is to be added. Parameters: ID - RSF ID of this link. Parameters: text - Text to be rendered for this link. Parameters: target - See Also: UILink.target |
make | public static UILink make(UIContainer parent, String ID)(Code) | | Construct a navigation link which will leave both link target and nested
markup unchanged from the template. This is useful, say, for conditionally
rendering a relative link from the template.
|
|
|