storm56
BlogJava
首頁
新隨筆
新文章
聯系
聚合
管理
posts - 17, comments - 6, trackbacks - 0
bea workshop 中行顯示(根據條件顯示不同效果)
<
netui-data:repeater?
dataSource
="{pageFlow.customerList}"
>
????
<
netui-data:repeaterHeader
><
table?
cellpadding
="4"
?border
="1"
????????class
="tablebody"
?
></
netui-data:repeaterHeader
>
????
<
netui-data:repeaterItem
>
????????
<
netui-data:choiceMethod?
object
="{pageFlow}"
??????????????method
="getRollerState"
>
????????????
<
netui-data:methodParameter?
value
="{container.item[1]}"
/>
????????
</
netui-data:choiceMethod
>
????????
<
netui-data:choice?
value
="low"
>
????????????
<
tr?
bgcolor
='#00FF00'
>
????????????????
<
td
><
netui:label?
value
="{container.item[0]}"
>
??????????????????????
</
netui:label
></
td
>
????????????????
<
td
><
netui:label?
value
="{container.item[1]}"
>
??????????????????????
</
netui:label
></
td
>
????????????
</
tr
>
????????
</
netui-data:choice
>
????????
<
netui-data:choice?
value
="high"
>
?????????????
<
tr?
bgcolor
='#FF0000'
>
????????????????
<
td
><
netui:label?
value
="{container.item[0]}"
>
??????????????????????
</
netui:label
></
td
>
????????????????
<
td
><
netui:label?
value
="{container.item[1]}"
>
??????????????????????
</
netui:label
></
td
>
????????????
</
tr
>
????????
</
netui-data:choice
>
????
</
netui-data:repeaterItem
>
????
<
netui-data:repeaterFooter
></
table
></
netui-data:repeaterFooter
>
</
netui-data:repeater
>
The?
<
netui-data:choiceMethod
>
?tag?specifies?the?Java?method?that?calculates?the?data?value.?The?method?is?determined?by?setting?the?tag's?object?and?method?attributes.?The?object?attribute?specifies?the?data?binding?context?(the?available?options?are?discussed?in?Chapter?4?in?the?section?"Data?Binding?with?Page?Flow").?In?this?case,?the?container?data?binding?context?refers?to?the?data?record?in?the?current?iteration.?Data?is?passed?into?the?Java?method?via?a?number?of?nested?
<
netui-data:methodParameter
>
?tags,?one?for?each?parameter?of?the?Java?method.?Listing?7.4?shows?the?getRollerState()?method?in?the?Controller.jpf?file?used?in?the?Casino?example.?The?method?simply?returns?a?value?of?high?if?the?number?of?purchased?chips?is?greater?than?1,000;?otherwise,?it?returns?low.
Listing?7.4.?Excerpt?from?Controller.jpf?Showing?the?Business?Logic?Used?to?Color-Code?Customers
public?String?getRollerState(String?chipsPurchased)
{
????int?chips?=?Integer.parseInt(chipsPurchased);
????if?(chips?>?1000)
????????return?"high";
????else
????????return?"low";
}
?
posted on 2006-06-16 11:17
風中的舞者
閱讀(176)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Copyright ©2025 風中的舞者 Powered by:
博客園
模板提供:
滬江博客
<
2025年8月
>
日
一
二
三
四
五
六
27
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
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(1)
給我留言
查看公開留言
查看私人留言
隨筆檔案
2008年5月 (1)
2008年3月 (1)
2007年5月 (1)
2006年10月 (3)
2006年9月 (1)
2006年8月 (1)
2006年6月 (2)
2006年3月 (2)
2006年2月 (1)
2005年11月 (4)
文章檔案
2006年6月 (1)
2006年3月 (1)
2005年11月 (1)
java技術
www.javaeye.com
java專業技術
搜索
最新評論
1.?re: weblogic集成birt的問題解決[未登錄]
我用第二種方法,結果顯示空白內容。我使用的是weblogic10.3
--water
2.?re: weblogic集成birt的問題解決
您好LZ,我用你說的方法設置了,
可還是不行,還報那個錯,
我的weblogic是10.3的
請問還有辦法解決嗎?
--猜猜
3.?re: 向大家推薦一個SOA,J2EE,XML相關PDF下載網站
是許昌
--是否規范
4.?re: weblogic集成birt的問題解決
評論內容較長,點擊標題查看
--Maggie
5.?re: www.cms4j.com
http://www.totcms.com/
--http://www.totcms.com/
閱讀排行榜
1.?weblogic集成birt的問題解決(2548)
2.?向大家推薦一個SOA,J2EE,XML相關PDF下載網站(936)
3.?開源的課件管理系統(810)
4.?pb 操作 Excel(758)
5.?tomcat 的log4j配置方法(490)
評論排行榜
1.?weblogic集成birt的問題解決(3)
2.?www.cms4j.com(1)
3.?向大家推薦一個SOA,J2EE,XML相關PDF下載網站(1)
4.?高操下載教程(1)
5.?ppoe服務中,只接受通過撥號驗證的用戶的流量(0)
主站蜘蛛池模板:
河北省
|
六盘水市
|
缙云县
|
修文县
|
习水县
|
韶关市
|
淅川县
|
东阳市
|
察雅县
|
东乡县
|
张家界市
|
会昌县
|
随州市
|
鹤峰县
|
平南县
|
乐陵市
|
克拉玛依市
|
奉化市
|
大连市
|
海兴县
|
镶黄旗
|
马公市
|
湛江市
|
桃源县
|
芮城县
|
寿阳县
|
临桂县
|
舒兰市
|
札达县
|
公安县
|
乐东
|
南康市
|
丰原市
|
浦城县
|
广东省
|
喀什市
|
阳高县
|
梅河口市
|
弋阳县
|
浏阳市
|
昌乐县
|