Input Textarea value is never set on the bean side. JSF 1.2 with RichaFaces 3.3.3. Have next code:
<h:form id="name" rendered="#{not empty controller}">
<h:panelGrid columns="1" styleClass="medium" columnClasses="subtitle,medium" style="text-align: left;" cellspacing="3px">
<f:facet name="header">
<h:outputText value="Comments"/>
</f:facet>
<h:inputTextarea value="#{controller.comments}" rows="10" cols="80"
immediate="true"></h:inputTextarea>
<div align="right">
<a4j:commandButton value="#{msg['label.save']}" action="#{controller.saveData()}" reRender="name" />
</div>
</h:panelGrid>
</h:form>
And in the bean:
public void saveData(){
//logic
}
public String getComments(){
return "comments";
}
public void setComments(String comments){
//logic
}
The jsf page is included in another page through ui:include and gets needed bean as a controller parameter.
Comments are read through get method, however, setter is never called, neither is saveData function. The same controller is used for some other data on another page and there literally the same saveData method works great. I wonder why Textarea value is never set?