Expression Language to get the navigation model of the parent space

Hello,
I am hoping someone can help me with this.
Scenario: I need my sub-space to use the same navigation model as the parent.
Reason: Take a space(P) has a navigation model that queries the pages and sub_spaces(S1,S2...) in a space. Using this navigation, if we navigate to a page of a sub_space(S1) of the space, the navigation model for that sub_space(S1) will now query its pages and its sub_spaces. Instead, I want the navigation to still query the pages of the parent space(P) and the sub_spaces(S1,S2) of the parent. Effectively, the navigation contents should not change.
So, I am thinking of using an EL expression that queries the navigation model of a parent(P) to set the navigation model of the sub_space(S1).
Appreciate your help.
Thanks,
Pradyumna Nandavanam

Hi.
You can define customAttributes for your group spaces like: parentModelPath
Access it with EL Expression: #{spaceContext.currentSpace.metadata.customAttributes[attributeName]} where attribute name is +'parentModelPath'+
And with next EL Expression: #{navigationContext.navigationModel['model_path']} you can replace 'model_path' with your customAttribute value.
Kind Regards.
Edited by: Daniel Merchán on 14-feb-2012 15:50

Similar Messages

  • How to get the parent of a component in fx?

    Here is an example:
    Index.fx:
    Stage {
        title: "Online book library";
        width: 1024
        height: 768
        scene:Scene {
        fill: Color.WHITE
        content: [
           banner ,
           login = Login{translateX:715 translateY:135}
    };Login.fx:
    var logOn : Button = Button {
            translateX:25 translateY: 170
            text: "Log On"
            font: Font {size:11 name: "Verdana Bold"}
            action: function() {
                showHello();
    function showHello(){
       // add a label in index.fx whose text is "welcome!";
        }I want to show something on the index.fx but I don't know how to get the parent from the child component?
    In Flex, we use parent or parentApplication, Is there a similar function in JavaFX?

    Reusing the same Tile example, I had no problems, I suppose I was doing wrong the first time:
    def IMAGES_WIDTH = 100;
    def IMAGES_HEIGHT = 100;
    var COLUMN_NB = 3;
    var ROW_NB = 3;
    var scene: Scene;
    var previews: Container;
    Stage
      title: "Test of Tile layout"
      scene: scene = Scene
        width: 500
        height: 500
        fill: Color.LAVENDER
        content:
          previews = Tile
            hgap: 10
            vgap: 10
            layoutX: bind (scene.width - previews.width) / 2
            layoutY: bind (scene.height - previews.height) / 2
            columns: COLUMN_NB
            content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
              ImageView
                id: "IV{i}"
                image: Image
                  url: "{__DIR__}clock.gif"
                  width: IMAGES_WIDTH
                  preserveRatio: true
                onMousePressed: Hide
    function Hide(evt: MouseEvent): Void
      println("{evt.node} ({evt.node.id}) - {evt.node.parent}");
      var nm: Node = evt.node.parent.lookup("IV5"); // Middle node
      nm.visible = false;
      var ntl: Node = evt.node.parent.lookup("IV1"); //Top left node
      (ntl as ImageView).viewport = Rectangle2D { height: IMAGES_WIDTH/2, width: IMAGES_WIDTH/2 };
      (evt.node.parent as Tile).hgap = 20; // Strange effect, but works
    }

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to get the parent node of the current node?

    Hi all,
    i want to get the parent node of the current node and the not the parent of the parent node.
    thank you very much

    Hi,
    the parent node of <subnode1-2>29.99</subnode1-2> is (node1), how can do to get <node1> throw <subnode1-2>29.99</subnode1-2> the sub node of <node1>.
    As per my understanding the parent node of <subnode1-2>29.99</subnode1-2> is book not the node1.
    If you want node 1 as a parent of subnode1-2 than your xml will look like this.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
    <book>
    <fathernode>Harry Potter</fathernode>
    <node1>
           <subnode1>29.99</subnode1>
           <subnode2>29.99</subnode2>
    </node1>
    <node2>
           <subnode1>19.99</subnode1>
           <subnode2>19.99</subnode2>
    </node2>
    </book>
    </bookstore>
    and also if you want tom retrive float data than refer following XPATH.
    "//book[[price='1000']]/price/text()"
    Regards,
    Manoj Bilthare

  • How to get the parent Frame of a component ?

    Hi,
    I'm wondering how to get the parent JFrame (or JDialog) of a component.
    Thanks for tips

    I'm using this code:
    public Component getFrame(Component comp)
        Component frame = comp;
        while ((frame != null) && !(frame instanceof Frame))
            frame = frame.getParent();
        if (frame == null)
            frame = comp;  // no parent found
        return frame;
    }

  • FM for getting the Parent materials for the component material

    Hi All,
             I need to to get a list of parent materials for a given component material and that too upto 10 levels.
    i.e.
    Ist Iteration
    The material M1 is a component in 3 other materials.
    2nd iteration
    The above 3 materials will be a components of 3 other materials each i.e. now a total of 9 materials are there.
    3rd iteration
    The above 9 materials will be a component of 3  other materials each i.e. now a total of 27 materials are there.
    upto 10 iterations.
    Is there any FM which can provide me the list of parent and superparents for a given component material..upto 10 levels (or something closer if these levels exists).
    Regards
    Abhishek

    Hi,
    Check this link..Getting the Parent Material (BOM)

  • Getting the Parent JFrame or JDialog

    I am trying to get the parent JFrame or JDialog so I can change the cursor. Right now I am doing it in a stupid way by doing this:
    private void changeCursorQuestion(){
              JFrame frame=(JFrame) getParent().getParent().getParent().getParent().getParent().getParent().getParent();
              Cursor cursor=new Cursor(Cursor.HAND_CURSOR);
              frame.setCursor(cursor);
         }//end changeCursorQuestionBut is there an easier and of course better way of getting the frame or jdialog that a panel is in?

    I am trying to get the parent JFrame or JDialog so I can change the cursor. You can change the cursor of the JPanel ( in fact any Container) so why use that getParent() thing....
    Also, if you want to have quick refrence to JFrame object from JPanel, extend JPanel to make a new class and have a refrence to that JFrame/JDialog in that class, that way you can access it quickly.
    Thanks!

  • Possible to get the color space and resolution from the .eps file

    Hi all,
    We have using the InDesign CS3 5.0.4, windows, javascript.  We need to get the color space and resolution of the graphics (.eps) file using scripting.
    The properties of the image like (actualPpi and effectivePpi will return the value only for the .tiff. and .jpg etc) but it will not return the .eps file resolution values.
    Kindly give me the suggesting for the decrepancies.
    Regards,
    Nagaraj

    ... open them programmatically in PhotoShop, read out resolution and color space ...
    On opening them in Photoshop, it asks you "what resolution shall I use, and what color space shall I apply?"
    A single EPS may contain any number of embedded bitmaps, with any horizontal and vertical resolution, and in any color space. You can use only a few of these with Illustrator -- and even only one at a time with Photoshop --, but other programs allow just about every possible combination.
    Not to mention procedurally generated bitmaps, also possible with PostScript.

  • Formula - Get the remaining space available on the report page

    Post Author: Gerd
    CA Forum: Formula
    Hello,
    i need the output positions (on Page) of the last record of a group.
    It is possible the get the output coordinates (Pager x and y-Position) of this record.
    Or it is possible to get the remaining space available on the report page with a formula ?
    The formula should look like this. (e.g.)
    if OnLastRecord and
    ReportFieldName.OutputPositionY  > MyLimit then
    ..... &#91;do something&#93;
    or is this there a property where i can get the last output position
    thanks

    Post Author: synapsevampire
    CA Forum: Formula
    You'd need to keep a counter of lines used per page to do this.
    The amount of space isn't a property or a functionj within Crystal itself.
    Perhaps you shoukld post why and what the requirements are rather than asking that a specific architecture be used.
    I' can tell that you're bright, however there just might be someone somewhere with a different way of addressing the need.
    -k

  • [CS2 JS] Get the parent paragraph of a table

    Hi,
    Anybody here who knows how to get the parent paragraph of a selected table?
    var myTable = app.selection[0];
    var myStory = myTable.parent.paragraphs;
    The script above gives me all the paragraphs of the parent text frame. I want to know the index of the paragraph where my selected table is.
    Appreciate the help you can give. Thanks!

    from VB6 ObjectBrowser (PC):
    Property StoryOffset As InsertionPoint
    read-only
    Member of InDesign.Table
    The location of the Table in the parent story.
    so (VB6):
    myTable.StoryOffset.Paragraphs.Item(1)
    should give you paragraph
    robin
    www.adobescripts.com

  • How to Get the Parent Process ID from Child BPEL Process

    Hi All,
    We have a requirement to get the Parent BPEL Process ID from Child BPEL Process. One way is we can pass the Parent BPEL process ID from Parent BPEL Process to Child BPEL process. Is there any standard function available to get the Parent BPEL process ID from Child Process?
    P.S: We are using BPEL 10.1.3 Version.
    Please share any info on this.
    Thanks in Advance,
    Saravana

    Hi Saravana,
    The existing methods in 10.1.3x allow a following (a bit of a convoluted way):
    In a BPEL Java embedding activity, you can use the following code to get the parentProcessname:
    String parentInstanceId = getParentId();
    String parentProcessname = getLocator().locator.lookupInstance(parentInstanceId).getProcess().getProcessId().getProcessId();Hope this helps,
    Regards,
    Shanmu
    http://www.prshanmu.com/articles/

  • Need to get the parent frame

    I am popping up a dialog box from a JScrollPane made up of a JTable and some buttons. I do not know how to specify the Frame owner part of the constructor. How do I get the parent frame in for the JDialog constructor?
    Everything worked but then I realized my "dialog" was not a dialog box at all, just another frame... oops! This is an assignment so I have requirements I must adhere to. Now I am trying to convert it so it will truly be a Dialog box.
    I promise you I have read ALL of the trails and API and searched forums. Can anyone assist?

    try: SwingUtilities.windowForComponent( Component );
    and cast the result to a JFrame
    or try this link:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=189331
    which I found by search the Swing forum using the keywords - (parent frame)

  • Get the current space name

    hi,
    i am working on webcenter space application.i need to pass current space name to bean.how can i get the current space name??
    Regards
    Vinay Kumar

    No, that will not compile. You probably need to do:
    SpacesContext sc = SpacesContext.getCurrentInstance();
    String spaceName = sc.getCurrentSpaceName();
    Beware that the doc says "Return the SpacesContext instance for the request that is being processed by the current thread, if any."
    So the SpacesContext might be null.
    Jaap

  • How can we retrieve the name of the Parent Space from the subspace?

    We wish to use a hyperlink in a subspace template which allows a user to link back from the subspace to its parent space.
    This hyperlink should show the name of the parent space.
    These Expression Language Expressions return parent information, but they so not show the Name of the parent space or other details like the Parent Space URL.
    #{spaceContext.currentSpace.parent}
    #{spaceContext.space['bpo'].parent}
    How can we retrieve the name of the Parent Space?

    I agree!
    I can't top this approach.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Expression Language not getting evaluated

    I am trying a sample on tomcat 5.03. The expression Language construct is not getting evaluated.
    for eg
    <c:out value="${customer.age}" />
    simply prints the text ${customer.age} .
    Whats wrong ?
    Thanks
    Ashwani

    You probably have an old doctype for your web.xml file.
    Your web.xml needs to start like this:
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">It should NOT have this
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">Basically if it sees anything less than version 2.4 in the web.xml file, it will disable EL expression language for your JSP pages. This is for backwards compatibility with existing web apps.
    To fix - remove the doctype definition, and use the new one.
    alternative: put this on your jsp page:
    <%@ page isELIgnored="false" %>That will fix it for this page. Fixing the web.xml should fix it for all pages.
    Cheers,
    evnafets

Maybe you are looking for