How can I have access to every NodeStamp in af:tree?

Hello

I have an af:tree with a type of af nodeStamp: outputText. I need to display one of these outputTexts with the color red and others with the blue color, depends on the value of each line. My only doubt is how can I access each value of nodeStamp to change his inlinestyle. I try 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 this does not work, just change the color of all nodes.


How can I do this? I use ADF Faces RC with just Backing Beans.

Environment: JDeveloper TP4. JDK 1.5


Thanks in advance,

JVN

If your criteria of value is something simple you can use an EL for the color property of the node as below...

#{node > "105" ? "red" : "blue" }{code}                                                                                                                                                                                                                                                                                                                                    

Tags: Oracle

Similar Questions

Maybe you are looking for

  • Is there a compatible ssd to upgrade early 2015 Macbook Pro?

    Planning on buying a new macbook pro.  Information on upgrading the early 2015 macbook pro said that it wasn't something compatible yet.  I was wondering if in 2016 if anything compatible exist now?

  • Table 2D

    Hello It could be simple, I did not thing to do. When I'm not looking 'A' he combines 2D data table with information in the input table. Similarly, if do A search and B using an entry level search. I need select and display the info of A and B in the

  • Adding a second SATA drive to Desktop Pavilion m9070.uk

    Hello I inherited a new 1 TB WD SATA, but there naked (without cables and screws), and I want to add this to my office, already with a 500 GB WD SATA. I don't see any instructions on HP or this forum, so can I check some basic assumptions? (a) I need

  • Keyboard for blackBerry Q10 q10

    There it is again. I have the second q10 of our representative of bell who is willing, as mine is again for repair. My loan is undergoing the same problem with the key "O". It is very sensitive, so if you spend just on the key and press them, 'o' app

  • Unhandled exception has occurred in your application. If you click on continue, then the application will ignore and continue.

    OT: How to fix this? See the end of this message for details on the calljust-in-time (JIT) debugging instead of this dialog box. The exception text *.System.Net.WebException: The remote name could not be resolved: 'peeracon.com '.to System.Net.HttpWe