1

我正在尝试<p:inplace>使用<p:inputTextarea>. 它“有效”,但来自 inputTextarea 的数据永远不会“保存”。“已保存”意味着永远不会调用 inputTextarea 后面的属性的设置器。在单击保存按钮之前和之后调用 getter。我已经看过有关<p:ajax>for 用法的帖子<p:inplace>,但这似乎是应该调用 setter 之后的事件。我究竟做错了什么??

<p:inplace editor="true" emptyLabel="No comments entered.">
    <p:ajax event="save" listener="#{bean.handleSave}"
            update="commentsSuperPanel"/>
    <p:inputTextarea
            id="commentsOverall"
            value="#{bean.comments}"
            styleClass="commentAreas" 
            maxlength="4000"/>

谢谢!

4

1 回答 1

1

Discovered that there was an unrelated issue presenting itself without warning or error. I had a dialog that contained a form; and that dialog was defined inside another form. I moved the dialog declaration outside of the form, and all worked as expected.

于 2013-03-19T17:02:19.697 回答