Knowing the name of the page....

Hi everyone,
Is there a way to know in which page the current iView is being executed ?
If yes, can we get all the page attributes ?
Thanks in advance.

Hi David,
yes, it is, but it's not easy.
First, <i>request.getNode().getNodeName()</i> delivers you the PCD path to the iView.
With the following method you can get the JNDI DirContext element of the PCD for a given path:
public static Object getPCDObject(IPortalComponentRequest req, String pcdURL) throws NamingException {
  IPcmObjectService pcdFactory =
(IPcmObjectService) PortalRuntime.getRuntimeResources().getService(IPcmObjectService.KEY);
  Hashtable env = new Hashtable();
  env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
  env.put(Context.SECURITY_PRINCIPAL, req.getUser());
  IPcmObjectBuilder pcmSrv = pcdFactory.getInitialContext(env);
  try {
    Object o = pcmSrv.lookup(pcdURL);
    return o;
  } catch (NamingException e) {
  throw e;
From this, you can already access the attributes via JNDI (not very comfortable). Among others, for pages you will in fact be delivered with a IPcmContext object. Look at the methods of this, you will see that you have direct access to different attributes (like title and description) without going through JNDI.
Hope it helps
Detlev

Similar Messages

  • What is the name of the App with the Teddy Bear icon on the countdown page?

    What is the name of the App with the Teddy Bear icon on the countdown page? http://www.apple.com/itunes/25-billion-app-countdown/

    Yes, something like that, but if someone knows the App already, then it's a lot easier.
    You can see the same artwork on this page: http://store.apple.com/us/browse/home/giftcards/itunes/gallery
    And on this page: http://store.apple.com/us/personalize/itunes?product=MC231
    It's present on the $15 gift card's picture.

  • Anyone know how to change the name of the PDF after it's submitted via the "submit e-mail" button?

    Forgive me if I'm posting in the wrong section -
    I'm using Live Cycle v8.0 and I would like to know if I can change the name of the PDF that is being submitted via emai?
    For example -
    When I submit the form now it is named (12345abcd12345.pdf) and I would like it to read something like (memberapp.pdf)
    Any tips?

    I figured it out...thanks to anyone who may have been helping.

  • Getting the name of the page that throws an exception from an error page

    How can I get the name of the page that throws an
    error exception from an error page?.
    Thanks.

    In each of your jsp pages, u should set the name of page in the request object. e.g.
    In jsp page called main.jsp you should do request.setAttribute("pageName","main.jsp");
    Then in error page you can get the name like
    String pageInError = (String) request.getAttribute("pageName");
    I hope that answers your question.
    thx

  • I can't add the contacts from Microsoft to the OS X 10.10 It makes me can not know the name of the people I talking to on message, mail.

    I can't add the contacts from Microsoft to the OS X 10.10
    It makes me can not know the name of the people I talking to on message, mail.

    i need help

  • Anyone know the name of the company that the Mac Protector

    Anyone know the name of the fraudulent company (or companies) that malware Mac Protector or Mac Defender used to charge suckers like me for "protection" against a virus-infected Mac?

    I have seen a lot of criticism of Apple over this, and at the risk of being seen to be biased, I think their unrushed, deliberate approach made sense.  After all, the user had to actually let the software into their computer and provide a password authorizing that action.  And then they had to provide a credit card number to an unknown and unverified entity that claimed to be solving a problem.
    One of the big issues is that most users do all their web browsing using an account with Admin authorization.  That is a REALLY bad idea.  Not only does it make it easier for malware to create havoc, it makes it easy for the user of the computer to do damage to the system inadvertently.  Look at the number of people posting messages like "I have lost all my apps, where did they go!"
    I hope you use a "Standard" account for your daily Mac usage!!

  • Does anyone know the name of the app where you take a pic of a dollar bill and it comes alive?

    does anyone know the name of the app where you take a pic of a dollar bill and it comes alive?

    have you tried searching the app store or using google?

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • Would like to know the name of the game pre-installed on an eMac.

    I would like to know the name of the space ship 3rd-person shooter game pre-installed on an eMac.
    Awhile back, I had used an eMac with a previous employer and there was a space ship 3rd-person shooter game loaded on the eMac.
    This may or may not have been preinstalled. I just remember it being there when the eMac was purchased.
    Thoughts?
    Thanks,
    --Todd

    Hello Todd,
    I think the game you refer to is called Deimos Rising. It can be purchased from here...
    Deimos
    Hope that is the one!
    Cheers
    Ian

  • I know the name of an object - how do I get the name of the object that contains it?

    If I have a Movieclip, I can trace the name of the Movieclip
    that contains it using the _parent property.
    With a generic object, is there a way to trace the name of
    the object that contains it?
    Please, please tell me - this will be a huge help.
    Thanks

    Thanks for these comments - my problem isn't with MovieClips.
    I need to know if there is something which is the generic Objects
    equivalent to the MovieClips _parent property.
    Here's some code that hopefully will help explain further:
    class MyClass extends Object {
    var myObject:Object;
    function MyClass (){
    myFirstObject = new Object();
    myFirstObject.theParent = this;
    private function getNameOfParent(p_object:Object){
    // Some code to return the name of the object that contains
    p_object
    trace(p_object.__proto__); // Output: [object Object]
    trace(p_object._parent); // Output: undefined
    trace(p_object.theParent); // Output: [object Object]
    return ???
    public function doSomething(p_num:Number){
    var parentName = getNameOfParent(myObject);
    // do some more action...
    Timeline code:
    var myClass1 = new MyClass();
    myClass1.doSomething();

  • I need to  know the name of the database table and the fields in that table

    hi,
    i need to I need to  know the name of the database table and the fields in that table for the following fields of the front end .
    1) incident details.
    2) ownership details
    3) injury type
    4) % of investigation completed withen 7 days.
    5) count of incident type
    6) cost of workers compensation claim.
    7) injury resulting from for workers compensation claim
    8) investigation free text.
    9) investigation contribution factors.
    10) investigation root cause.
    11) investigation root cause free text
    12) employee risk assesment
    13) protential infrigment notice issued
    14) actual infrigment notice issued.
    15) actual infrigment notice reference number.
    16)vehicle damaged text.
    18) when the incident occured.
    thanks and regards,
    pronoy .

    Hello,
    Check CCIHT* under se16 and search for relevant information
    Thanks
    Jayakumar

  • Is there any way to have the page title NOT be the name of the HTML file

    You might want a page title to be say "Digital Media Academy." You don't however really want the html file to be called "Digital%20Media%20Academy.html" Windows web browsers often have problem opening pages with spaces in the file name. On the other hand you don't really want the page title to be "DigitalMediaAcademy" because that looks kind of dumb. Any way around this.

    The page is already not included in the nav bar, but
    where do you set the page name to be different from
    the file name? How can I set the name of the page,
    such as the name of this page is "Apple - Support -
    Discussions - Post Message:Reply," to be different
    from the file name?
    I think I probably misunderstood your question. You want the html "title," which appears at the top of a browser, to be independent of the name of the html file, right? I don't think that is possible in this version without manually editing the html after publishing. iWeb uses the page name given in the inspector for both the navigation bar link and the file name, replacing spaces by %20 in the latter because web servers don't allow spaces in file names.

  • Does anyone know the name of the sketching app in the iCloud Video?

    Does anyone know the name of the sketching app in the iCloud Video?

    The video is showing Autodesk's SketchBook app.
    It looks like there is two a few versions, a free and a paid version for both iPhones/iPods and iPads.

  • I have Lion software installed on my IMac (purchased IMac 2008). I need to know the names of the updates since Lion, and how to get them. Thanks,  Don

    I Need to know the names of the updates after Lion and how to get them.  Tanks,  Don

    Back up your data and download Mavericks from the Mac App Store. You don’t need to buy Mountain Lion to do this.
    (110438)

  • Anyone know the name of the site for guest maps, comments, etc?

    Hi,
    Does anyone know the name of the site that has lots of iWeb things, they have many kinds of guest maps, sunlit earth maps, comments you can add to iWeb, etc. They had lots of cool things and I can't find them.
    All help appreciated.
    Thanks,
    Todd

    This isn't the particular site you're looking for, but it may qualify as "cool": "NeoPlanet displays your blog's visitors on a rotating 3D Earth globe composed of actual NASA satellite images." Click below to go to the site...
    And perhaps this is the "iWeb Tool Chest" site you were thinking of (click on the icon):

  • What is the name of the Firefox add-on where on your home page you can set multiple quick links to your favourite web sites?

    What is the name of the Firefox add-on where you can set multiple links to your favorite web sites on your home page?i used to have it on my old laptop but cant remember what it is called

    You can do that with an extension like the Google Toolbar.
    http://www.google.com/support/toolbar/bin/answer.py?answer=115561 - Web-browsing tools : Google new tab page and most visited websites - Toolbar Help
    Others:
    *Speed Dial: https://addons.mozilla.org/firefox/addon/4810
    *Fast Dial: https://addons.mozilla.org/firefox/addon/5721

