我正嘗試通過編輯框的值+自己的值來更新計算字段值。xpages中的計算字段值
寫在按鈕上的代碼:這裏我把編輯框的值放在作用域變量中,並使編輯框爲空。 comment_te是編輯框的名稱
requestScope.put("commentValue", getComponent("comments_te").getValue);
getComponent("comments_te").setValue("");
爲計算字段的值編寫的代碼:評論是計算領域
getComponent("comments").getValue + "\n" + requestScope.get("commentValue")
的名字,但我得到的輸出是: 0 com.ibm.xsp .component.xp.XspInputText @ 65426542
請幫我這個。