張氏兄弟
風雪踏中州
首頁
新隨筆
聯系
聚合
管理
隨筆-60 評論-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;
/** */
/**
* 加入時間
*/
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
=
"
發布時間
"
/>
</
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
>
列表數據
</
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
"
>
內容
</
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
=
"
確認
"
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
張氏兄弟
閱讀(929)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(11)
給我留言
查看公開留言
查看私人留言
隨筆分類
(49)
51ditu.com(8)
flex(13)
js(3)
oracle(2)
手機地圖(7)
早上九點的想法(9)
聊天記錄知識整理(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)
收集的網站
Java技巧-javaalmanac
快速查到某種Java技巧的用法及示例代碼
有朋自遠方來
bad boy
宋針還
詩人自然即興
阿定
搜索
積分與排名
積分 - 95891
排名 - 604
最新隨筆
1.?oracle pl/sql程序
2.?低調發布一版基于springside的flex版showcase
3.?推薦產品手繪工具,賺取一個license
4.?flex中ComboBox用法一例
5.?為springside_miniweb提供一個flex登陸界面(第一部分)
6.?工作感受_08體驗
7.?igenko學習_登陸部分客戶端邏輯
8.?手機地圖-httpclient+htmlparser+jdom展示yahoo天氣預報
9.?手機地圖-使用j2mepolish的gauge實現進度條
10.?探討:通過j2me獲取手機imei號碼和cellid(基站號)
最新評論
1.?re: flex button樣式改變
看了原文,感覺頗有收獲,只是原文那里源碼下載不了,樓主能否發下?謝謝kuachen@qq.com
--heylichen
2.?re: 久其印象
評論內容較長,點擊標題查看
--為久其付出3年而離開的人
3.?re: flex中ComboBox用法一例
評論內容較長,點擊標題查看
--uui
4.?re: 第一次應用blazeDS實錄
不錯,我看了很一樣的示例,就是沒有看
說是我使用的channel有問題,思考了幾分鐘后直接到server-config.xml中將{server.port}修改成了8080。
--ridn_jache
5.?re: 關于基站定位
推薦一個,手機地圖,短信關懷,跨手機系統(Symbian,WindowsMobile),位置互通(支持基站定位)。
發個短信,看看關心的人在哪里?
www.FarMap.cn
--xufun
閱讀排行榜
1.?flex中ComboBox用法一例(5633)
2.?dwr session error(5587)
3.?探討:通過j2me獲取手機imei號碼和cellid(基站號)(4744)
4.?google發布flex map api(4412)
5.?初學flex_圖片加載顯示(4221)
評論排行榜
1.?在qq空間中放入uu地圖(20)
2.?第一次應用blazeDS實錄(14)
3.?久其印象(13)
4.?使用kxml解析xml(11)
5.?公布一份手機地圖(6)
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 張氏兄弟
主站蜘蛛池模板:
亚洲AV无码国产精品麻豆天美
|
亚洲av无码专区在线观看素人
|
久久国产精品亚洲综合
|
中文字幕无码视频手机免费看
|
麻豆国产精品免费视频
|
亚洲邪恶天堂影院在线观看
|
久99久精品免费视频热77
|
亚洲男人天堂2017
|
97在线视频免费公开观看
|
99人中文字幕亚洲区
|
黄页网站免费观看
|
亚洲国产美女精品久久久
|
久久久久久国产精品免费免费男同
|
亚洲日本韩国在线
|
最新久久免费视频
|
日木av无码专区亚洲av毛片
|
1000部国产成人免费视频
|
亚洲精品理论电影在线观看
|
免费jjzz在线播放国产
|
两个人看的www视频免费完整版
|
亚洲成AV人片在
|
香蕉视频免费在线播放
|
伊人久久精品亚洲午夜
|
日韩在线永久免费播放
|
亚洲综合色7777情网站777
|
国产男女猛烈无遮挡免费视频
|
一区二区三区免费精品视频
|
亚洲国产天堂久久综合网站
|
国产h视频在线观看免费
|
菠萝菠萝蜜在线免费视频
|
亚洲va久久久噜噜噜久久狠狠
|
久久久高清免费视频
|
一级做a免费视频观看网站
|
亚洲黄色片免费看
|
四虎影视永久免费观看网址
|
色猫咪免费人成网站在线观看
|
亚洲熟妇无码一区二区三区导航
|
亚洲一级特黄大片无码毛片
|
久草视频免费在线观看
|
有色视频在线观看免费高清在线直播
|
亚洲国产综合专区在线电影
|