public HtmlOutcomeTargetLink() { super(); setRendererType("javax.faces.Link"); }
HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink(); link.setValue("Edit"); link.setOutcome("edit"); UIParameter param = new UIParameter(); param.setName("id"); param.setValue("500"); link.getChildren().add(param);
/** * <p>Set the value of the <code>dir</code> property.</p> * @param dir the new property value */ public void setDir(java.lang.String dir) { getStateHelper().put(PropertyKeys.dir, dir); handleAttribute("dir", dir); }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
/** * <p>Set the value of the <code>disabled</code> property.</p> * @param disabled the new property value */ public void setDisabled(boolean disabled) { getStateHelper().put(PropertyKeys.disabled, disabled); }
@PostConstruct public void init() { HtmlInputText hit = new HtmlInputText(); // properties are easy: hol.setStyle("border: 2px solid red"); // binding is a bit harder: hit.setValueExpression("value", expression("#{test.counter}", String.class)); HtmlOutcomeTargetLink hol = new HtmlOutcomeTargetLink(); hol.setValue("link leading to another view"); hol.setOutcome("whatever"); component = new UIPanel(); component.getChildren().add(hit); component.getChildren().add(hol); } private ValueExpression expression(String s, Class c){ return FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createValueExpression( FacesContext.getCurrentInstance().getELContext(), s, c ); }
component = button; } else { final HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink(); link.setOutcome(this.actionGenerated.getOutcome(context)); link.setStyleClass(tableLink); component = link;
/** * <p>Set the value of the <code>onfocus</code> property.</p> * @param onfocus the new property value */ public void setOnfocus(java.lang.String onfocus) { getStateHelper().put(PropertyKeys.onfocus, onfocus); handleAttribute("onfocus", onfocus); }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
/** * <p>Return the value of the <code>ondblclick</code> property.</p> * @return the property value * <p>Contents: Javascript code executed when a pointer button is * double clicked over this element. */ public java.lang.String getOndblclick() { return (java.lang.String) getStateHelper().eval(PropertyKeys.ondblclick); }
/** * <p>Set the value of the <code>onkeypress</code> property.</p> * @param onkeypress the new property value */ public void setOnkeypress(java.lang.String onkeypress) { getStateHelper().put(PropertyKeys.onkeypress, onkeypress); handleAttribute("onkeypress", onkeypress); }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
/** * <p>Return the value of the <code>onkeydown</code> property.</p> * @return the property value * <p>Contents: Javascript code executed when a key is * pressed down over this element. */ public java.lang.String getOnkeydown() { return (java.lang.String) getStateHelper().eval(PropertyKeys.onkeydown); }
public HtmlOutcomeTargetLink() { super(); setRendererType("javax.faces.Link"); }
/** * <p>Set the value of the <code>onmouseover</code> property.</p> * @param onmouseover the new property value */ public void setOnmouseover(java.lang.String onmouseover) { getStateHelper().put(PropertyKeys.onmouseover, onmouseover); handleAttribute("onmouseover", onmouseover); }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
/** * <p>Return the value of the <code>rev</code> property.</p> * @return the property value * <p>Contents: A reverse link from the anchor specified * by this hyperlink to the current document. * The value of this attribute is a space-separated * list of link types. */ public java.lang.String getRev() { return (java.lang.String) getStateHelper().eval(PropertyKeys.rev); }
public HtmlOutcomeTargetLink() { setRendererType("javax.faces.Link"); }
/** * <p>Set the value of the <code>onmouseup</code> property.</p> * @param onmouseup the new property value */ public void setOnmouseup(java.lang.String onmouseup) { getStateHelper().put(PropertyKeys.onmouseup, onmouseup); handleAttribute("onmouseup", onmouseup); }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }