锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91在线亚洲综合在线,亚洲AV电影天堂男人的天堂,ZZIJZZIJ亚洲日本少妇JIZJIZhttp://m.tkk7.com/daniel007/category/2849.html鐧藉垏闈㈢墖JAVA涔嬭礬zh-cnTue, 06 Nov 2007 16:46:40 GMTTue, 06 Nov 2007 16:46:40 GMT60JSF without ManagedBeanhttp://m.tkk7.com/daniel007/archive/2007/11/05/158337.html鐧藉垏闈㈢墖鐧藉垏闈㈢墖Mon, 05 Nov 2007 11:43:00 GMThttp://m.tkk7.com/daniel007/archive/2007/11/05/158337.htmlhttp://m.tkk7.com/daniel007/comments/158337.htmlhttp://m.tkk7.com/daniel007/archive/2007/11/05/158337.html#Feedback0http://m.tkk7.com/daniel007/comments/commentRss/158337.htmlhttp://m.tkk7.com/daniel007/services/trackbacks/158337.htmlJSF without ManagedBean

鐪嬪埌 Shale 鐨?Spring Integration 鏂囨。鐨勪粙緇嶅師鐞嗭紝鍏朵腑欏哄簭濡備笅錛?/font>

When asked to resolve a variable name, the following algorithm is performed:

1.Does a bean with the specified name already exist in some scope (request, session, application)? If so, return it.

2.Is there a standard JavaServer Faces managed bean definition for this variable name? If so, invoke it in the usual way, and return the bean that was created.

3.Is there configuration information for this variable name in the Spring WebApplicationContext for this application? If so, use it to create and configure an instance, and return that instance to the caller.

4.If there is no managed bean or Spring definition for this variable name, return null instead.

榪欐牱鐨勮瘽錛屽彧瑕?Spring 鍙互鎺у埗 Bean 鐨?Scope 鐨勮瘽錛屽氨鍙互鎶?Managed-Bean 鐨勯厤緗斁鍒?Spring Bean 閲屾潵閰嶇疆錛屼竴鏂歸潰錛屾垜浠彲浠ョ渷鍘諱簡 JSF 鐨?Managed Bean 鐨勯厤緗紝鍙﹀鐨勮瘽錛屾垜浠彲浠ュ JSF 鐨?Backing Bean 浣跨敤 AOP 浠ュ強(qiáng) Spring 鎻愪緵鐨勫緢澶氬姛鑳姐傝繃鍘誨湪 JSF-Spring 涓皾璇曠潃鍘繪帶鍒?Spring Bean 鐨?Scope錛屼絾鏄仛鐨勫茍涓嶅ソ錛岀幇鍦?Spring 2.0 緇欐垜浠彁渚涗簡榪欐牱鐨勮兘鍔涳紝緇忚繃瀹為獙錛岃瘉鏄庝簡榪欐牱鏄彲琛岀殑銆?/font>

涓嶈繃濡傛灉浣跨敤 Spring Bean 浠ュ悗錛屼細(xì)閫犳垚浣跨敤 Managed Bean 鐨?JSTL 鏃犳硶浣跨敤錛屽叾瀹?JSTL 鏈韓鐢ㄨ搗鏉ュ氨鏃跺ソ鏃跺潖鐨勶紝鎵浠ュ獎鍝嶅茍涓嶅お澶т簡銆?/font>

鏁村悎璧鋒潵姝ラ闈炲父鐨勭畝鍗曪細(xì)

1. 鎶?Spring 2.0 鐨?jar 鏂囦歡鏀懼埌 lib 涓嬮潰錛屽綋鍓嶄嬌鐢ㄧ殑鏄?Spring 2.0 RC3

2. 鍥犱負(fù)浣跨敤鐨勬槸 Servlet 2.4錛屾墍浠ヨ鍦?web.xml 涓姞鍏?br />     <listener>
        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
    </listener>

3. 淇敼 applicationContext.xml

娉ㄩ噴鎴栧垹鎺変互涓嬪唴瀹癸細(xì)

  <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
  "
http://www.springframework.org/dtd/spring-beans.dtd ">

淇敼 <beans> 涓猴細(xì)

  <beans xmlns=" http://www.springframework.org/schema/beans "
       xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance "
       xmlns:aop="
http://www.springframework.org/schema/aop "
       xsi:schemaLocation="
 
http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd ">

4. 鐒跺悗灝卞彲浠ユ寜鐓ч厤緗?Spring Bean 鐨勬柟寮忔潵閰嶇疆 Managed Bean:

    榪欎釜鏄?Request Scope 涓殑 Bean:
    <bean id="loginBean" class="org.agilejava.icustomer.backingbean.LoginBean"
          scope="request" autowire="byName">
        <aop:scoped-proxy/>
    </bean>

    榪欎釜鏄?Session Scope 涓殑 Bean:
    <bean id="menuBean" class="org.agilejava.framework.commons.menu.MenuBackingBean"
          scope="session" autowire="byName">
        <aop:scoped-proxy/>
    </bean>

铏界劧鐭湡鏉ョ湅錛岄厤緗笂浼?xì)灏戝啓浜嗕竴浜涳紝鍥犱負(fù) autowire="byName"錛屼絾鏄粠闀胯繙鏉ョ湅錛屾垜浠彲浠ュ埄鐢?Spring 鐨勬洿澶氬姛鑳斤紝姣斿 AOP 鏉ュ寮?Backing Bean 鐨勮兘鍔涳紝鎴戠殑絎竴涓鎯沖氨鏄敤 AOP 鏉ュ鐞?Backing Bean 涓殑寮傚父.good



]]>
主站蜘蛛池模板: 免费国产叼嘿视频大全网站 | 亚洲人成影院在线高清| 中文字幕日本人妻久久久免费| 老司机亚洲精品影院在线观看| 亚洲第一成年免费网站| 亚洲精品人成网在线播放影院 | 亚洲精品一级无码鲁丝片 | 亚洲理论在线观看| 亚洲免费二区三区| 亚洲a级片在线观看| 一级毛片视频免费| 国产乱辈通伦影片在线播放亚洲| 一区二区视频在线免费观看| 国产亚洲一区区二区在线| 一级毛片a免费播放王色| 亚洲人成色77777| 免费A级毛片av无码| 亚洲国产成a人v在线| 德国女人一级毛片免费| 美女羞羞喷液视频免费| 毛片a级毛片免费播放下载| 亚洲Av无码精品色午夜| 亚洲电影免费观看| 亚洲免费网站观看视频| 亚洲欧洲自拍拍偷精品 美利坚| 13小箩利洗澡无码视频网站免费 | 最近最好最新2019中文字幕免费| 亚洲视频一区调教| 99精品国产免费久久久久久下载| 亚洲av无一区二区三区| 57pao国产成视频免费播放| 亚洲中文字幕无码中文| 国产亚洲精品AA片在线观看不加载| 高清一区二区三区免费视频| 中中文字幕亚洲无线码| 亚洲午夜福利精品无码| 在线观看www日本免费网站| 国产成人久久精品亚洲小说| 女人18特级一级毛片免费视频| 黄网站色成年片大免费高清| 久久亚洲精品成人av无码网站|