@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("href", "#"+content.getMarkupId()); } }.add(new Label("title", tabs.get(i).getTitle())));
@Override protected void onComponentTag(final ComponentTag tag) { if (!Components.hasTagName(tag, "div", "li")) { tag.setName("div"); } super.onComponentTag(tag); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put("href", "#" + content.getMarkupId()); } }.add(new Label("title", tabs.get(i).getTitle())));
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (isLinkEnabled()) { if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") || tag.getName().equalsIgnoreCase("area")) { tag.put("href", "#"); } } else { disableLink(tag); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (isEnabledInHierarchy()) { String tagName = tag.getName(); if (tagName.equalsIgnoreCase("a") || tagName.equalsIgnoreCase("link") || tagName.equalsIgnoreCase("area")) { // disable any href attr in markup tag.put("href", "javascript:;"); } else if (tagName.equalsIgnoreCase("button")) { // WICKET-5597 prevent submit tag.put("type", "button"); } } else { disableLink(tag); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (isEnabledInHierarchy()) { String tagName = tag.getName(); if (tagName.equalsIgnoreCase("a") || tagName.equalsIgnoreCase("link") || tagName.equalsIgnoreCase("area")) { // disable any href attr in markup tag.put("href", "javascript:;"); } else if (tagName.equalsIgnoreCase("button")) { // WICKET-5597 prevent submit tag.put("type", "button"); } } else { disableLink(tag); } }
protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (isLinkEnabled()) { // disable any href attr in markup if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") || tag.getName().equalsIgnoreCase("area")) { tag.put("href", "#"); } } else { disableLink(tag); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (isLinkEnabled()) { // disable any href attr in markup if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") || tag.getName().equalsIgnoreCase("area")) { tag.put("href", "#"); } } else { disableLink(tag); } }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (!isEnabledInHierarchy()) { disableLink(tag); } tag.put("href", reference.getUrl()); }
@Override protected void onComponentTag(final ComponentTag tag) { if (!Components.hasTagName(tag, "div", "li")) { tag.setName("div"); } super.onComponentTag(tag); if (dropUp) { Attributes.addClass(tag, "dropup"); } Attributes.addClass(tag, createCssClassName()); }
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); // If we're disabled if (!isEnabledInHierarchy()) { disableLink(tag); } else { String url = buildUrl(); if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") || tag.getName().equalsIgnoreCase("area")) { // generate the href attribute tag.put("href", url); } else { // or generate an onclick JS handler directly // in firefox when the element is quickly clicked 3 times a // second request is // generated during page load. This check ensures that the click // is ignored tag.put("onclick", "var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; " + "if (win == window) { window.location.href='" + url + "'; } ;return false"); } } }
@Override protected void onComponentTag(ComponentTag tag) super.onComponentTag(tag); checkComponentTag(tag, "a"); CharSequence charSequence = null;
protected void onComponentTag(final ComponentTag tag) super.onComponentTag(tag);
protected void onComponentTag(final ComponentTag tag) super.onComponentTag(tag);
@Override protected void onComponentTag(ComponentTag tag) { if (tag.isOpenClose()) { wasOpenCloseTag = true; tag.setType(XmlTag.TagType.OPEN); } super.onComponentTag(tag); tag.put("class", getCssClass(tag)); if ("input".equalsIgnoreCase(tag.getName())) { tag.put("value", getTitle()); } if (isEnabled()) { // is a <a> or other tag if ("a".equalsIgnoreCase(tag.getName())) { tag.put("href", Strings.replaceAll(getURL(), "&", "&")); } } else { disableLink(tag); } }
@SuppressWarnings("unchecked") @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, "a"); if (!isEnabledInHierarchy()) { disableLink(tag); } else { BrixPageParameters params = this.params; if (params == null) { params = new BrixPageParameters(); } String url = params.urlFor((IModel<BrixNode>) getDefaultModel()); tag.put("href", Strings.replaceAll(url, "&", "&")); } } }
protected void onComponentTag(ComponentTag tag) super.onComponentTag(tag);
super.onComponentTag(tag);