How to eliminate empty node space from tree when rendered property is false

Hi
I have created a menu Tree for my ADF BC application while working in JDev 10.1.3.3.
I have tried two methods, first is by creating a menu model as discussed in example in ADF Developers Guide Book Section 19.2.1. Second by creating two view objects and creating the menu tree from my database table.
Depending on the logged in user I want to decide whether to show or not to show a menu tree option to the user. For this purpose I have implemented a function in a managed bean that calls a pl/sql stored procedure to decide if the user has access to a certain component. In first case I have set the rendered property of the menu item to #{menuTree.shown}, where shown is an attribute in the menu model whose value is properly set using java functions that call pl/sql function in turn. In second method, I have also tried to set the rendered property and calling a function that returns true or false based on if the user has access to the menu option.
Problem
When rendered property is returned as false, although the menu option is not displayed but an empty space is displayed in my tree and remaining nodes and/or menu options are displayed with an ugly gap.
How I can remove this unwanted gap, is there a way?
Regards,
Amir
1st option:
My menu tree:
<af:menuTree var="menuTree" value="#{menuModel.model}">
<f:facet name="nodeStamp">
<af:commandMenuItem text="#{menuTree.label}"
action="#{menuTree.getOutcome}"
_rendered="#{menuTree.shown}_"/>
</f:facet>
</af:menuTree>
2nd option:
<af:tree value="#{bindings.MainMenuView.treeModel}" var="node">
<f:facet name="nodeStamp">
<af:switcher facetName="#{node.hierType.name}">
<f:facet name="MainMenuViewNode">
<af:outputText value="#{node.Name}" _rendered="#{userInfo.mainNodeOk}"_ />
</f:facet>
<f:facet name="SubMenuViewNode">
<af:commandLink text="#{node.Name}" _rendered="#{userInfo.mainNodeOk}_">
<af:setActionListener from="#{node.destinationUrl}"
to="#{menuTree.getOutcome}"/>
</af:commandLink>
</f:facet>
</af:switcher>
Edited by: Amir Khan on Jan 12, 2009 8:54 PM

Hi,
if this reproduces in JDeveloper 10.1.3.4 then this sounds like a bug that you should file
Frank

