Skip to content

Commit

Permalink
#201 the initial value of the b:textArea wasn't displayed because we
Browse files Browse the repository at this point in the history
used the attribute value that doesn't exist.
  • Loading branch information
stephanrauh committed Nov 18, 2015
1 parent 440c155 commit 98c8505
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,15 @@ public void encodeEnd(FacesContext context, UIComponent component) throws IOExce
rw.writeAttribute("autocomplete", "off", null);
}

String v = getValue2Render(context, component);
rw.writeAttribute("value", v, null);

// Render Ajax Capabilities
AJAXRenderer.generateBootsFacesAJAXAndJavaScript(FacesContext.getCurrentInstance(), inputText, rw);

String v = getValue2Render(context, component);
if (null == v)
v="";
rw.writeText(v, null);
rw.endElement("textarea");

if (append) {
if (app.getClass().getName().endsWith("Button")
|| (app.getChildCount() > 0 && app.getChildren().get(0).getClass().getName().endsWith("Button"))) {
Expand Down

0 comments on commit 98c8505

Please sign in to comment.