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

Similar Messages

  • 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

  • After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    Type '''about:config''' in the Location (address) bar and press the "Enter" key. When you see a warning, click '''I'll be careful, I promise!''' button.
    * Preferences that have been modified are shown as '''bold (user set)'''.
    * Preferences can be '''Reset to the default''' or changed via the right-click context menu.
    -> In the '''Filter bar''', type '''browser.sessionhistory.max_entries'''
    * Right click the preference '''browser.sessionhistory.max_entries''' and click '''Modify'''
    * Change value from 0 to whatever you want over 0 (Default value is 50)
    * click OK
    -> Close the '''about:config''' tab and then Restart Firefox.
    See this post:
    * https://support.mozilla.com/en-US/questions/860894#answer-229574
    Check and tell if its working.

  • Creation of a portal page using XML web form

    Hi Experts,
    I want to know how to make a portal page using XML web forms... Please tell me the steps involved in doing the aforesaid.
    Thanks in advance...

    Hi
    You compose page using WPC(Web page Composer), this is a bussiness package, which you need to deploy it on portal server then will get a WPC role which you can assign the user and then user can start composing the using follwoing PDF
    To compose it chect this pdf
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7?overridelayout=true
    Thanks

  • I am trying to create mobile pages using the steps file new new document page from sample mobile starters jquery mobile (cdn).  When "page from sample" is selected, the subsequent options are not available.  This seems like a silly question, but how do I

    I am trying to create mobile pages using the steps file>new>new document>page from sample>mobile starters>jquery mobile (cdn).  When "page from sample" is selected, the subsequent options are not available.  This seems like a silly question, but how do I acquire these options?

    You can get the latest jQuery Mobile Themes directly from jQuery Mobile's web site.
    https://demos.jquerymobile.com/1.1.0/docs/api/themes.html
    Or roll your own with ThemeRoller
    http://themeroller.jquerymobile.com/
    Nancy O.

  • Where are portal pages stoered (in db/ file/...?)

    hi,
    I want to change the LAF of my portal htm pages.
    i want to change the buttons to customized ones.
    where are html pages stored (in db/files/...),
    i want to edit the html (or jsp) sources.
    thanx in advance
    farbod m.

    Portal pages are assambled dynamically, you don't find them in the database or file system. You can control the LAF of your page through page styles. Alternatively, you can extend or overwrite the default portal styles using HTML (aka User Interface or UI) templates. You find information about styles and templates in the Portal documentation and online help.
    Peter

  • 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.

  • How to use portlet backing file if I choose book properties edit table true

    I don't know how to use the property,please tell me!
    thank you

    If you want a backing file to be run while rendering a book, you should specify your file in Backing property of the book. Is that what you are trying to do?

  • When I reload an HTM page using a SWF file like a   menu, the HTML page doesn't shows the SWF again!

    Dear Sirs,
    I hope to be directing my question into the correct forum's place.
    I'm new in flash and I'm trying to make some tests
    My problem is the following:
    I included one SWF file into 3 HTM pages.
    This SWF works as a little menu.
    The SWF file (named "menu.swf") contains 3 items working as command buttons to access the three different HTM pages
    Each HTM page contains the same "menu.SWF" file, some HTML text and one picture.
    The swf contains:
    Button 1 -> calls page1.htm using:
                on (press) {
                getURL("./page1.htm", "_top");
    Button 2 -> calls page2.htm using:
                on (press) {
                getURL("./page2.htm", "_top");
    Button 3 -> calls page3.htm using:
                on (press) {
                getURL("./page3.htm", "_top");
    When I enter to "page1.htm" it appears correctly showing the swf file and all the HTML text.
    It is OK.
    But when I'm in "page1.htm" and I click on "Button1" (to reload "page1.htm") the only thing that I can see (after reloading page1) is the HTML text and the picture, but I cannot view the "menu.swf" file.
    "menu.swf" remains in its place, but "invisible".
    You can click on its command buttons, but anytime I click on the button that loads the same page (for example: "Button 1" to reload "page1.htm") the
    swf file(s) doesn't appears.
    The same thing happens when I'm in page 2 with Button 2 to reload page2 .htm, and so on.
    How can I do to solve this problem?
    Sorry for my not good english but I'm spanish speaker.
    Thank you!
    Gus

    The path in the buttons is not correct once you navigate to the htm page.
    So here you are on the landing page and the menu button says to get to "page1.htm" go up one folder level  (../) to the file page1.htm.
    Now once you are up one level, either you loose access to the .swf because from that page the path to the .swf is not correct, or if the .swf does show, then the path in the buttons back to the other pages is not correct, because you are now one folder level higher.
    If I am mis-reading your post and all pages are in the same folder, then remove the "../" part before the page name in the URL. Or perhaps you are using ./ to denote the current directory... I'd still suggest removing it. So the the getURL would look like this :
    getURL("page1.htm", "_top");
    if all pages are in the same folder.
    And if I am reading your post correctly, then you cannot use the same button URL to get to ("./page1.htm", "_top"); and once on page1.htm use that same URL to get back down to your landing page.
    So I'd say it's a pathing problem.
    Give that a try and see if it helps.
    Best wishes,
    Adninjastrator

  • How to cache portal pages using VSAT

    We have a big customer who is using portal via vSAT. on the other end of the vsat customer has caching box, which will cache all the GIF's, CSS, HTML and other static.
    When we use portal through vSAT, Portal generates every page with pragma no-cache and because of this reason the caching box (on the other end of VSAT) ia not caching. And every user request is coming to 9iAs application server.
    This is having huge impact on performance.. I am wondering if anybody have any tips to solve this problem.

    Please see http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/ARCHITECTURE/BOOST_PERF_WEB_CACHE.HTM for more info.

  • Exiting animation to a new web page (using Edge .oam file in MUSE)

    Hello,
    Ok. Here is the situation. I have a webpage that was done in MUSE, on that page there is a mouse click button that starts an Edge animation.
    When the animation finishes I want an ( automatic) action that displays a new webpage on the same website.
    I tried setting up a 'timeline stop' action on the main stage
    window.open("http://homie0106.businesscatalyst.com/menu-1.html");
    No dice. Any ideas? 
    Thanks in advance
    Bob

    GOT IT.  The method I posted DID work.....once I fixed my hyperlinking mistake.

  • 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();
    }

  • Is it possible to use a portlet backing file on the dvt_enabler portlet?

    We currently have a 9.2 portal with a simple login form portlet that uses a backing file to do much security checking, authentication against ActiveDir, etc. Our requirement is to convert to WLP 10.3 using the DVT enabler portlet or something like it for login (because DVT/DISC is to be turned on for the portal). will it be possible to specify that backing file against the DVT enabler portlet?

    I'm not sure using the DVT enabler portlet will do what you want. It basically just specifies the render dependencies to bring in the dojo and dvt javascript libraries. It doesn't provide any login support itself; the javascript it brings responds to the logged-in state of the user (accessed via DISC), so something else is required to login the user.
    Greg

  • Detection portlet backing file under weblogic portal

    Hi all
    I am try to work out a interportlet communication example under instruction listed below
    http://download.oracle.com/docs/cd/E13218_01/wlp/docs92/portlets/ipc.html#wp1025202
    Everything works fine until add action to a backing file. I cannot find such option under event handler wizard. From the documentation, it mentions that
    "The Invoke BackingFile selection will not appear unless a backing file is detected by WebLogic Portal. "
    Is any way that can trigger weblogic portal to detect particular backing file? or any example that I can refer to setup such action manually?
    Any help would be apprectiate, thanks.
    wayne

    Hello Wayne,
    The WebLogic Portal forum is a better place to ask WLP questions:
    WebLogic Portal
    However, to answer your question, you can add a backing file to the portlet in Workshop, or manually in the .portlet file as described (at the bottom of the section) here:
    http://download.oracle.com/docs/cd/E13218_01/wlp/docs92/portlets/building.html#wp1077130
    Kevin

  • WSRP portlets - consumer-side backing files

    I'm trying to find a way to send the consumer-side portlet instance label and the desktop definition label into my WSRP portlets. The BEA WSRP documentation indicates that using a backing file is the way to do this. The only problem is that even though creating a backing file and extracting the two strings is straightforward, it isn't clear how to go about communicating the information from the backing file to the WSRP portlets, since the session and request spaces are independent. I could use some recommendations. Thanks in advance.

    There is limited support for this in 10.3, in 10.3.2 there are some javascript libraries to help you add parameters to URL.
    In 10.3 your best bet is as follows:
    Do NOT modify the URL, instead do a POST to your actionUrl and pass in the parameter in the POST body. You, will also need to do use a PortletXMLHttpRequest to avoid getting the entire page returned.
    Good luck,
    Nate

Maybe you are looking for

  • Upgrading from Exchange 2007 to Exchange 2013

    Hi There, I have two exchange serveres 2007 SP3 and they are ruining on Server 2008 Ent and 2008 R2 Ent. I setup a server 2012 R2 and installed an exchange 2013 on it and a friend of mine helped me on setting up the new exchange server and migrating

  • Erasing webb-app element in orion-web

    Hi, In documentation about a file orion-web.xml, there is a information that one is allowed to put into that file element <web-app> 'to augment the normal config settings in web.xml.' So I did, and everything works fine when works in jdeveloper with

  • Same disk space after erasing all backup of a folder in TM

    I entered the Time Machine and chose to erase all backups of a very large movies folder. but the disk space is still the same. how can i claim the disk space back ?

  • Organizing Music / Play Lists / Folders

    I have tried looking for the answer to my question in the iTunes forum search engine without much luck what so ever. But I am trying to organize my music and music video library in classifications putting together each form of music or music video in

  • IOS-XR 4.2.2 release date

    Hi, Does anyone know when IOS-XR 4.2.2 is due out? Thanks RJ