Similar Messages

  • How to not display nodes in a tree if Oracle roles are NOT used?

    How to not display nodes in a tree if Oracle roles are NOT used?
    We don't use Oracle DB roles to grant users access to Forms from the menu. We use a template and role system of our own. Basically a few tables with templates and roles.
    We want to convert our normal Forms menu to a tree menu and one of our key requirements is that when the tree is populated ONLY nodes with programs (i.e. forms) he has been granted to execute is shown.
    Since we don't use Oracle Roles how to do this in a tree?
    I created a function to show/hide LEAF nodes, BUT problem is that there are sub-menu nodes showing even if the leaf-nodes under it has not being displayed. My function has suppressed it.
    My tree query is like this:
    SELECT
         t.status, LEVEL, t.label, t.icon, t.node VALUE
    FROM
         tma_tree_menu t
    WHERE
    tma_authenticate_sys_chk_role(USER, t.node) = 1
    CONNECT BY
         PRIOR t.node = t.master
    START WITH
         t.MASTER IS NULL
    ORDER SIBLINGS BY
    t.position
    The tma_authenticate_sys_chk_role will return 1 only if the user has access to the form under that node.
    I tried the FTree functions in Forms but even that has nothing.
    Any help would be greatly appreciated.
    Edited by: Channa on Mar 17, 2010 6:49 AM

    Would you share the source code? I guess what I need is how exactly you retreive the user credentials from the DB table and set that boolean variable.
    and then how to condition it in UIX?

  • How to eliminate the thumbnail picture from a .TIFF picture?

    I apologize but could not think of a more suitable forum to ask the question - if someone has an idea for a better place, I will appreciate.
    When I create a picture with my (Nikon) camera in the TIFF format, it appears that the picture file contains in addition to the full blown picture, a reduced version of the picture, something like a large thumbnail vrsion of the picture. I found it by trying to create a PDF file of the .TIFF file - Acrobat created a two page file, one with the full picture and one with the reduced picture. It looks that I can't tell the camera not to embbed the thumbnail version.
    So my question is, from someone who is familiar with the .TIFF file format, how to eliminate that thumbnail version from the .TIFF file. Must be somewhere (hopfully one) location in the file that when modifying it it eliminates the thumbnail picture from Acrobat's view into the .TIFF file.
    As to the question why not simply erase that undesired page from the PDF file - the answer is that I actually going to assemble many (hundreds) such pictures into one PDF file. Acrobat will put all those pictures such that each main picture will be followed by its own thumbnail and therefore I will have to select manually each single thumbnail page before erasing them, extremely tedious. If I could process it at the individual .TIFF file as describrd above, I could easily write a program that does this modification to all my .TIFF files with one invokation.
    Many thanks,
    David

    Try ExifTool
    http://www.sno.phy.queensu.ca/~phil/exiftool/

  • How to eliminate or remove zeros from 1D array

    How to eliminate or remove zeros from 1D array. Let say I have 1D array having foolowing elements
    "0 0 0 0 0 4 0 0 9 0 0 1 4 0 0 0 0 0 0 0 0 10 9 0 0"
    So after removing or eliminating zeros it will become as follow
    "4 9 1 4 10 9"
    So can any body guide me how can I do that? See attached Image for details.
    Thanks 
    JK

    altenbach a écrit :
    hchiam wrote:
    Here are 2 example .vi's I made based on altenbach's removeZeroes.png in this discussion thread: 
    It seems pretty pointless to post those because no new useful information is given.
    Currently, only the input is defined in the connector pane, making them useless as subVIs.
    unlike my example using integers, an "=0", like any "equal" comparison, is potentially dangerous with DBLs.
    Reshaping a 2D array to 1D before removing zeroes is pretty pointless because a 2D output cannot be recovered. A more interesting scenario would be to remove some columns or rows (e.g. that are all zeroes) from a 2D array.
    You should also clean up the front panel, e.g. properly zero the upper left corner, make the controls/indicators nicely labeled, sized and arranged, and maybe even add scrollbars to the arrays.
    Thank you for those comments.
    Now the input and output are defined (in the updated attachments) for use as example subVI's.  I also cleaned up a few visual details, but I leave the rest for others to cater to their specific uses if they don't want to use this as a subVI (or at least as-is), such as changing the icons or changing to integers instead of doubles.
    I'm not sure about what you mean exactly with "=0" being "potentially dangerous with DBLs".  I'm guessing you had a certain case scenario in mind.  Although the subVI's seem to work fine within my larger program and situation, my situation may not generalize with regards to this point.
    I reshaped from 2D to 1D, with a 1D output, because it could be helpful for things like when later processing just needs a 1D array.  For example, in my situation I had to remove a huge spike of unnecessary "0"'s from a previous subVI that were affecting the output display of a certain histogram.  So it turned out a 1D array output was helpful, and you never know what problems come up, so I included the 2nd example.
    Hopefully if someone is looking for this, they can just use or play with an example subVI (granted that they know how to plug things in for their context).  I was hoping to post a subVI people could put to direct use.

  • How to eliminate empty cells in reports

    how to eliminate empty cells in reports
    Thanks & Regards
    Kishore P

    hi saichand,
    my report contains empty cells. i.e it is simply empty . no value will be there like NULL ,n\a .
    IFNULL will only work when the value of the cell is NULL.
    so i need to make those empty cells to 0
    Thanks & Regards
    Kishore P

  • How to find the extra spaces from personal computer?

    I cannot update Adobe new items since the box window told me that there were no spaces from my computer. Who can teach me how to find the extra spaces from my computer? Besides, there are 1/3 spaces for IOS, 1/3 spaces for virtual computer and 1/3 spaces for Adobe in my computer. No any photos and movies  in my computer now.

    I do not understand the question... what do you mean by spaces?
    What size is your hard drive, and what does your system tell you about unused hard drive space?

  • JTree - How to Expand all Nodes in the Tree

    I have a tree that has one primary node, two sub-nodes, and multiple sub-sub-nodes under those. I want to expand (show) all these nodes in the tree when the tree first loads. I tried expandRow() but that only seems to expand one row at a time by entering a single integer for the row. Is there any way to expand all rows/nodes when loading the tree?

    see
    http://forum.java.sun.com/thread.jsp?forum=57&thread=148793

  • How do i stop two windows from openning when i clicon an email link, the home page and the link both open. i just want the link to open

    how do i stop two windows from openning when i click on an email link, the home page and the link both open. i just want the link to open

    That is a bug, so you need to wait until this get fixed.
    See https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6b opens two windows when opening external links
    (please do not comment in bug reports)

  • CAN SOMEONE PLZ TELL ME HOW TO SHUT OFF THE LIGHT FROM FLASHING WHEN I RECIEVE A CALL?

    CAN SOMEONE PLZ TELL ME HOW TO SHUT OFF THE LIGHT FROM FLASHING WHEN I RECIEVE A CALL?

    Settings>general>accessibility>led flash alerts off

  • How do I keep my music from stopping when my ipad autolocks?

    How do I keep my music from stopping when I close my ipad or it autolocks?

    My wife has the same problem. I believe I found the solution. Activate "do not disturb" in settings - do not disturb - manual. Make sure to also go to allow calls from and set it to no one. A moon will appear in the status bar. You will see notifications of missed calls but it does not interrupt Pandora. Let me know if this works for you.

  • How can i stop my picture from flipping when I take it on the front camera?

    How can i stop my picture from flipping when I take it on the front camera? Need help as it's frustrating me:(

    Hmm...Double click on the Home button and try to delete the camera app then launch it again that should fix it. You can also turn off your phone and turn it back on again.

  • Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac

    Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac?

    One thing to check:  when shutting down or restarting, there is a checkbox in the shutdown/restart dialog which asks whether you want currently open applications to open at startup.
    charlie

  • How do stop my i photo from loading when i start my computer

    How do i stop i photo from loading when i start my computer

    Are you still using Snow Leopard 10.6.8? If so then select the iPhoto icon in your Dock and hold down the mouse, click Options and make sure Open at Login is NOT checked.

  • How To Remove Empty Node From Source XML

    Hi,
    How can I remove an empty node from the source xml in a XSLT mapping.
    For e.g. If the source xml is like:
    <SRC>
    <Node1>SAP</Node2>
    <Node2/>
    <Node3>XI</Node3>
    </SRC>
    Then the xml should become:
    <SRC>
    <Node1>SAP</Node2>
    <Node3>XI</Node3>
    </SRC>
    I need to do this because the output of my XSLT mapping is showing blank spaces for each blank node.
    Thanks,
    Abhishek.

    Use <xsl:if>
    Or else you may find different options here
    http://www.dpawson.co.uk/xsl/sect2/N3328.html#d4804e304
    Regards,
    Prateek

  • How to eliminate a signature space interfering with editing

    I upgraded FormsCentral to a paid account, and I am now trying to finish up the second form of only two forms that I intend to use with FormsCentral.  But, I have run into this bottleneck:
    I had included a space for signature at the bottom of the form, which I don’t really need.  Subsequently, I decided to eliminate the signature space and make one other editing change.  But, when I went back to edit the form in Acrobat XI Pro, I got an error message saying “This document has been signed and can not be edited.”    Well, I never signed it.  I just have a blank Signature field in place, which I want to delete and make one other editing change.  How can I get the form to be editable again?
    And, I have one other question:  Is there a way to change the form from a PDF form to a Web form?.
    Thanks very much for your help,
    JSegel

    George,
    The form was created in Acrobat XI Pro, including highlighting the fields to fill out.
    When I open it in Acrobat, above the signature line is a little red arrow.  If I hover over that arrow, mouse-over text comes up saying: "Signature (Click to sign)".
    Then, again, when I try to remove that signature line or edit anything else, a box comes up saying: "This document has been signed and can not be edited."
    Very frustrating.  I'll be glad to email you the form to look over, if you like.
    Thanks for any help you can provide.
    JSegel

Maybe you are looking for

  • Where is my FaceTime for Mac?

    Hi everyone, I just purchased FaceTime for Mac, but I have not received a confirmation e-mail nor do I find the app anywhere on my MacBook? What do I do? Where can I find it? Thans in advance for your kind help!

  • Would like option 'Warn me when web sites try to redirect or reload a page'.

    I switched to Firefox from IE on my Samsung Galaxy note 4 - I read that firefox could help with this problem. Facebook is automatically refreshing. Need it to stop. Thanks.

  • Docking/Charger station with speakers--recommendations needed.

    I am looking for a docking station/ charger with speakers for my son.  He has an iPad mini and an iPhone 4.  I need a station that will charge even with the case on.  Any recommendations?

  • Snowman Flash game - move ojbects possible ?

    Hi everyone, Have you ever come across Flash games at Christmas time, where kids can build a snowman, by moving graphics around on the screen..... i.e. move the snow balls into place, add a carrot for the nose, move the eyes into place etc. something

  • USB Card - which should I use

    I want to get a USB card as I am running out of inputs. Will any USB 2 card work or do I have to get an PCI express card? Thanks