<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    kapok

    垃圾桶,嘿嘿,我藏的這么深你們還能找到啊,真牛!

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      455 隨筆 :: 0 文章 :: 76 評論 :: 0 Trackbacks

    http://e-docs.bea.com/wlp/docs81/ipcguide/howworks.html#1001022

    Understanding Backing Files

    The portal you created in A Simple Example of Establishing IPC uses backing files to achieve communication between two portlets. Backing files allow you to programatically add functionality to a portlet by implementing (or extending) a Java class, which enables preprocessing (for example, authentication) prior to rendering the portal controls.

    What are Backing Files?

    Backing files are simple Java classes that implement the com.bea.netuix.servlets.controls.content.backing.JspBacking interface or extend the com.bea.netuix.servlets.controls.content.backing.AbstractJspBacking interface abstract class. The methods on the interface mimic the controls lifecycle methods (see How Backing Files are Executed) and are invoked at the same time the controls lifecycle methods are invoked.

    Which Controls Support Backing Files?

    At this time, the following controls support backing files:

    • Desktops
    • Books
    • Pages
    • Portlets

    How Backing Files are Executed

    All backing files are executed before and after the JSP is called. In its lifecycle, each backing file calls these methods:

    • init()
    • handlePostBackData()
      • raiseChangeEvents()
    • preRender()
    • dispose()

    On every request, the following occurs:

    1. All init() methods are called on all backing files on an "in order" basis (that is, in the order they appear in the control tree; for more information on the control tree and its lifecycle please see Controls in the white paper). This method gets called whether or not the control (that is, portal, page, book, or desktop) is on an active page.
    2. Next, if the operation is a postback and the control (a portlet, page, or book) is on a visible page, all handlePostbackData() methods are called. In other words if portlet is on a page but its parent page is not active, then this method will not get called.
      • If _nfpb="true" is set in the request parameter of any handlePostbackData() methods called, raiseChangeEvents() is called. This method causes events to fire.
    3. Next, all preRender() methods are called for all controls on an active (visible) page.
    4. Next, the JSPs get called and are rendered on the active page by the <render:beginRender> JSP tag. Rendering is stopped with the <render:endRender> tag.
    5. Finally, the dispose() method gets called on the backing file.

    Thread Safety with Backing Files

    A new instance of a backing file is created per request, so you don't have to worry about thread safety issues. New Java VMs are specially tuned for short-lived objects, so this is not the performance issues it once was in the past. Also, JspContent controls support a special type of backing file that allows you to specify whether or not the backing file is thread safe. If this value is set to true, only one instance of the backing file is created and shared across all requests.




    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="    xmlns:portal="    xmlns:xsi="    <netuix:portlet backingFile="backing.Listening" definitionLabel="portlet_5" title="bPortlet">
            <netuix:handlePortalEvent event="onMinimize" eventLabel="handlePortalEvent1"
                filterable="true" fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionLabels="portlet_4">
                <netuix:invokeBackingFileMethod method="handlePortalEvent"/>
            </netuix:handlePortalEvent>
            <netuix:titlebar>
                <netuix:maximize/>
                <netuix:minimize/>
                <netuix:delete/>
            </netuix:titlebar>
            <netuix:content>
                <netuix:jspContent contentUri="/bPortlet.jsp"/>
            </netuix:content>
        </netuix:portlet>
    </portal:root>




    <A class=bea-portal-button
    href="
    http://localhost:7001/JSR168PortalWebProject/appmanager/jsr168portal/desktop1?_nfpb=true&amp;_windowLabel=T6011&amp;_mode=edit&amp;_pageLabel=P2001">Edit
    </A>

    posted on 2005-04-22 14:52 笨笨 閱讀(458) 評論(0)  編輯  收藏 所屬分類: J2EEALLWeblogic Portal
    主站蜘蛛池模板: 久久久久久毛片免费看 | jizz免费在线观看| 国产无遮挡又黄又爽免费视频| 亚洲AV成人无码久久精品老人| 免费国产污网站在线观看| 久草在视频免费福利| 国产精品亚洲午夜一区二区三区| 一级毛片免费不卡直观看| 亚洲欧洲久久av| 午夜网站在线观看免费完整高清观看| 久久精品国产精品亚洲色婷婷| 91精品全国免费观看含羞草| 久久亚洲色一区二区三区| 亚洲婷婷在线视频| 成年美女黄网站18禁免费| 亚洲AV午夜福利精品一区二区| 久久精品中文字幕免费| 国产一区二区三区无码免费| 猫咪免费人成网站在线观看入口| 中文字幕精品亚洲无线码一区| 色天使色婷婷在线影院亚洲| 7x7x7x免费在线观看| 亚洲一级大黄大色毛片| 午夜精品一区二区三区免费视频| 亚洲欧洲另类春色校园小说| 青青青国产在线观看免费网站| 羞羞视频免费观看| 亚洲AV电影院在线观看| 日韩免费无砖专区2020狼| 国产成人1024精品免费| 91亚洲自偷在线观看国产馆| 日本免费人成黄页网观看视频| 国产黄在线播放免费观看| 亚洲美女中文字幕| 亚洲精品国自产拍在线观看| 91香蕉国产线在线观看免费| 爱情岛论坛亚洲品质自拍视频网站| 亚洲精品无码av人在线观看| 最近中文字幕mv免费高清电影| 黄 色一级 成 人网站免费| 亚洲免费视频播放|