I would like to update an underlying xp:inputTextarea from a xe:dialog control.
Here is sample code from a button available in my dialog:
<xp:button value="OK">
<xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="txtComment" disableValidators="true">
<xp:this.action><![CDATA[#{javascript:var dialog = getComponent("dlgCommentNPAC");
dialog.hide();
getComponent("txtComment").setValue("some dummy text")}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
Here is the underlying textarea input control:
<xp:inputTextarea id="txtComment"
value="#{appBean.order.comment}"/>
</div>
The function to close the dialog and update the textarea breaks at
getComponent("txtComment").setValue("some dummy text")
I am not sure what I am doing wrong here?