Maybe you are looking for

  • Flex 2 Requirements for showing Demos

    Hello there! I made a small flex demo for my boss, to show him technology we could employ besides Old School HTML and Ajaxian stuff. He was impressed, but asked me what kind of setup the "Sales Guys" would need to demo my prototypes. I wasn't sure. I

  • Problem in Sender JMS J2EE adapter....

    Hello All. I have configured the sender JMS J2EE adpater. I am getting this error at Adapter monitoring: <b>Sender channel. Details: Last Exception during send at Fri May 25 09:44:18 CEST 2007: Error converting Message: 'java.lang.Exception: ERROR co

  • Laptop won't turn on!!! why?

    Here we go again!!   Gateway laptop, 6 months old... was a trade because they had to " JUNK" my other one that was only 8 months old!  gosh! WELL ... I closed the laptop this afternoon, unplugged it... put it in the other room until dinner was done. 

  • Compressing HDV for web distribution

    My source material is 1080i HDV captured on Sony HD1000 (PAL) camera. This I've imported into FCP to make a 3 min movie with additional music. My aim - good quality movie with a small file size My best result after countless attempts is 22MB, up to 8

  • How do I Un-snooze a Reminder?

    Hey gang- I have a daily repeating Reminder on my iPhone that displays an Alert every day at 4pm.   Last week I tapped Snooze on the Reminder and as expected it repeated at 4:15.   The problem is that now it displays every day at 4:15.   The weird th