Note: these options affect both component examples!
Prompt Text:
Prompt Text Color:
Animate:
Note: sometimes there are problems with AJAX requests when animation is enabled!
Animate Duration:
Extra Space:
Max Height:
Min Height:
TextArea with AJAX Submit:
Regular TextArea Submit:

Example:


inputTextArea.xhtml

InputTextAreaTestBean.java

@ViewScoped
@ManagedBean
public class InputTextAreaTestBean implements Serializable {

	private static final long serialVersionUID = 1435576438526841243L;

	private String promptText = "Test Prompt Text";
	private String promptColor = "#999999";
	private boolean animate = false;
	private int animateDuration = 200;
	private int extraSpace = 10;
	private Integer minHeight = 0;
	private Integer maxHeight = 500;

	private String inputTextAreaValue = "";
	private String inputTextAreaValue2 = "";

	public InputTextAreaTestBean() {
		System.out.println("InputTextAreaTestBean created!");
	}

	public Integer getMinHeight() {
		return minHeight;
	}

	public void setMinHeight(Integer minHeight) {
		this.minHeight = minHeight;
	}

	public Integer getMaxHeight() {
		return maxHeight;
	}

	public void setMaxHeight(Integer maxHeight) {
		this.maxHeight = maxHeight;
	}

	public String getPromptText() {
		return promptText;
	}

	public void setPromptText(String promptText) {
		this.promptText = promptText;
	}

	public String getPromptColor() {
		return promptColor;
	}

	public void setPromptColor(String promptColor) {
		this.promptColor = promptColor;
	}

	public boolean isAnimate() {
		return animate;
	}

	public void setAnimate(boolean animate) {
		this.animate = animate;
	}

	public int getAnimateDuration() {
		return animateDuration;
	}

	public void setAnimateDuration(int animateDuration) {
		this.animateDuration = animateDuration;
	}

	public int getExtraSpace() {
		return extraSpace;
	}

	public void setExtraSpace(int extraSpace) {
		this.extraSpace = extraSpace;
	}

	public String getInputTextAreaValue() {
		return inputTextAreaValue;
	}

	public void setInputTextAreaValue(String inputTextAreaValue) {
		this.inputTextAreaValue = inputTextAreaValue;
	}

	public String getInputTextAreaValue2() {
		return inputTextAreaValue2;
	}

	public void setInputTextAreaValue2(String inputTextAreaValue2) {
		this.inputTextAreaValue2 = inputTextAreaValue2;
	}

	public String getTextAreaValueDecoded(String value) {
		return value.replace("\n", "
"); } public String formAction() { System.out.println("form submit!"); return ""; } }