Backing file at Page level

Hi,
I am working on Weblogic portal 9.2. I have single Portal that hold one page and 3 portlet.
Conditionally I wanted to visible and hide these portlet so I added backing file at Page level and after using setVisible() method of portlet I can hide or show these portlet.
But the problem is Portal page is not visible in portal administrator until and unless you created desktop template from existing portal web app.
But consider somebody created new page on portal administrator and added these 3 portlet.and now want to see visibility and hiding functionality of portlet. So Page level Backing file approach will be fail as this page will not have any backing file support.
So in this scenario how do I hide and show portlet without help of backing file

Hi Kevin
Just curious where exactly the BackingFile information gets stored for Pages, Books, Desktops etc in the Portal DB Schema. As per my understanding, from IDE we create .portal file. Add books/pages and portlets to the pages. We assign BackingFiles to Page/Book and portlets. When we deploy and create Desktop, this .portal file is parsed and all the information gets stored in the DB Tables. When we run portal in streamline mode, it gets all the details from the DB tables and NOT from the .portal file any more. In PF_PORTLET_DEFINITION Table, I could see a column to store the BackingFile full path. And in .EAR file we have this .class file. But in PF_PAGE_DEFINITION, PF_BOOK_DEFINITION, I could not see any such columns. So my question is in streamline mode when a desktop is rendered by reading all these tables, where exactly the BackingFile is getting triggered/called from which table. Does it still refer .portal file.
Thanks
Ravi Jegga

