張氏兄弟
風(fēng)雪踏中州
首頁
新隨筆
聯(lián)系
聚合
管理
隨筆-60 評(píng)論-138 文章-1 trackbacks-0
dwr + ecside
目前是草稿:
model:
public
class
Notice
{
/** */
/**
* primary key of the notice
*/
Integer id
=
new
Integer(
0
);
/** */
/**
* name of the notice
*/
String name;
/** */
/**
* the content of notice
*/
String content;
/** */
/**
* 加入時(shí)間
*/
java.sql.Date addDate;
<
create creator
=
"
new
"
javascript
=
"
NoticeManager
"
>
<
param name
=
"
class
"
value
=
"
com.****.manager.NoticeDao
"
/>
<
include method
=
"
ajaxSaveOrUpdate
"
/>
<
include method
=
"
getForAjax
"
/>
<
include method
=
"
deleteForAjax
"
/>
<
include method
=
"
getSixNotice
"
/>
<
include method
=
"
getLastNotice
"
/>
</
create
>
<
convert converter
=
"
bean
"
match
=
"
*****.model.Notice
"
>
<
param name
=
"
include
"
value
=
"
id,name,content
"
/>
</
convert
>
</
allow
>
<
signatures
>
<!
[CDATA[
import
java.util.Map;
import
java.util.List;
import
javax.servlet.http.HttpServletRequest;
NoticeManager.ajaxSaveOrUpdate(Map map);
dao:
public
String ajaxSaveOrUpdate(java.util.Map requstMap)
{
String backString
=
"
1
"
;
Notice notice
=
new
Notice();
Object id
=
requstMap.get(
"
id
"
);
if
(
null
==
id
||
StringUtils.isBlank(id.toString()))
{
notice.setId(
new
Integer(
0
));
}
else
{
notice.setId(NumberUtils.createInteger(id.toString()));
}
notice.setName(requstMap.get(
"
name
"
).toString());
notice.setContent(requstMap.get(
"
content
"
).toString());
saveOrUpdate(notice);
return
backString;
}
界面:
function addDeviceList()
{
var win
=
window.frames.Editor.frames.HtmlEditor;
var obj
=
win.document.body;
var data;
data
=
{
id:document.noticeForm.all[
"
id
"
].value,
name:document.noticeForm.all[
"
name
"
].value,
content:obj.innerHTML
}
;
NoticeManager.ajaxSaveOrUpdate(data,refreshDataGride);
}
function refreshDataGride()
{
alert(
"
操作成功
"
);
ECSideUtil.reload(
"
ec
"
);
}
<
table width
=
"
100%
"
height
=
"
30
"
border
=
"
0
"
cellpadding
=
"
0
"
cellspacing
=
"
0
"
>
<
tr
>
<
td
>
<
ec:table items
=
"
notices
"
title
=
"
公告列表
"
tableId
=
"
ec
"
var
=
"
notice
"
action
=
"
notice.notice?method=list
"
cellspacing
=
"
0
"
width
=
"
100%
"
showPrint
=
"
false
"
resizeColWidth
=
"
true
"
maxRowsExported
=
"
10000000
"
sortable
=
"
true
"
useAjax
=
"
false
"
retrieveRowsCallback
=
"
limit
"
listWidth
=
"
100%
"
>
<
ec:row ondblclick
=
"
getById(${notice.id})
"
>
<
ec:column width
=
"
23
"
cell
=
"
checkbox
"
headerCell
=
"
checkbox
"
alias
=
"
deleteFlag
"
value
=
"
${notice.id}
"
viewsAllowed
=
"
html
"
/>
<
ec:column property
=
"
name
"
width
=
"
550
"
title
=
"
名稱
"
/>
<
ec:column width
=
"
80
"
property
=
"
addDate
"
cell
=
"
date
"
title
=
"
發(fā)布時(shí)間
"
/>
</
ec:row
>
<
ec:extend location
=
"
bottom
"
>
<
div style
=
"
text-align:center;width:100%;padding:3px
"
>
<
button type
=
"
button
"
onclick
=
"
deleteUserInfo();
"
style
=
"
width:120px
"
>
<
font color
=
"
red
"
>
刪除
</
font
>
列表數(shù)據(jù)
</
button
>
</
div
>
</
ec:extend
>
</
ec:table
>
</
td
>
</
tr
>
</
table
>
<
form name
=
"
noticeForm
"
>
<
input type
=
"
hidden
"
name
=
"
id
"
/>
<
table border
=
"
0
"
cellpadding
=
"
0
"
cellspacing
=
"
0
"
class
=
"
simpleFormTable
"
width
=
"
100%
"
>
<
tr
>
<
td id
=
"
lablearea
"
class
=
"
tableTitle3
"
style
=
"
cursor:pointer;
"
onclick
=
"
showHide('addUserZone',this)
"
>
+
<
input type
=
"
button
"
class
=
"
formButton
"
value
=
"
添加公告
"
>
</
td
>
</
tr
>
<
tr id
=
"
addUserZone
"
style
=
"
display:none;
"
>
<
td
>
<
table id
=
"
table_notice
"
width
=
"
100%
"
cellpadding
=
"
0
"
cellspacing
=
"
0
"
>
<
tr
>
<
Th width
=
"
25%
"
id
=
"
notice_th
"
>
名稱
</
th
>
<
th width
=
"
75%
"
id
=
"
notice_th
"
>
<
input type
=
"
text
"
name
=
"
name
"
></
input
>
</
th
>
</
tr
>
<
tr
>
<
Th id
=
"
notice_th
"
colspan
=
"
2
"
>
內(nèi)容
</
th
>
</
tr
>
<
tr
>
<
th colspan
=
"
2
"
height
=
"
50
"
id
=
"
notice_th
"
>
<
textarea name
=
"
content
"
style
=
"
display:none
"
></
textarea
>
<
iframe ID
=
"
Editor
"
name
=
"
Editor
"
src
=
"
/common/HtmlEditor/index.html?ID=content
"
frameBorder
=
"
0
"
marginHeight
=
"
0
"
marginWidth
=
"
0
"
scrolling
=
"
No
"
style
=
"
height:320px;width:100%
"
></
iframe
>
</
th
>
</
tr
>
<
tr
>
<
td colspan
=
"
2
"
>
<
input type
=
"
button
"
class
=
"
formButton
"
value
=
"
確認(rèn)
"
onclick
=
"
addDeviceList()
"
>
&
#
160
;
&
#
160
;
&
#
160
;
&
#
160
;
<
input
class
=
"
formButton
"
type
=
"
reset
"
>
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
</
table
>
</
form
>
posted on 2007-05-30 15:19
張氏兄弟
閱讀(933)
評(píng)論(0)
編輯
收藏
新用戶注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
常用鏈接
我的隨筆
我的評(píng)論
我的參與
最新評(píng)論
留言簿
(11)
給我留言
查看公開留言
查看私人留言
隨筆分類
(49)
51ditu.com(8)
flex(13)
js(3)
oracle(2)
手機(jī)地圖(7)
早上九點(diǎn)的想法(9)
聊天記錄知識(shí)整理(7)
隨筆檔案
(55)
2009年5月 (1)
2009年4月 (1)
2009年2月 (1)
2008年10月 (4)
2008年9月 (2)
2008年8月 (1)
2008年7月 (1)
2008年6月 (10)
2008年4月 (1)
2008年3月 (1)
2008年2月 (4)
2008年1月 (2)
2007年12月 (5)
2007年11月 (4)
2007年8月 (1)
2007年7月 (1)
2007年5月 (6)
2007年4月 (2)
2007年3月 (3)
2006年10月 (1)
2006年9月 (3)
文章分類
oracle
文章檔案
(1)
2006年9月 (1)
收集的網(wǎng)站
Java技巧-javaalmanac
快速查到某種Java技巧的用法及示例代碼
有朋自遠(yuǎn)方來
bad boy
宋針還
詩人自然即興
阿定
搜索
積分與排名
積分 - 96220
排名 - 603
最新隨筆
1.?oracle pl/sql程序
2.?低調(diào)發(fā)布一版基于springside的flex版showcase
3.?推薦產(chǎn)品手繪工具,賺取一個(gè)license
4.?flex中ComboBox用法一例
5.?為springside_miniweb提供一個(gè)flex登陸界面(第一部分)
6.?工作感受_08體驗(yàn)
7.?igenko學(xué)習(xí)_登陸部分客戶端邏輯
8.?手機(jī)地圖-httpclient+htmlparser+jdom展示yahoo天氣預(yù)報(bào)
9.?手機(jī)地圖-使用j2mepolish的gauge實(shí)現(xiàn)進(jìn)度條
10.?探討:通過j2me獲取手機(jī)imei號(hào)碼和cellid(基站號(hào))
最新評(píng)論
1.?re: flex button樣式改變
看了原文,感覺頗有收獲,只是原文那里源碼下載不了,樓主能否發(fā)下?謝謝kuachen@qq.com
--heylichen
2.?re: 久其印象
評(píng)論內(nèi)容較長,點(diǎn)擊標(biāo)題查看
--為久其付出3年而離開的人
3.?re: flex中ComboBox用法一例
評(píng)論內(nèi)容較長,點(diǎn)擊標(biāo)題查看
--uui
4.?re: 第一次應(yīng)用blazeDS實(shí)錄
不錯(cuò),我看了很一樣的示例,就是沒有看
說是我使用的channel有問題,思考了幾分鐘后直接到server-config.xml中將{server.port}修改成了8080。
--ridn_jache
5.?re: 關(guān)于基站定位
推薦一個(gè),手機(jī)地圖,短信關(guān)懷,跨手機(jī)系統(tǒng)(Symbian,WindowsMobile),位置互通(支持基站定位)。
發(fā)個(gè)短信,看看關(guān)心的人在哪里?
www.FarMap.cn
--xufun
閱讀排行榜
1.?flex中ComboBox用法一例(5644)
2.?dwr session error(5592)
3.?探討:通過j2me獲取手機(jī)imei號(hào)碼和cellid(基站號(hào))(4752)
4.?google發(fā)布flex map api(4414)
5.?初學(xué)flex_圖片加載顯示(4223)
評(píng)論排行榜
1.?在qq空間中放入uu地圖(20)
2.?第一次應(yīng)用blazeDS實(shí)錄(14)
3.?久其印象(13)
4.?使用kxml解析xml(11)
5.?公布一份手機(jī)地圖(6)
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 張氏兄弟
主站蜘蛛池模板:
连州市
|
惠州市
|
额尔古纳市
|
江华
|
南江县
|
临澧县
|
历史
|
龙江县
|
济阳县
|
渑池县
|
体育
|
浦江县
|
大丰市
|
普定县
|
河间市
|
应用必备
|
建昌县
|
秦皇岛市
|
朝阳县
|
洛南县
|
潞西市
|
九江县
|
皮山县
|
丰都县
|
常宁市
|
寿阳县
|
水城县
|
常山县
|
凤冈县
|
灌南县
|
兴文县
|
公主岭市
|
石屏县
|
肥乡县
|
菏泽市
|
开江县
|
浪卡子县
|
丰镇市
|
通河县
|
中牟县
|
高青县
|