/** * 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. */ public static UILink make(UIContainer parent, String ID) { return make(parent, ID, (UIBoundString) null, null); }
/** * Construct a navigation link which will leave nested markup unchanged from * the template. */ public static UILink make(UIContainer parent, String ID, String target) { return make(parent, ID, (UIBoundString) null, target); }
/** * Construct a navigation link. * * @param parent Container to which the link is to be added. * @param ID RSF ID of this link. * @param text Text to be rendered for this link. * @param target See {@link #target} */ public static UILink make(UIContainer parent, String ID, String linktext, String target) { UIBoundString linktextnew = null; if (linktext != null) { linktextnew = new UIOutput(); linktextnew.setValue(linktext); } return make(parent, ID, linktextnew, target); }