This Is A FineDay
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
::
93 隨筆 :: 0 文章 :: 69 評論 :: 0 Trackbacks
<
2009年1月
>
日
一
二
三
四
五
六
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
我參與的團隊
鄭州Java小組(0/0)
隨筆分類
DB(21)
(rss)
DotNet(1)
(rss)
FLEX(6)
(rss)
J2EE(25)
(rss)
JS(14)
(rss)
LINUX(5)
(rss)
PORTAL(2)
(rss)
SSH(6)
(rss)
XML(2)
(rss)
雜文(8)
(rss)
隨筆檔案
2011年2月 (1)
2010年10月 (2)
2010年2月 (1)
2009年6月 (1)
2009年2月 (3)
2009年1月 (3)
2008年11月 (1)
2008年10月 (1)
2008年9月 (1)
2008年8月 (1)
2008年7月 (8)
2008年6月 (1)
2008年5月 (4)
2008年4月 (6)
2008年3月 (1)
2008年1月 (2)
2007年12月 (2)
2007年11月 (3)
2007年10月 (2)
2007年9月 (3)
2007年8月 (4)
2007年7月 (1)
2007年6月 (4)
2007年5月 (3)
2007年4月 (5)
2007年3月 (10)
2007年2月 (1)
2007年1月 (3)
2006年11月 (1)
2006年10月 (2)
2006年9月 (2)
2006年8月 (6)
2006年6月 (1)
友情連接
__sunking的專欄
lewang的博客(En)
臨海觀潮
鄭州java小組
搜索
最新隨筆
1.?oracle批量fetch的sql語句 bulk collect into
2.?Understanding JTA
3.?oracle實現Tree(2)
4.?ORACLE shared server與dedicated server
5.?獨家:程序員五大層次,你屬于哪一層?(轉)
6.?Flex 父子窗口通信的問題收藏
7.?flex Repeater click收藏
8.?flex sdk 3.2 RemoteObject問題
9.?Repeater remote 嵌套
10.?cannot convert mx.managers::HistoryManagerImpl@2403de71 to mx.managers.IHistoryManager.
最新評論
1.?re: trs常見問題
知道如何解決 TRS 升級失敗的問題的嗎?
--林瑋晶
2.?re: JProfiler
有8.0.2的注冊碼么?求共享哇,謝謝
--TestCoder
3.?re: No form found under '****Form' in locale 'zh_CN'
dasavsbdzndg
--asd
4.?re: flex 中module之間參數傳遞
ddddd
--ss
5.?re: MyEclipse 6.0.1 注冊碼
太謝謝了,
--spiriter88
閱讀排行榜
1.?MyEclipse 6.0.1 注冊碼(10157)
2.?select擋住div的5種解決方法 (轉)(9320)
3.?JProfiler(7617)
4.?java.lang.NoClassDefFoundError: org/hibernate/cfg/HbmBinder$SecondPass(7206)
5.?SOCKET CLOSE_WAIT 搜集(4874)
評論排行榜
1.?MyEclipse 6.0.1 注冊碼(28)
2.?java.lang.NoClassDefFoundError: org/hibernate/cfg/HbmBinder$SecondPass(8)
3.?oracle10g創建用戶(5)
4.?JProfiler(4)
5.?trs常見問題(3)
Repeater remote 嵌套
Repeater remote object?嵌套似乎又是flex的一個Bug,郁悶了一天
最終解決方法用Script初始化數據
<
mx:Label?
text
="{new2.currentItem.@label2}"
?/> OK
<
mx:Label?
text
="{ppt.currentItem.typeName}"
?/> NOK
<
mx:Label?
text
="{ppt.currentItem.typeName}"
?creationComplete
="accChildCreationComplete(event);"
?width
="100%"
/>??
OK
?1
<
mx:XMLListCollection?
id
="xmlListColl"
>
?2
????????
<
mx:source
>
?3
????????????
<
mx:XMLList
>
?4
????????????????
<
node?
label
="One"
>
?5
????????????????????
<
node2?
label2
="One.1"
?
/>
?6
????????????????????
<
node2?
label2
="One.2"
?
/>
?7
????????????????????
<
node2?
label2
="One.3"
?
/>
?8
????????????????
</
node
>
?9
????????????????
<
node?
label
="Two"
>
10
????????????????????
<
node2?
label2
="Two.1"
?
/>
11
????????????????????
<
node2?
label2
="Two.2"
?
/>
12
????????????????????
<
node2?
label2
="Two.3"
?
/>
13
????????????????
</
node
>
14
????????????
</
mx:XMLList
>
15
????????
</
mx:source
>
16
????
</
mx:XMLListCollection
>
17
????
<
mx:Accordion?
id
="accoridLeft"
18
??????????????????resizeToContent
="true"
19
??????????????????width
="100%"
>
20
???????????
<
mx:Repeater?
id
="news"
?dataProvider
="{xmlListColl}"
>
21
????????????
<
mx:VBox?
label
="{news.currentItem.@label}"
>
22
????????????????
<
mx:VDividedBox?
horizontalAlign
="left"
?paddingLeft
="15"
>
23
?????????????????????????
<
mx:Repeater?
id
="new2"
?dataProvider
="{news.currentItem.node2}"
>
24
????????????????????????
<
mx:VBox?
label
="{new2.currentItem.@label2}"
>
25
????????????????????????????
<
mx:Label?
text
="{new2.currentItem.@label2}"
?click
="onClick1(event);"
/>
26
????????????????????????
</
mx:VBox
>
27
?????????????????????
</
mx:Repeater
>
28
????????????????
</
mx:VDividedBox
>
29
????????????
</
mx:VBox
>
???????
30
????????
</
mx:Repeater
>
31
????
</
mx:Accordion
>
????
<
mx:Script
>
????????
<![CDATA[
????????import?mx.rpc.events.ResultEvent;
????????import?mx.events.FlexEvent;
????????import?mx.utils.ArrayUtil;
????????import?mx.collections.ArrayList;
????????import?mx.collections.ArrayCollection;
????????import?mx.controls.Alert;
????????import?mx.effects.easing.*;
????????public?function?init():void?{
????????????pts.getProductTypeMenu();
????????}
????????public?function?accChildCreationComplete(event:FlexEvent):void{
????????????event.target.text?=?String(event.currentTarget.getRepeaterItem().typeName);
????????}
????????
]]>
????
</
mx:Script
>
????
<
mx:RemoteObject?
id
="pts"
?destination
="productTypeService"
>
????
</
mx:RemoteObject
>
????
<
mx:Accordion?
id
="accoridLeft"
??????????????????resizeToContent
="true"
??????????????????width
="100%"
>
????????
<
mx:Repeater?
dataProvider
="{pts.getProductTypeMenu.lastResult}"
?id
="pt"
>
????????????
<
mx:VBox?
label
="{pt.currentItem.typeName}"
?width
="100%"
>
????????????????
<
mx:Repeater?
dataProvider
="{pt.currentItem.productTypes}"
?id
="ppt"
>
????????????????????
<
mx:Label?
text
="{ppt.currentItem.typeName}"
?creationComplete
="accChildCreationComplete(event);"
?width
="100%"
/>
????????????????
</
mx:Repeater
>
????????????
</
mx:VBox
>
????????
</
mx:Repeater
>
????
</
mx:Accordion
>
posted on 2009-01-15 11:20
Peter Pan
閱讀(409)
評論(0)
編輯
收藏
所屬分類:
FLEX
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
Flex 父子窗口通信的問題收藏
flex Repeater click收藏
flex sdk 3.2 RemoteObject問題
Repeater remote 嵌套
cannot convert mx.managers::HistoryManagerImpl@2403de71 to mx.managers.IHistoryManager.
flex 中module之間參數傳遞
Powered by:
BlogJava
Copyright © Peter Pan
主站蜘蛛池模板:
长岛县
|
涪陵区
|
会理县
|
景东
|
陵川县
|
宝鸡市
|
保康县
|
礼泉县
|
洛扎县
|
吉林省
|
呼玛县
|
海盐县
|
修文县
|
安阳市
|
西昌市
|
合山市
|
嵊泗县
|
新源县
|
曲阳县
|
武定县
|
上饶县
|
临海市
|
平乡县
|
榆林市
|
高邮市
|
开原市
|
弥勒县
|
阿拉善盟
|
疏附县
|
玉林市
|
涿鹿县
|
阜阳市
|
金川县
|
松桃
|
兰考县
|
南充市
|
宽甸
|
虹口区
|
奈曼旗
|
军事
|
亳州市
|