Similar Messages

  • Can we override the Desktop LAF for Pages using backing Files ?

    Hi
    I have the following Look And Feel related requirement.
    We have an global application level Skin which was applied at the desktop level using the .laf file.
    But some of the pages require a totally different Look and Feel apart from the one defined at the desktop level.
    To put the question in the other way,
    Can we override the skin & skeleton defined at the Desktop level using the backing file (for page or portlet) ?
    The following is the code snippet, which i used in the backing file to achive the above.
    LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
    lookAndFeel.setSkin(y_skin);
    lookAndFeel.setSkeleton(y_skeleton);
         lookAndFeel.reinit();
    Here the y_skin & y_skeleton are the new set of skin & skeletion which i have created for the page.
    when i ran the above snippet in the portal framework, i found the desktop level skin is getting applied
    to the pages insted of the y_skin & y_skeleton.
    Any help or directions .... for dynamically changing the skin & skeletion for pages will be appreciated.
    Thanks & Regards
    - Sachi

    What you are doing looks valid.
    this is the code that i have
    public void init(HttpServletRequest request, HttpServletResponse response)
    // Get the session from the request
    HttpSession session = request.getSession();
    // Get the LookAndFeel object from the PrimaryTheme in the request
    LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
    if (request.getParameter("defaultButton") != null)
    //System.out.println("default skin selected");
    session.setAttribute("skin", "default");
    if (request.getParameter("textButton") != null)
    //System.out.println("text skin selected");
    session.setAttribute("skin", "text");
    if (request.getParameter("classicButton") != null)
    //System.out.println("classic skin selected");
    session.setAttribute("skin", "classic");
    String selectedSkin = (String) session.getAttribute("skin");
    if (selectedSkin != null)
    //System.out.println("setting skin and skeleton to: '" + selectedSkin + "'");
    lookAndFeel.setSkin(selectedSkin);
    lookAndFeel.setSkeleton(selectedSkin);
    lookAndFeel.reinit();
    }

  • How do I change the default save location for new files in Pages back from iCloud to my Documents folder?

    I just upgraded OSX to Mountain Lion and Pages to 4.2, and because OSX is syncing with my iCloud account, when I go to save a new file in Pages it defaults to try to save to my iCloud account rather than giving me the folder structure on my hard-drive that I prefer. It requires two extra steps to save to the proper place in my Documents folder on my hard drive.
    Is there a way to reset the default so that when I go to save a new file, the folder structure opens to the last saved folder (like it does in other non-iCloud applications) rather than defaulting to my iCloud, and to do it without just removing documents from my iCloud account entirely?
    I checked the Preferences for both Pages and iCloud and found nothing about this.

    What I meant is turn off Documents and Data in iCloud in OS X. Keep it on on your iOS devices. iCloud will sync documents between the iOS devices and make them available on the iCloud web site, but it won't mess up iWorks' open and save dialog boxes. It also won't assume that you want all your documents in iCloud, which I think is undesirable anyway.
    Keep iOS and OS X separate, and use the web site to move files between the two as necessary.
    iOS iWork is different from OS X iWork. There are fewer fonts on an iOS device. iOS iWork programs have slightly different feature sets than OS X iWork programs, and the file formats are different. iCloud automatically converts the file format when necessary, but if you make a habit of saving things directly to iCloud, you are limited to the lowest common denominator between the two versions of iWorks. So why would anyone want iWork on the Mac to open and save documents on iCloud by default?
    If you want to store files in the cloud and sync them on your Macs, SugarSync is a much better solution. It lets you choose your sync folders, it doesn't make you reorganize your files, it lets you sync all file types, it doesn't convert files to a different format and back, and it stores everything in the cloud, too. Just the simle act of saving a file backs it up and syncs it. I wouldn't live without it. iCloud is best with iTunes purchases and synchronizing Mac settings and iOS files; I woudln't live without it. The two make an unbeatable combination.

  • After updating to iOS 8 all of my files in Pages are gone!!!! Where are they? And how do I get them back?

    After updating my iPad to iOS 8 all my files in Pages and Numbers are gone!!! Where are they and how do I get them back?

    If you didn't configure Windows Phone backup option or use VZW Backup Assistant then all is lost.
    If you did go with Windows Phone native backup and you use an Outlook account you should find your photos and videos on OneDrive.  I'm not sure how much VZW Backup Assistant backs up but you would need to start a restore from that software and see what's preserved.
    With any OS installs/updates a backup is always best to first.

  • I am not able to use two backing files in same portal page

    hi to all
    i am using backing files in remote portlet.
    but i have two portlets in my portal page and in both i need to use backing files. i used seperate backing files for both the portlets but only one works at a time.
    please help me out frnds..
    did this happening because of same object MarkupRequestState.KEY..... following is code that i am using. similar code used for another portlet, just a change of state varible and parameter variable
    am i missing something?
    package backempno;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.bea.netuix.servlets.controls.content.backing.AbstractJspBacking;
    import com.bea.wsrp.ext.holders.MarkupRequestState;
    import com.bea.wsrp.ext.holders.SimpleStateHolder;
    public class sendempno extends AbstractJspBacking
    public boolean preRender(HttpServletRequest request,HttpServletResponse response)
    SimpleStateHolder state2 = new SimpleStateHolder();
    String empno=request.getParameter("empno");
    state2.addParameter("empno",empno);
    request.setAttribute(MarkupRequestState.KEY, state2);
    return true;
    }

    Hi Susan,
    In that case I will recommend that you consult a local technician/IT team and see if there is some network connectivity issue with your machine.
    - Abhishek Maurya

  • Changing current page from backing file

    Using WL 8.1 SP4
    I have a User Acceptance Policy page in my portal, and I want to ensure that users have viewed this page before I allow them to view any other content.
    When users have viewed the UAP, I set a session variable. I then use the session variable in my entitlements, so there's no problem with them viewing content they shouldn't.
    The problem I have is that if users try to access a page directly (or their session has expired), they're left with a blank page (as they're not entitled to see anything), rather than being sent to something helpful (i.e. the UAP).
    So I need a backing file. It can either be on every page (except the UAP), or I can put it on the book - whatever is recommended.
    I've tried this as a page backing file:
    public class UAPCheck extends AbstractJspBacking {
    public boolean handlePostbackData(HttpServletRequest request, HttpServletResponse response){
    PageBackingContext pbc = PageBackingContext.getPageBackingContext(request);
    if (pbc.getLabel().equals("uap_page")
    || request.getSession().getAttribute("UAP Accepted") != null){
    return true;
    } else {
    pbc.setupPageChangeEvent("uap_page");
    return true;
    I've applied this to pages in my book, however nothing happens - the page change request never fires!
    So what's happening here? Am I misunderstanding what setupPageChangeEvent is for?
    Help is appreciated.
    darren

    In the past I have done it as follows:
    1. Create a backing file for the book that has these pages.
    2. In the preRender of the backing file do the following
    BookBackingContext bbc=
    BookBackingContext.getBookBackingContext(getRequest());
    if( //check to see if page change event is needed)
    {PageBackingContext pbc_current =
            bbc.getActivePageBackingContext();
        pbc_default.setActive(false);
        PageBackingContext pbc_pageToBeShown=
            bbc.getPageBackingContextByDefinitionLabel("//  
            def label of page to be shown, in your      
            case 'uap_page'");
        pbc_pageToBeShown.setActive(true);
        return true;
    else return true;
    3. link the backing file to book
    Recommendations:
    * Don't use backing files for Portal components if they are not needed. (From your post, if I am not wrong, you are using backing files for all pages in the book which is not necessary and can cause unnecessary complications)
    * Read this doc to understand life-cycle methods of portal components http://edocs.bea.com/wlp/docs81/pdf/taxonomy.pdf
    Peruse the above document to understand what is going wrong with your code.
    * Remember that the life cycle methods for components that are not active will not be rendered if treeOptimizationEnable parameter is set to true ( this parameter can be seen in workshop under property editor)
    * When calling one of the setupxxevent methods, it must be done on the backing context that the backing file is tied to. If you do not do this the event may not get fired. For more info click http://e-docs.bea.com/wlp/docs81/whitepapers/netix/body.html
    Seenu
    Seenu.

  • Hiding portal page using  a backing file.

    Hi,
    Is it possible to hide a page using a backing file. Want to hide a page based
    on the request parameter. I assume it has to be done in a Book backing file.
    Don't want to use entitlement s here. Does anybody have sample code or point
    me to documentation.
    Thanks,
    Shankar

    Yes, you can get the contained page backing contexts from a
    BookBackingContext by calling getPageBackingContexts() on an instance of
    the BookBackingContext you have.
    -Sameer
    Shankar Bala wrote:
    Hi Sameer,
    Thanks for your response. I was thinking of Book backing file because, I need
    to toggle between two pages. At any time only one is visible based on the request
    parameter.
    Is it possible to get the page context and set visible=false from there?
    thanks.
    Sameer <[email protected]> wrote:
    You can do this in the Page backing file. Override the preRender method
    in your backing file and do something like:
         public boolean preRender(HttpServletRequest request,                
    HttpServletResponse response)
              String param = request.getParameter("YOURPARAM");
              if(param != null && param.equals("EXPECTEDVALUE"))
              PageBackingContext backingContext =
    PageBackingContext.getPageBackingContext(request);
              backingContext.setVisible(false);     
    Hope this helps.
    -Sameer
    Shankar Bala wrote:
    Hi,
    Is it possible to hide a page using a backing file. Want to hide apage based
    on the request parameter. I assume it has to be done in a Book backingfile.
    Don't want to use entitlement s here. Does anybody have sample codeor point
    me to documentation.
    Thanks,
    Shankar

  • Controller Java Page Flow and Backing file

    Hello all,
    I am very confused with the controller and the backing file, for example, I have a login page, I would like to flow to another page after I successfully login, which method I should use.
    Thanks and best regards
    Spencer

    u can use the validation technique provided by the weblogic.

  • Portlet backing file and include

    If I have a backing file, is there way to include another page in the
    handlePostback() method or preRender() method? Don't want to change the
    whole page, just the contents of the portlet...

    According to the documentation, here is the difference:
    Scoping and Backing Files
    The difference between having a backing file as part of <netuix: portlet backingfile =some_value> or part of <netuix: jspContent backingfile=some_value> is related to scoping.
    For example, if you have the backing file on the portlet itself, you can actually stop the portlet from rendering. If the backing file is at the jspContent level, the portlet portion of the control tree has already run; you use this implementation to run processes that are specifically for the JSP in the portlet.
    See http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/building.html#wp1077130 for more info.
    Brad

  • Page-level Content

    Is it possible to implement rules or configuration settings that would prevent the indexing of certain page level content items?
    The condition I'm trying to remediate is a web source with a menuing system which results in "false" positives for certain SES query phrases that appear in the menuing text, but not in the main content area of the page.
    The menu is identified with a unique div id, so I'm wondering if I can exclude this portion of the page from indexing by implementing a rule or setting that targets a div id.
    Alternatively, if there's another workaround for this sort of condition I'd be interested to hear about it.
    I have read through both the Administrator's Guide and this forum, but can't find anything on the topic. Any help (even a definitive "no") will be useful.

    This can be done from a "Document Service".
    A document service has access to the entire document content, and can modify it as required. Whatever it writes back will be what gets indexed.
    So your document service could look for particular patterns within the content and remove them (I'd suggest using the java regexp package).
    Ideally the patterns to remove would be obtained from a config file so you don't need to keep recompiling the document service to deal with new patterns.
    There is a sample document service that you can modify on our [OTN Page|http://www.oracle.com/technology/products/oses]

  • TWO CRITICAL BUGS: 1) File, "Save Page As" and 2) right-click the picture and select "Save Image As", both do not work at all in Firefox 27, 28, and 29!

    Note: capitals are used only to highlight important words.
    PLEASE, TAKE THESE COMMENTS ON TWO CRITICAL BUGS VERY SERIOUSLY BECAUSE THE BUGS DESCRIBED BELOW ARE SO CRITICAL THAT I CANNOT USE THE LATEST VERSION OF FIREFOX UNLESS THEY DO NOT APPEAR IN THE LATEST VERSION AND THEREFORE I AM FORCED TO REVERT BACK TO FIREFOX 26.
    I have Windows 7 64-bit and Firefox 26. I could not install Firefox 27, 28, and 29 due to the persistent presence of the two critical bugs described below. I have 8 GB of RAM and an Intel quad-core processor and a lot of hard disk space available.
    I installed Firefox 27 and then Firefox 28 a while back and these two bugs described below were still present and now I have just checked again with Firefox 29 by installing it and yet again, these two bugs described below are present!! UNBELIEVABLE THAT THESE TWO CRITICAL BUGS ARE STILL PRESENT IN FIREFOX 29 WHEN I CLEARLY INFORMED YOU ABOUT THEM IN THE HELP, SUBMIT LINK OF FIREFOX!!
    I am forced to revert to Firefox 26!
    First, I use Windows 7 64-bit and I always use Firefox with at least 120 tabs opened. BUT I have 8 GB of RAM, an Intel core i7 quad-core processor and more than 1 TB of hard disk space. Consequently, I do not understand why I would have these two critical bugs.
    With Firefox 26, I also have at least 120 tabs opened when I start Firefox and I do not have the two critical bugs described below, therefore I do not believe that the number of tabs is the reason of the two critical bugs that are present in Firefox 27, 28, and 29.
    ---FIRST CRITICAL BUG:
    When I open ANY web page and do File, "Save Page As", the window that is supposed to open to locate the folder where I want to save this web page does NOT open at all, even if I wait a long time to see if it opens.
    Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
    ---SECOND CRITICAL BUG:
    When I use Google Images, for instance entering model in the search field of Google Images and then pressing enter.
    Then I select any picture, open to a new tab this selected picture, then open a new tab by selecting the option View for this picture. Then right-click the picture and select "Save Image As".
    Again, the window that is supposed to open to locate the folder where I want to save this picture does NOT open at all, even if I wait a long time to see if it opens.
    Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
    ---THESE TWO CRITICAL BUGS DO NOT APPEAR WHEN I USE INTERNET EXPLORER 11.
    I have no idea if you will be able to reproduce these two critical BUGS but I can assure you that they are not present when I use Firefox 26 and they are present when I use Firefox 27, 28, and 29. More, be aware that I have at least 100 tabs opened but I also have this same number of tabs opened in Firefox 26 and yet I do not experience these two critical bugs when I have Firefox 26!
    Once again, these two bugs touch at two vital, critical very basic functions of Firefox and therefore I will NOT be able to use any version above 26 if these two bugs are still present, as they are present in Firefox 27, 28, and now 29!!!
    Please, make it a priority to solve these two critical bugs. Thanks.
    I did read a post related to the same issues “Firefox stops responding when trying to "save page" or "save image" | Firefox Support Forum | Mozilla Support” at https://support.mozilla.org/en-US/questions/991630?esab=a&as=aaq
    I am still reading it again to try to figure out exactly what the person did to make his problems be solved, as the post is not clear at all on what solved the problems!
    In any case, all the suggestions proposed in this post do not work and I surely cannot do a system restore when it is obvious that the two bugs do not appear in Internet Explorer.

    First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
    Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
    As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
    Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
    So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
    Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
    If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
    I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset.

  • I received pictures in a dozen emails and saved each picture into one file in .pages.  I did not import the photos before doing this and now iPhoto won't recognize the pictures because they are in a .pages file.  How do I get the pics to iPhoto?

    I received a dozen pictures in a few emails and I saved them all into one file in pages.  I just copied and pasted.  I do not have the originals any longer.  Iphoto will not permit me to import the pictures as it does not recognize a .pages file, nor can I simply click and drag from the pages document to iphoto nor from pages to the desktop to iphoto.  How can I save each picture I guess back into a jpeg and then import them into iphoto or have i lost them to a pages document forever?  This is urgent as I need the pictures made into a book on iphoto for work by Friday!!!  Please advise!  Thank you.

    Greetings,
    Locate the Pages document wherever it's located on your computer and click once on it to highlight it.
    Go to File > Duplicate to make a backup copy of the file.
    Click once again on the file to highlight it.
    Go to File >  Get Info
    In the "Name & Extension" category remove the ".pages" extension and put in ".zip".
    Close the info window and double-click the now renamed pages file (zip file now).It will decompress into a folder which contains all the base components including all the images you added.  These can be dragged onto the iPhoto icon to import them.
    Hope that helps.

  • How can I have a backing file call a JavaScript function?

    I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
    thanks

    Hi
    your questions are not correct because you are mixing up server side operations with client side operations.
    First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
    However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
    <script type="text/javascript">
    var action = '${requestScope.action}';
    alert(action);//or whatever you want to do
    <c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
    callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
    </c:if>
    </script>
    i.e. you can output the javascript that has the variables you need or the function calls you want.
    Like I said understand whats server side and whats client side.

  • Page level total in a mulipage matrix report

    hi!
    I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
    Regards
    simer
    The Oracle Reports Team
    http://otn.oracle.com/

    Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
    forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
    Thanks & Regards
    Eamon

  • How to call a database controller in backing file

    Hello,
    First of all, I'd like to apologize if this question is posted by someone else before. But because I haven't been to find the answer so I just post this question here with hope that someone will have the answer for me.
    I am using weblogic 8.1 SP3. I am trying to build a web portal which requires users to login and logout. Based on the tutorials from BEA and the documents that I read in this forum, I decided to use backing file to check for the username and password. I am using MySQL database and I have a page flow controller which is based on the database control. How can I call that control in the backing file? Or is there anyway to compare the username and password that the user enters to the ones in the MySQL tables? I don't want to create a database connection in that backing file since the page flow controller can do that for me already.
    Any help is appreciated
    Thanks in advance
    TL

    select ename from emp@dblink
    ...lose the double quotes.
    Scott

Maybe you are looking for