﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-&lt;h1&gt;编程之道&lt;/h1&gt;-随笔分类-Java</title><link>http://www.blogjava.net/yuanhuaming/category/19322.html</link><description>无论是批评的，赞扬的，指着的都请EMAIL给我，你的建议将是我前进的动力!   &lt;A href=mailto:yuanhuaming@56.com &gt;联系我&lt;/A&gt;</description><language>zh-cn</language><lastBuildDate>Fri, 02 Mar 2007 09:36:21 GMT</lastBuildDate><pubDate>Fri, 02 Mar 2007 09:36:21 GMT</pubDate><ttl>60</ttl><item><title>后台如何调用JSF页面的值</title><link>http://www.blogjava.net/yuanhuaming/archive/2007/01/18/94605.html</link><dc:creator>疯流成性</dc:creator><author>疯流成性</author><pubDate>Thu, 18 Jan 2007 04:21:00 GMT</pubDate><guid>http://www.blogjava.net/yuanhuaming/archive/2007/01/18/94605.html</guid><wfw:comment>http://www.blogjava.net/yuanhuaming/comments/94605.html</wfw:comment><comments>http://www.blogjava.net/yuanhuaming/archive/2007/01/18/94605.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yuanhuaming/comments/commentRss/94605.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yuanhuaming/services/trackbacks/94605.html</trackback:ping><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">1.<span style="FONT: 7pt 'Times New Roman'">     </span></span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">通过</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">backing bean </span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">对页面的值进行绑定</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">JSF</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">封装的</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">HTML</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">控件都有一个</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">binding</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">的属性，通过该属性可以在后台对该控件取值赋值。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">body</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&gt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">f:view</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&gt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">h:form</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&gt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">h:inputText </span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">binding</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">=</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">"#{loginBean.txtUser}"<span style="COLOR: teal">&gt;&lt;/</span><span style="COLOR: #3f7f7f">h:inputText</span><span style="COLOR: teal">&gt;</span><o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">h:commandButton </span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">actionListener</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">=</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">"#{loginBean.txtListener}"<span style="COLOR: black"></span><span style="COLOR: #7f007f">value</span><span style="COLOR: black">=</span><span style="COLOR: #2a00ff">"enter"</span><span style="COLOR: teal">&gt;&lt;/</span><span style="COLOR: #3f7f7f">h:commandButton</span><span style="COLOR: teal">&gt;</span><o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;/</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">h:form</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&gt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;/</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">f:view</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&gt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&lt;/</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">body</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">&gt;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">private</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> UIInput </span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #0000c0; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">txtUser</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">public</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> UIInput getTxtUser() {</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">return</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #0000c0; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">txtUser</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>}</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">public</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">void</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> setTxtUser(UIInput txtUser) {</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">this</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">.</span>
				<u>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">txtUser</span>
				</u>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> = txtUser;</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>}<span style="mso-tab-count: 1">        </span></span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">public</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
				</span>
				<b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">void</span>
				</b>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> txtListener(ActionEvent e){</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #0000c0; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">txtUser</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">.setValue(</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">"11111"</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">);</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>System.</span>
				<i>
						<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #0000c0; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">out</span>
				</i>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">.println(</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #0000c0; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">txtUser</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">.getValue().toString());</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>}</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">2.<span style="FONT: 7pt 'Times New Roman'">     </span></span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">在一个</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">bean</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">中调用其它</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">bean<br /><o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">
								<br />        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>FacesContext context = FacesContext.<i>getCurrentInstance</i>();</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>ValueBinding binding = context.getApplication().createValueBinding(</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
				</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">"#{uptBean}"</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">);</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>
						<span style="mso-tab-count: 1">        </span>uptBean bean = (uptBean) binding.getValue(context);</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt"> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">这段代码就是用来调用</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">uptBean</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">。</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">CreateValueBinding</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">（）方法中的参数，可以是</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">bean</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">，也可以</span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">bean</span>
				<span lang="ZH-CN" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">中对应得数据。<br /></span>
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: SimSun; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Courier New'; mso-font-kerning: 0pt">
						<br />
						<br />
						<br /> <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0mm 0mm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"> <o:p></o:p></span>
		</p>
<img src ="http://www.blogjava.net/yuanhuaming/aggbug/94605.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yuanhuaming/" target="_blank">疯流成性</a> 2007-01-18 12:21 <a href="http://www.blogjava.net/yuanhuaming/archive/2007/01/18/94605.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>