Jpf portlet cache?

I've got a jpf portlet, which has a few actions to take the user to different pages. However, if I go through the actions, next time I click on the portlet, it seems to cache it and take me to the last page I went through, NOT the first page I wanted. And the begin method doesn't seem to get executed again. I've tried to change the properties of the portlet(Cahe Expires to 0 second and Cache Render Dependencies to false) but doesn't seem to work. Does any know how to solve this? Thanks!

Page flow Refresh Action is for refresh.You can always specify 'begin' as the value here.
Specifying a separate action lets you do things like goto a specific page if you want to remember the state of the user etc.
If you generate the urls with _nfls=false whenever you click on a page /book then all pageflows get reset so their begin action will be called always.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Portlet caching in weblogic portal 10.3

    Hi,
    I implemented the following for testing portlet caching.
    1) I have one JSR/168 portlet with cache enabled(Render Cacheable property set to true). This portlet displays time.
    2) Have another JSP portlet which prints the cache names and size of the cache.
    3) Then third portlet which is a JSF portlet has a submit buton
    The caching works fine in the JSR/168 portlet.
    I used the following code to display cache names and cache size.
    String[] cacheNames = CacheFactory.getCacheNames();
    for(int index = 0; index < cacheNames.length; index ++ ) {
    Cache rcCache = CacheFactory.getCache(cacheNames[index]);
    Iterator cacheKeyIterator = rcCache.keySet().iterator();
    int cacheKeySize = rcCache.keySet().size();
    while( cacheKeyIterator.hasNext() ) {
              Object aKey = cacheKeyIterator.next();
    Object keyValue = rcCache.get( aKey );
    System.out.println( "Cache Name: " + cacheNames[index] + "," + cacheKeySize + "," + keyValue.getClass()+","+keyValue );
    The above code displays only the cache names which display metadata of the portal/portlet like portlet preferences, localization details.
    But I need to know the cache name which is caching the portlet content and in which form the content is getting
    cached(as a value object or as HTML). Any help on this?

    Hi,
    Could someone pls explain which cache is used to cache portlet content and in which form the content is cached?

  • JPF portlet and setupStateChangeEvent

    I have a JPF portlet as below
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet backingFile="com.wellsfargo.ws.weo.backing.EditBacking"
    definitionLabel="portlet_48" presentationClass="dashBoard" presentationId="dashBoard" title="test">
    <netuix:titlebar>
    <netuix:maximize/>
    <netuix:delete/>
    <netuix:edit contentUri="/content/presentation/test/test/TestController.jpf"/>
    </netuix:titlebar>
    <netuix:content>
    <netuix:pageflowContent action="start" refreshAction="refresh" contentUri="/content/presentation/test/test/TestController.jpf"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    JPF code:
    package content.presentation.test.test;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    import com.bea.netuix.servlets.controls.window.WindowCapabilities;
    import com.bea.netuix.servlets.controls.window.WindowState;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    * @jpf:controller
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
    * <view-properties>
    * <pageflow-object id="pageflow:/content/presentation/test/test/TestController.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="80" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="page:index.jsp">
    * <property value="160" name="x"/>
    * <property value="160" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="page:edit.jsp">
    * <property value="260" name="x"/>
    * <property value="160" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#edit.jsp#@action:begin.do@">
    * <property value="116,170,170,224" name="elbowsX"/>
    * <property value="52,52,152,152" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="action:start.do">
    * <property value="180" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#index.jsp#@action:start.do@">
    * <property value="144,144,160,160" name="elbowsX"/>
    * <property value="52,106,106,116" name="elbowsY"/>
    * <property value="West_1" name="fromPort"/>
    * <property value="North_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * </view-properties>
    public class TestController extends PageFlowController
    // Uncomment this declaration to access Global.app.
    // protected global.Global globalApp;
    // For an example of page flow exception handling see the example "catch" and "exception-handler"
    // annotations in {project}/WEB-INF/src/global/Global.app
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="edit.jsp"
    protected Forward begin()
    PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(getRequest());
    String state = WindowCapabilities.MAXIMIZED.getName();
    if(pbc != null)
    pbc.setupStateChangeEvent(state);
    String title = pbc.getTitle();
    getRequest().setAttribute("message", "In the edit page");
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward start()
    PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(getRequest());
    pbc.setupStateChangeEvent(WindowCapabilities.NORMAL.getName());
    getRequest().setAttribute("message", "Hello");
    return new Forward("success");
    Question: The portlet is not getting maximized when I click on edit button in my portlet.

    Hi,
    The Solution is very straight forward.If you are creating a JavaPageFlow based portlet then in JSP you must use beehive netui tag.If you are using simple jsp tag then it will not fullfill your requirement.
    Create a pageflow ,in the index.jsp page create a form(with <netui:form action="submitData">) tag.Create two text boxes(<netui:text>) and then create a form bean in the controller which will be associated with the action of the form.
    In the controller's submitData action put the value in the request or session and forward to displayData.jsp.
    Now create a portlet out of this pageFlow and put on the portal file.
    Thanks
    Bishnu
    Regards
    Bishnu

  • Portlet to JPF Portlet Communication

    Hi All,
    Can someone tell how to communicate from a JSP Portlet to a JPF Portlet.I have
    tried communicating from a JSP Portlet to a JSP Portlet using the Event Manager
    mechanism.Is there corresponding attribute of Backing File in a JSP Portlet in
    JPF Portlet.
    cherio,
    Mani

    Hi Mani,
    How do you want to communicate to the jpf portlet from the jsp portlet.
    If you want to just use a href, the jpf portlet can be referenced by following
    /portal_app_name/appmanager/portal_name_created_in_admin_portal/desktop_name?_nfpb=true&_pageLabel=pageLabelName
    Let me know if you have any questions.
    sathish
    "Manikandan" <[email protected]> wrote:
    >
    Hi All,
    Can someone tell how to communicate from a JSP Portlet to a JPF Portlet.I
    have
    tried communicating from a JSP Portlet to a JSP Portlet using the Event
    Manager
    mechanism.Is there corresponding attribute of Backing File in a JSP Portlet
    in
    JPF Portlet.
    cherio,
    Mani

  • Portlet caching

    Portlet caching
    Scenario: An application consisting of several related portlets on different pages.
    Overview:
    1- Summary Status page displays summary status in a portlet. The status is obtained from a pageflow call to a database.
    2- Detail Status page displays detailed status in a portlet for several objects. The detailed status is obtained from a pageflow call to a database. From this page a call, via a link, is made to an Update Page.
    3- Update page contains a form where the status for an object(s) is entered and written to the database.
    Functionality:
    When the database is updated using the Update Page the status should be "immediately" visible to users who did the update when they navigate from the Update Page to either the Summary Status Page or the Detail Status Page.
    Problem:
    After updating the database the newly added values are not immediately available to the user who did the update. Other users logging onto the system see the updates but not the updater.
    Can someone provide some insight into how I can make the data immediately available? I would think that once the database is updated that a call to a status page, which does a pageflow call to the database, should update the data for the user.
    I have turned the Render Cacheable property in the portlets properties to false disabling caching but this has no effect.
    Thanks for your assistance.
    Everette

    Simon,
    The current version of Oracle Portal 3.0.6.6.5 and 3.0.7.6.2 does not handle web portlet caching as it is supposed to. This issue is fixed in the next release of 9iAS Portal which should be available the early half of this year. I apologize for the confusion in this.
    Also, you always use the parallel.jar that comes with your 9iAS Portal installation. The one we provide in the JPDK is for users of 9iAS Portal Early Adopters Release. Please do not use if you are using the production version of 9iAS Portal.
    Sue

  • How do I flush the portlet cache?

    I have tried using the portlet cache (renderCacheable="true" ) on some data intensive pages and its working fine. When i make changes to to the data i need to be able to flush that cache though so that the portlets show the updated data.
    I have tried to find a way to do this programaticly but so far i havent found any solution. How do i do this?

    Create a backingFile on the portlet
    and from one of the methods (say handlePostbackData)
    call
    PortletBackingContext.getBackingContext(request).invalidateCache();
    Chris Jolley
    Portal Architect

  • How to do the data binding in JPF portlet

    Hi
    I want to know how i will get the data from Controller action to my JSP page in JPF portlet.
    is there a use of JPF portlet implicit objects
    or Portlet Context??

    You can use ActionOutput in Controller to push data to JSP page and use pageInput in JSP file to catch that data to display.
    For example:
    @Jpf.Action(
              forwards = {
                   @Jpf.Forward(      
                        name = "index",
                        path = "/tinhvan/portal/index.jsp",
                        actionOutputs = {
                             @Jpf.ActionOutput( name = "userList", required = true, type = java.util.List.class)
         protected Forward begin() {
              usersList = getUsers();
              Forward fw = new Forward("index");
              fw.addActionOutput("userList", getUsers());
              return fw;
    <netui:body>
         <netui-data:declarePageInput name="userList" type="java.util.List"/>
            <netui:form tagId="searchForm" action="search" method="post">
                     <netui:select tagId="user" dataSource="actionForm.performedUser" size="1" title="Chọn người dùng cần theo dõi">
                   <netui:selectOption value="">-- Xem tất cả --</netui:selectOption>
                   <c:forEach items="${pageInput.userList}" var="user">
                        <netui:selectOption value="${user}">${user}</netui:selectOption>
                   </c:forEach>
              </netui:select>
            </netui:form>
    </netui:body>Regards
    CuongPT - junior staff - Tinhvan JSC. Vietnam

  • Reset Portlet Cache

    Hi!
    I am building a portlet that display results of a SQL query (defined on admin settings). The portlet is used by many users. Caching works fine except on occasions when the user is required to view the latest records.
    Is it possible to reset the portlet cache (I.e.. Users clicking on a button  on the portlet to invalidate the cache?)
    I am interested in maintaining a public cache. The documentation recommends having a  unique, invisible setting (eg. current time). My concern is that, this approach would  be similar to private caching (having multiple combinations of cache rather than one per portlet).
    Is there a header that can be sent to invalidate the cache? I see that postbacks (.net) ignore caching.

    Hi, Mark -
    Exactly.  That should prevent the portal from caching portlet content.  It may be more expensive
    short-term, but you get far more control from ASP.NET caching.
    If someone from BEA disagrees w/ this or sees a better way please let us know.  This topic has
    come up a few times and the last suggestion was to implement programmatic caching like this
    through code...
    Thanks,
    Eric
    ------- Mark Breen wrote on 2/14/06 6:20 PM -------Hi Eric,
    Thanks for your response!
    when you say take Plumtree/BEA framework out of the equation, do you mean to set the caching
    min, max to 0 on the portlet registration and use ASP.NET cahcing only?
    Cheers!

  • Page and Portlet caching possibilities - Portal 10g

    On most of our portalpages we have at least 2 separated areas.
    In the first area there is a menuportlet which depends on the users access rights.
    Second area shows an item that is rarely changed.
    Is there any possibility to cache this page on "systemlevel for x seconds" and
    the menu on "userlevel for x seconds" ?
    Now some facts about the pages:
    Our portel contains over 1000 pages.
    These rarely changed contents are informations not often read by the same user, because the most info they will get are news, reports or anything else like this.
    Thanks for any help!

    Hallo Juergen,
    Menu portlet: you can edit the portlet instance settings and configure system level caching for x seconds.
    For the entire page, configure user level caching for y seconds.
    This holds true if x>=y.
    If y>x, set the menu portlet timeout to the same as the page timeout.
    Hope this helps,
    Peter

  • JSF portlet Cache

    Hi
    In my application home page i have 3 JSF portlets & some static contents, I would like to cache the same. I used afc:cache in 10g, but im not able to use it 11g. Also how to cache JSF portlets?

    When creating JSF portlets in Jdeveloper, he asked if the portlets need to be cached.
    This will add en entry in the portlet.xml. You can also add it manualy:
    <expiration-cache>300</expiration-cache>But normaly these things will be cached on a higher level using a webcache or some sort.

  • Regarding Portlet caching on Portal 8.1

    Hi,
    I m using WLP 8.1 where i have tried by setting 'Render Cacheable' and 'Cache Expires'. But when i run portal,my jpf is reflected with latest data, but it should show cache data. Even i tried in portal administrator.
    Pls suggest ...
    Regards,
    Senthil

    In order to diagnose your problem you will need to download and install the below
    Install the WPT (Windows Performance Toolkit) 
    http://www.microsoft.com/en-us/download/details.aspx?id=30652
    Help with installation (if needed) is here
    When you have, open an elevated command prompt and type the following 
    WPRUI.exe (which is the windows performance recorder) and check off the boxes for the following:
    First level triage (if available), CPU usage, Disk IO.  
    If your problem is not CPU or HD then check off the relevant box/s as well (for example networking or registry)  Please configure yours as per the below snip.  This will reboot your system so make sure you save your
    work
    Click Start
    Let it run for 60 secs or more and save the file (it will show you where it is being saved and what the file is called)
    Zip the file and upload to us on Onedrive (or any file sharing service) and give us a link to it in your next post.
    Wanikiya and Dyami--Team Zigzag

  • Which Cache is the Portlet Cache?

    Greetings,
    We're using WL Portal 8.1 SP2.
    When using the portal administration tool, I can add or change a portlet on a page, but it does not always show up immediately. It sometimes takes a redeploy to see it.
    Is this a cache? Can I use the Cache Manager in the CONFIGURATION SETTINGS-->SERVICE ADMINISTRATION section of the admin tool to create a cache configuration to be used to flush it? If so, what is the name of the cache?
    Thanks,
    --steve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I believe that I have narrowed it down to a Web Server sitting in front of the BEA Portal. If I download the page directly from the BEA Server, the changes appear immediately.
    Thanks for your response.
    --steve                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Portlet Cache Scope

    When using Workshop 8.1 sp2, and we set the cache property of a portlet to true, what is the scope of that cache? session, application, etc...?

    session.
    This puts a lot of stuff in the httpsession. be careful as the session size, in a clustered environment can become an issue.

  • Page, portlet cache

    Hello, folks,
    I have an annoying technical issue for refreshing page.
    I have a page: PageA, in PageA, there is a portlet : PortletB, which will have some links to BEA CMS. The workflow is like:
    1) people click PageA link
    2) people see page with PortletB
    3) there are 3 links in PortletB
    4) people click link in PortletB
    5) PortletB refresh to load content and render contents.
    Now, I click PageA and want it to show the orignial PortletB, which has three links only, however, when I click PageA, PortletB just refresh the current contents, I cannot go back Previous PorletB with 3 links.
    BTW , portletB is a pageFlow.
    Could someone give me some hints?
    Thanks very much.
    Yi

    What patch version are you running on - prior to 30982 debug=0 didn't work properly.
    After and including 30982 there is debug=0 and debug=1
    pre-3.0.9.8.2
    enabled by adding "&_debug=1" to the end of the regular PPE URL. The resulting page will be cached, including statistics, if the page is marked with the "Page + Contents" style of caching. All portlets, and the page meta data, are passed the "_debug=1" flag which can alter the behaviour of the portlet, and typically alters the caching characteristics.
    3.0.9.8.2
    enabled by added "&_debug=0" to the end of the regular PPE URL. The resulting page is guaranteed to be assembled at the time of request. There is never a retrieval of a previously assembled page. No debugging parameter is passed though to either the portlets or the page meta data so the cache statistics are more accurately reflected.
    changed "_debug=1" behaviour so that resulting page is guaranteed to be assembled at the time of the request, but the parameter is passed through to portlets so the caching information often changes.
    3.0.9.8.3
    added "Login Meta Time" section. This information, relating to the use of a provider on the page with a login frequency other than "Never", is now broken out from the page meta time.
    In each version, the debugging flag will produce a web page annotated with performance and caching information
    -JP

  • Java portlet caching problem

    I am facing portlet state problem.
    Problem is below,
    step 1. I opened a page in java portlet, then set some filters for my list boxes and for check boxes, then executed i got all my search results,
    then closed the page.
    step 2. opened page again, which opens in the same portlet as step 1, then this portlet displays the page with results instead of default page
    I tried setting _nfls parameter to false in request URL, but still it is loading the  page with state as in step1.(i'e page with filters set and with results)
    Any suggestions on how to overcome this?

    Raju,
    Hope this thread helps you.
    http://forums.bea.com/bea/message.jspa?messageID=600014822&tstart=0
    Let me know if this works for you.
    Cheers,
    Satish

Maybe you are looking for