How can I have acces to each NodeStamp in af:tree?

Hi,
I have an af:tree with an af:outputText nodeStamp type. I need to display one of these outputTexts with Red color and others with Blue color, depends on the value of each row. My only doubt is how I can acces to each nodeStamp value to modify its inlinestyle. I try it with something like:
            /*Supposing that I want to change the color of only second row*/
            //ttNd is the RichTreeTable Object
            this.ttNd.setRowIndex(1);
            //This is the object which value is used to display the nodestamp value dynamically
            Object myObj = this.ttNd.getRowData();
            RichOutputText res = (RichOutputText)this.ttNd.getNodeStamp().getChildren().get(0);
            res.setInlineStyle("color:Red;");But it not works, it just change the color of all nodes.
How can I do this? I'm using ADF Faces RC with just Backing Beans.
Environtment: JDeveloper TP4 | JDK 1.5
Thanks in advance,
JVN

If your value criteria is something simple you may use an EL for the color property of the node as below..
#{node > "105" ? "red" : "blue" }{code}                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How can I have acces to a component of a window from a menu

    In a JInternalFrame, I have one Button.
    I try to access to this Button from a ActionListener of a JMenuBar.
    In the ActionListener of the JMenuBar, I have use the function "MyActiveFrame = MyDesktop.getSelectedFrame();" for having a pointer to my JInternalFrame.
    But I don't arrive to access to a component of my JInternalFrame.
    I have try "Button Boutton1 = MyDesktop.Boutton1;" but that don't work. It always say :
         java:56: cannot resolve symbol
         symbol : variable Boutton1
         location: class javax.swing.JDesktopPane
                        Button Boutton1 = MyDesktop.Boutton1;
    ^
    Is someone can tell my how I can have acces of this Button (and to the others component of my JInternalFrame from my JMenuBar).
    dank you in advance.

    No, that's not the problem. The problem is:
        JInternalFrame MyActiveFrame;
        MyActiveFrame = MyDesktop.getSelectedFrame();
        Button Boutton1 = MyActiveFrame.Boutton1;You are declaring MyActiveFrame as a JInternalFrame, not as the class you defined that extends JInternalFrame. Since JInternalFrame has no member named Boutton1, then MyActiveFrame.Boutton1 will cause the error.
    For example:
        public class MyFrame extends JInternalFrame {
            public Button Boutton1 = ...;
        };If you did something like:
        JInternalFrame frame = getOneOfMyFrames();
        Button b = frame.Boutton1;You would get an error. You need to do:
        MyFrame frame = getOneOfMyFrames();
        Button b = frame.Boutton1;Know what I mean?
    Jason

  • HT204053 I have two iPads and one apple ID. How can I FaceTime to/from each iPad? Do I need to set up a second apple id or is there a way around this?

    I have two iPads and one apple ID. How can I FaceTime to/from each iPad without creating a new apple Id. Anyone know a way around this I.e trying to FaceTime 2 IPads that have the same apple id associated with them?

    Have a look here...
    setting-up-multiple-ios-devices-for-messages-and-facetime.html

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP.  When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?

    I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP.  When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?
    Is there a parameter I should be using in the XML or is there a setting in Peoplesoft that will accomplish this?
    Jim

    sundy.liu wrote:
    Unfortunately however, even with the TCP tweaks enabled, I still only get a little over 1 Gb/s through the two aggregated Gig ports. It seems as though the aggregation is only using one port, though MRTG graphs of the two switch ports do in fact show that they are both being utilized equally, essentially splitting the 1 Gb/s speed between
    the two ports.
    Problem with the server? switch? Aggregation software? All the above? At any rate, I seem to be missing something.. Any help regarding this issue would be greatly appreciated!If you're only running a single stream, that's all you'll see. Teaming/aggregating doesn't make one stream go faster.
    If you ran two streams simultaneously, then you should see a difference between a single 1G interface and an aggregate of two 1G interfaces.
    Darren

  • How can I have one row for each object?

    Post Author: farnaz
    CA Forum: WebIntelligence Reporting
    I have 3 objcts that one of them is ID and second one is internal code and the third one is quantity.There is more than one value for each ID (becouse of internal code).I want to create a report based on ID and quantity (not based on internal code).I make a break on ID but the result shows me more than one row for each ID.so how can i have just one row for each ID?
    another question:
    how can I post screen shot of the results to my messag in forum?

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    farnaz:
    Have you tried to omit "internal code" from your grid?  In normal circumstances, if you have "ID" and "Quantity" on the grid, then WebI will on its own summarize Quantity based on ID, however, this is provided that Quantity has been set up as a measure (or metric).  The quickest way to tell if Quantity is a metric or not is to observe the color of its icon when you look at it in the data panel.  If it is a purple (or sometimes appears as pink or fuscia) dot, then it's a measure, but if it is a blue box then it is a dimension.  If you need Quantity as a measure then this will have to be modified at the universe (make it look like "sum(Quantity)" in the select phase of the object, and insure the object is defined as a number....

  • How can I have two PDFs open at the same time next to each other?

    How can I have two PDFs open at the same time next to each other?

    Moved to Adobe Reader for iOS.
    The only way I know how to do that is with two iPads.

  • How can I have each online form have a unique and appropriate http address - they are all under one

    How can I have each online form have a unique and appropriate http address - they all have an Adobe address that includes one of the form details that is inappropriate for the customers completing the form.
    e,g
    Form 1 for customer 1  LMD Community
    Form 2 for customer 2  Turner Expo Jan 2014
    Form 3 for customer 3  Grade A Distribution
    Form 3 online is accessible for fill-out  at https://adobeformscentral.com/?f=p2CwBtW*G6zkt3X*lBDEPQ
    The form opens properly but ...
    The tab that opens in the browser reads "Turner Expo FLHS Jan 3-5, 2014"
    Why?
    How do I get the proper tab label for each form?
    Thanks
    Bob Pye

    You can set the form title (the text that appears in the Browser tab/Window) in the Form Setup dialog.  With the form in question open in FormsCentral for editing, click on the Form Setup button in the toolbar.  In the resulting dialog set the Form Title to the text you want. 
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • How can I have multiple users on iTunes (in order to connect to a shared office iPad)?

    How can I have multiple users on iTunes (in order to connect to a shared office iPad)? Currently each of us has our own iTunes account, so I've made an "all office" Apple ID. However, I can't seem to get two different accounts (my personal and the office) to work on my machine. Even when I login as "the office", my personal library is still showing. Additionally, when I try to setup with a first-time use in iTunes, I get an error that I don't meet the minimum age requirement - no matter what birthdate I enter!

    The library exists regardless of which user is logged in.
    The only way around that is to create different user accounts on the computer.
    There is no way to have 20 unique iTunes users access a shared iTunes under a single login on the computer.

  • How can I have 2 devices on one iTunes?

    How can i have 2 devices on one iTunes so that they share the same music but have different apps? Is there a way to do that?

    Each can sync with the same playlists, or different ones, and can have different apps...
    Uncheck the Automatically sync new apps box on the Apps tab after connecting each device and before syncing. Once this box has been unchecked each device should remember the setting and only sync the apps that have already been selected for it, plus any you then decide to manually add to the list or purchase on each respective device.
    tt2

  • How can I have multiple WINDOWS (NOT tabs) with INDEPENDENT content?

    How can I have multiple '''windows''' (''not ''tabs) with '''independent''' content?
    I used to be able to open separate windows with Firefox, and the content could be completely different in each window. No matter what I did in any window, no OTHER window open at the time, nor any of the content therein, was affected. This is no longer the case and it is extremely frustrating for me.
    I do ''not ''like tabs and do not use them. I prefer multiple windows plus I am so used to using them, for so many years now! But with v9.0.1 I suddenly can no longer do what I've always done with my browser without this aggravating problem constantly reminding me that I can't have what I want in firefox anymore.
    Or can I? Does anyone have a solution I don't realize exists?
    Thanks,
    Sowelu

    AppleScriptObjC can use pretty much everything in the Cocoa API, so yes, it is possible.
    Note that a view is not the same as a window, and a window can have multiple views. There are also many ways to implement "tabs";  take a look at some of Apple's applications - they use various mixtures of toolbars, checkboxes, and radio buttons, for example.  An application such as this will be a lot more involved than what you have done so far though, using custom classes and subclassing existing ones, so be prepared to do a lot of reading and researching.

  • HT1766 How can I have multiple iphones on itunes and prevent them from having the info from one ipone going to the other

    How can I have multiple iphones on itunes without them sharing contact info

    If contacts on each iPhone are being synced direct with the same supported address book app on the computer via the iTunes sync process, deselect Sync Contacts under the Info tab for the iPhones that you don't want synced with the same address book followed by a sync.
    If each iPhone is sharing the same Apple iCloud account with Contacts enabled for over the air syncing, each iPhone needs its own iCloud account.

  • How can I have another Itunes account on the same computer for my wife?

    How can I have another Itunes account on the same computer for my wife?

    In case you didn't fully understand what dallon meant, it means another user account on your computer. You set that up in Windows and then instal iTunes onto that account.
    That way, you each have your own desktop and your own itunes. You can link to the songs in the other person's library as well, but you cannot run both iTunes at the same time. (That simply means you need to close it on the first account before opening it on the second account.)

  • How can I have all the numbers transfered from my old cellphone?

    In my old cell phone I have more than one number for each person: cell phone, land line, office etc. When I have transfered my telephone contacts from my old cell phone to my iphone, only one number for each name appears : how can I have all the numbers transfered?

    When transfer contacts through SIM only the first number is really transferred.
    What kind is your old phone?

  • How can I have a standard text block appear on the last page of my documents?

    How can I have a standard text block appear on the last page of my documents without having to type it in all the time? I have a terms statement with a line for a customer’s signature which I want on the last page of my invoices and right now I have to type it in each time or cut and paste it from a previous invoice. I already have a Master Page that includes the customer information and my company information at the top of each page and I am using data merge to fill each page with the items ordered and their pictures etc. I would just like to have this standard terms block automatically show up on the last page after the last item in the data merge.
    Thank you all in advance for your help.

    Thank you Peter. This works. I have the text block now at the bottom of a second master page which I apply to the last page. For aesthetics I can modify the position of the text block in the new master page to bring it up from the bottom under the last item ordered when there is less than 4 items on the page. (my data merge fits up to 4 items with their images on a page).  If the last page is full I’ll insert a final page using the second master and also bring it up to the top of the page.

Maybe you are looking for