spring ajax 幾個(gè)常用的Action功能介紹
1.AppendContentActionSimpleText text = new SimpleText("tes內(nèi)容")
AppendContentAction action = new AppendContentAction("num", text);
num 頁(yè)面元素的id,text就是文本內(nèi)容
功能:在指定的元素中添加文本內(nèi)容
2.ReplaceContentAction
SimpleText text = new SimpleText("tes內(nèi)容")
ReplaceContentActionaction = new ReplaceContentAction("num", text);
num 頁(yè)面元素的id,text就是文本內(nèi)容
功能:在指定的元素中替換其中的文本內(nèi)容
3.RemoveContentAction
ReplaceContentActionaction = new ReplaceContentAction("num");
num 頁(yè)面元素的id,text就是文本內(nèi)容
功能:在指定的元素中刪除元素中的內(nèi)容
4.replaceElement
InputField field = new InputField("replaced", "Replaced", InputField.InputType.TEXT);
ReplaceElementAction action = new ReplaceElementAction("toReplace", field);
功能
posted on 2007-04-23 19:26 小熊泡泡 閱讀(469) 評(píng)論(1) 編輯 收藏