繁体   English   中英

如何以richfaces更新inputTextarea

[英]How to update inputTextarea in richfaces

我有具有属性“ newItemInfo”的bean“ RichFacesTreeNodeBean”,并且我用inputTextArea调用了模式面板,该面板必须包含该属性的实际值,但始终包含该属性的第一个值。 这是index.xhtml的一部分:

<rich:popupPanel id="editPanel">
    <h:form>
        <h:inputTextarea value="#{richFacesTreeNodeBean.newItemInfo}" />
        <!-- some buttons -->
    </h:form>
</rich:popupPanel>

和RichFacesTreeNodeBean.java:

@ManagedBean
@ViewScoped
public class RichFacesTreeNodeBean {
     private String newItemInfo;

public String getNewItemInfo() {
    return newItemInfo;
}

如何解决这个问题?

<h:form>
    <a4j:outputPanel layout="block" ajaxRendered="true"> 
         <h:inputTextarea value="#{richFacesTreeNodeBean.newItemInfo}" />
    </a4j:outputPanel>
</h:form>

有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM