Vincent
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
posts - 5, comments - 7, trackbacks - 0
<
2025年6月
>
日
一
二
三
四
五
六
25
26
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
1
2
3
4
5
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
隨筆分類
snmp(4)
隨筆檔案
2009年6月 (5)
文章分類
JavaScript(8)
JDBC(1)
JfreeChart(1)
JSF(13)
JXL(2)
POI(9)
Print(8)
richfaces(4)
SQL(1)
Swing
tomcat
XML(5)
文章檔案
2008年12月 (2)
2008年11月 (42)
jsf
JSF中文技術文摘
JSF中文技術文摘
JSF中文技術文摘
Webservice技術學習專題
搜索
積分與排名
積分 - 55823
排名 - 927
最新評論
1.?re: POI實現Excel插入圖片[未登錄]
能不能在頁腳或者頁眉插入圖片呢
--lsy
2.?re: C# Sample code to talk to a printer using SNMP to get its status.
評論內容較長,點擊標題查看
--KCC
3.?re: C# Sample code to talk to a printer using SNMP to get its status.
評論內容較長,點擊標題查看
--phaneendra
4.?re: java報表JXL和POI打印設置[未登錄]
aaaaaaaaaaaaaa
--aaa
5.?re: POI實現Excel插入圖片
非常好 ! 謝謝!
--estc
閱讀排行榜
1.?C# Sample code to talk to a printer using SNMP to get its status. (6565)
2.?Cisco常用OID(2891)
3.?OID(1531)
4.?Communicating with SNMP using C# - The Very Beginning (1517)
5.?OID(707)
評論排行榜
1.?C# Sample code to talk to a printer using SNMP to get its status. (2)
2.?Communicating with SNMP using C# - The Very Beginning (1)
3.?OID(0)
4.?OID(0)
5.?Cisco常用OID(0)
后來程序控制前臺UI控件的方法
第一種方法:
JSF頁面中的代碼:
<
h:form
id
="messageForm"
>
<
h:outputText
id
="outputMessage"
/>
<
h:commandButton
value
="Get Message"
actionListener
="#{testForm.sendMessage}"
/>
</
h:form
>
后臺程序:
public
void
sendMessage(ActionEvent e)
{
FacesContext context
=
FacesContext.getCurrentInstance();
UIViewRoot view
=
context.getViewRoot();
HtmlOutputText output
=
(HtmlOutputText)view.findComponent(
"
messageForm:outputMessage
"
);
output.setStyle(
"
color:blue
"
);
output.setValue(
"
Who's the Mann?
"
);
}
之后,當點擊Get Message的時候頁面就會在outputMessage的地方輸出
Who's the Mann?
第二種方法:
<
h:inputText
value
="#{registrationForm.comments}"
binding
="#{registrationForm.commentsInput}"
/>
commentsInput是RegistrationForm中的一個HtmlInputText類型的一個變量,通過binding屬性將前臺UI控件和后臺同類型的變量綁定,就可以在后臺直接操作了。
posted on 2008-11-23 00:38
Vincent-chen
閱讀(183)
評論(0)
編輯
收藏
所屬分類:
JSF
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
JSF問題集錦
jsf結束session
生成Excel并在客戶端下載的JSF實現
JSF實現文件下載
JSF 文件上傳
jsf 另存為的實現
JSF和Richfaces中使用框架頁(Frameset),包括了PanelMenu
JSF(Java Server Faces)的StateHolder的作用和使用方法
在JSF控件中操作框架頁Frameset
JSF頁面中支持的Expression Language(EL)
Powered by:
BlogJava
Copyright ©2025 Vincent-chen
主站蜘蛛池模板:
山西省
|
梅河口市
|
桦甸市
|
师宗县
|
张家界市
|
钟山县
|
昌平区
|
会同县
|
准格尔旗
|
金平
|
安阳市
|
兴文县
|
芒康县
|
哈巴河县
|
东丽区
|
诏安县
|
翁牛特旗
|
临猗县
|
香港
|
巫山县
|
日照市
|
牟定县
|
遵义县
|
邹平县
|
徐闻县
|
淮北市
|
镇原县
|
江陵县
|
阿拉善盟
|
白沙
|
京山县
|
循化
|
商洛市
|
淮安市
|
华阴市
|
冀州市
|
盐亭县
|
山阳县
|
海淀区
|
高邑县
|
绥中县
|