Going through nodeStamp of an af:tree

Hi Folks,
I have a mission that I was not able to solve.
I have a tree that shows Employees and Subordinates. One Subordinate can be inside one or more Supervisors.
When the user clicks on any subordinate, the icon of all supervisors of that subordinate have to change.
I searched some code and see that I could work with JUCtrlHierNodeBinding and try to solve it but that is not my case.
When I get the treeModel and try to convert it to JUCtrlHierNodeBinding, I get a convert exception because I am not using DataBinding at all.
Does anybody could help me?
Thanks in advance.
Best Regards,
Ricardo Morais

Hey Frank,
I have no binding at all.
I have only a TreeModel that is populated by a list of users and each user has its subordinates.
I am using the Backing Bean to call the EJB and populate a list.
How can I do a workaround on it?
public void createTree(DisclosureEvent event) {
RichTree table = (RichTree)event.getComponent().findComponent("treeEC");
if (table != null) {
RowKeySet disclosedRowKeySet = table.getDisclosedRowKeys();
if (disclosedRowKeySet != null) {
disclosedRowKeySet.clear();
AdfFacesContext.getCurrentInstance().addPartialTarget(table);
estruturaComercialSelecionada = null;
pararBuscaRecursiva = false;
//Somente quando vamos para a tab
if (event.isExpanded()) {
try {
PontoDeVendaFacade pontoDeVendaFacade = (PontoDeVendaFacade)ServiceLocator.getInstance().getEJB(PontoDeVendaFacade.class);
List<EstruturaComercialEntity> ec = pontoDeVendaFacade.selecionarAglutinadoresCorporativos(getUsuarioLogado());
treeModel = new ChildPropertyTreeModel(ec, "estruturasComerciaisFilhas");
arvoreAuxiliarEstruturasComerciais = ec;
} catch (Exception e) {
logger.error(e.getMessage(), e);
handleException(e);
public void setTree(RichTree tree) {
this.tree = tree;
public RichTree getTree(){
return tree;
public void setTreeModel(TreeModel treeModel) {
this.treeModel = treeModel;
public TreeModel getTreeModel() {
return treeModel;
<af:tree id="treeEC"
binding="#{viewScope.estruturaComercial.tree}"
var="ec"
rowSelection="single"
value="#{viewScope.estruturaComercial.treeModel}"
partialTriggers="sdiUnidadesDeAtendimentoPV"
inlineStyle="height:205px; width:385px">
<f:facet name="nodeStamp">
<af:panelGroupLayout id="pgNStamp">
<af:image id="imgPasta" source="/images/#{bundle['default.botoes.pastaFechada']}" visible="#{ec.tipo != viewScope.pontoDeVendaManter.tipoEstruturaComercialUA}"/>
<af:image id="imgFolha" source="/images/#{bundle['default.botoes.folha']}" visible="#{ec.tipo == viewScope.pontoDeVendaManter.tipoEstruturaComercialUA}"/>
<af:spacer width="5px"/>
<af:commandLink id="showNode"
text="#{ec.nome}"
disabled="#{!ec.podeAssociar}"
inlineStyle="#{ec.tipo == viewScope.pontoDeVendaManter.tipoEstruturaComercialAC ? bundle['pontoDeVenda.tab.unidadeDeAtendimento.AC.corTexto'] : (ec.tipo == viewScope.pontoDeVendaManter.tipoEstruturaComercialUN ? bundle['pontoDeVenda.tab.unidadeDeAtendimento.UN.corTexto'] : (ec.tipo == viewScope.pontoDeVendaManter.tipoEstruturaComercialUC && ec.podeAssociar ? bundle['pontoDeVenda.tab.unidadeDeAtendimento.UC.corTexto'] : (ec.tipo == viewScope.pontoDeVendaManter.tipoEstruturaComercialUC && !ec.podeAssociar ? bundle['pontoDeVenda.tab.unidadeDeAtendimento.UC.corTexto.italico'] : (ec.tipo == viewScope.pontoDeVendaManter.tipoEstruturaComercialUA && ec.podeAssociar ? bundle['pontoDeVenda.tab.unidadeDeAtendimento.UA.corTexto'] : bundle['pontoDeVenda.tab.unidadeDeAtendimento.UA.corTexto.italico']))))}"
partialSubmit="true"
actionListener="#{viewScope.estruturaComercial.selecionarUnidadeDeAtendimentoParaAdicao}">
<f:param id="prmCodUAAdd" name="addCodUA" value="#{ec.codigo}"/>
</af:commandLink>
</af:panelGroupLayout>
</f:facet>
</af:tree>

Similar Messages

  • Firefox can't open normally without going through the "this is embarrassing" routine; nor does it close down properly; it also sticks frequently, i.e. screen freezes for a minute or more; should I uninstall and re-install to try and debug?

    Firefox can't open normally without going through the "this is embarrassing" routine; nor does it close down properly; I get the "end program" message and have to say "end now"it also sticks frequently, i.e. screen freezes for a minute or more; should I uninstall and re-install to try and debug?
    - I've used Firefox exclusively for around 2 years.
    - My outlook express has no problems
    - other programs seem unaffected; it seems peculiar to Firefox.
    - my main use is surfing the net, primarily entering competitions on line via specialist competition sites.
    - every day at some stage(s) I have to switch computer off as Firefox has got very slow/sticky/freezes.
    I'm not techy by any means, but I can only thing of un- and re-installing to hopefully start with a clean slate.

    Sounds like something is keeping Firefox from closing properly. See this: <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • How can  I checkout an existing file from CVS without going through the wiz

    How can I checkout an existing file from CVS, that is not already in my local jdev, without going through the wizard and checkingout everything?

    You can't. AI doesn't produce .PLT files.

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

  • I have tried loading 3 different cds that I just bought into Itunes and I click the import cd button and it goes through the motions of importing the cds, but when I go to my library none of these cds is there.  Help, please!

    I have tried loading 3 different cds that I recently purchased into Itunes.  I click the import cd button and Itunes goes through the motion of copying and importing the cds, but the songs are not in my music library.  I have searched everywhere to find where these cds might be, but to no avail.  Could really use some help here.  Never used to have this problem.

    Are they in the relevant artist & album folders when you look via Windows Explorer. If so something may have gone wrong with the index of the Music playlist. Download the current iTunes Free Single of the Week. I know it sounds odd, but it should fix the problem.
    If that doesn't work close iTunes and delete the hidden file sentinel from inside the main iTunes folder, then start iTunes again. It should run a consistency check when it starts up.
    tt2

  • I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted!

    I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted and I can't use my computer!!

    I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
    Hope this helps.

  • It says it needs to be connected to itunes and restored.  when i do that, it goes through the whole process then comes up with "iphone could not be restored. unknown error code (-1)".  Please help

    My brother gave me his old iphone when the touch screen went out on mine.  It's in great shape but when I received it, it says that it needs to be connected to itunes to be restored.  I have done this and it goes through the whole process then says iphone "iphone" could not be restored.  unknown error code (-1).  There is not a -1 code on the list and I have tried most of the suggestions.
    Does my sim card need to be in when I am doing this?  And any other suggestions?

    I did put it in DFU mode but its still not working, although everytime it shows your iphone needs to be restored. Kindly help.

  • Hi, anyone know how to make a complaint without going through technical support or speaking to a senior sales advisor as i have an ongoing issue since February and still I am unable to get it resolved

    I recently got a replacement iPhone 4s due to a fault occuring with the phone and the replacement 4s that I received is turning off serveral times throughout the day by itself, I have been speaking to customer relations and technical support since the start of February in relation to my complaint and I seem to be getting a major runaround and still hae not had my issue resolved, is there anwhere else or even an email I can send my complaint to without going through those departments as I find the staff to be very unhelpful and also rude and aparently there are not managers working in Ireland at all only in the US, as I was told by a senior advisor yesterday

    For EUROEAN customers only, here is the e-mail address where to send the complaint, : [email protected]
    and also here is their EUROPEAN Customer Care centre postal address:
    Apple Customer Care HOLLYHILL Industrial Estate, HOLLYHILL, CORK, Republic of Ireland.

  • My iCloud storage payment is going to be going through is 7 days but the card on file needs to be changed. How do I change he payment type?

    My iCloud storage payment is going to be going through is 7 days but the card on file needs to be changed. How do I change he payment type?

    Welcome to Apple Support Communities
    To change your payment, read > http://support.apple.com/kb/ht1918

  • I can't sync my ipod to itunes. It looks like it is going through all the steps to sync but nothing happens. The music I moved around is not going where it should

    I can't sync my ipod to itunes. It goes through all the steps to sync but it does not sync. The music I moved around does not go where I put it. It shows up in itunes (when changing music around) but does not change it on my ipod. Can someone help me?

    Sync Session Failed to Start iTouch iOS5: Apple Support Communities
    iphone could not be synced sync session failed to start...: Apple Support Communities
    and
    Can't connect to the iTunes Store

  • After startup, my desktop rushes through all the pictures if goes through and I can't load/see any apps until it stops. What to do?

    When I turn on my macbook pro (end of 2010 so it isn't old), I wait for the usual things it needs to run through, and before my icons etc load up (the ones on the desktop), my screen rushes through all the images I have told it to rotate through as a desktop screen (I have alternating backgrounds that are supposed to change every 5 minutes or so). It is the second time it has happened now (2nd startup) and it has been fine for the past few months from when I bought it in December. While it goes mental and rushes through the photos, it can't go to the bottom to bring up the Apps bar so it is virtually useless (unresponsive) when it goes through this mad stage. I recently deleted a chunk of video I transferred off an old camera onto the Mac but I can't see how this would have messed up a £1,000 machine 0-O Please let me know what has happened because I don't want to have to call Apple again =(
    -Jack

    Thanks for the quick advice!
    Unfortunately, I am still unable to open my core productivity apps, namely Skype and Evernote. Twitter, as well, could not start. But interesting quick fix though, I never knew you could do that.
    Here's the error log after the restart:
    What else should I try?

  • HT1918 Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID.  I have tried to do this going through the manage accoung like, but it timed out - could somebody he

    Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID.  I have tried to do this going through the manage accoung like, but it timed out - could somebody help, pls

    Purchases of multple Apple ID accounts cannot be merged as noted here >  Frequently asked questions about Apple ID

  • How can I find duplicate photos without going through all 5000  one at a time?

    How can I find duplicate photos withough going through all 5000 one by one?  I have numerous duplications and used to be able to click on Edit and Find Duplicates and could clean up all the duplicates easily.  Now that option is gone.  I still have lots to delete.

    I do backup everything using Carbonite.Please don't tell me it is bad, too :-)  Also, especially with photo files, I do have other backups of those I am concerned about. Probably not the best in the world, but a log better than many people who I know about.
    Again, I really have not seen any problems with MacKeeper.  I imagine that if people do not read and follow instructions, they could have problems. For example, it is possible to scan all your files and see them in order of size. If you start deleting things, without knowing what you're deleting, you could cause trouble. Even when the computer scans for so-called junk files, you can look at them and decide for yourself if they are truly junk. I've never seen any that were not.
    So, I will look at the complaints anyway to see them. I am open to change, although I hope I do not need to drop Mackeeper as it does things like keeping tracking of applications updates that I need. Please note that I definitely am not a MacKeeper employee or anything close. Just using it and happy with the the results.
    I did download the recommend file for finding photo dupes and ran it.  There were very few duplicates, in any case, As I said before, the MacKeeper dupe finder was very slow when I ran it over ALL my files. That was a year ago and it did find many non-text dupes.

  • I transferred my iTunes library from one external hard drive to another and added more music on the same day. How do I get rid of my duplicate files without going through them one by one which would take forever?

    Please help. I have transferred my iTunes library from one external hard drive to another plus added additional music now I have duplicates of the same music in many albums. How do I delete the duplicates without going through them one by one which would take forever? I understand how to get the "show exact duplicate" feature up on iTunes but, because they were added to the library on the exact day I can't seperate them I'm that manner. So each duplicate is right next to eachother in the exact duplicate screen.

    My DeDuper script is designed to help clean up. See this thread for background.
    tt2

  • How can I copy pictures from my PC to my iPad2 without going through iTunes?

    how can I copy pictures from my PC to my iPad2 without going through iTunes?

    David Witcoff wrote:
    Is there a step-by-step instruction guide I can find re how to so import photos through iTunes?
    For windows pc's Photo albums:
    1) Create a master sync folder on your pc with no photo files at the root level of the folder.
    2) Create sub-folders within the master sync folder with the subfolders named what you want the ipad's photo albums to be named.
    3) Place the photo files you want to sync in the appropriate subfolder within the master sync folder.
    4) In itunes on the photos tab, select the master folder as the sync folder.
    5) After syncing, each subfolder will be an album on the ipad with the proper photos contained there-in.

Maybe you are looking for

  • Install Lion on an external drive?

    I have read the discussions on making a bootable backup of Lion on external hard drive or a USB drive. I am not clear on whether I can purchase Lion from the App Store and have it download on an external drive so that my Macbook with 10.6.8 will rema

  • How do I backup and restore library and playlists?

    I have 14 days left on my Win 7 trial version and now need to backup itunes. In the advance itunes preferences tab I have my music folder on a separate hard drive (K:\) but I dont see anything pertaining to playlists. How do i save playlists and what

  • On version 19 which just downloaded why doesn't the primary search box doesn't work when all other search functions (address box and upper search box) do?

    The primary search box in the center screen does not respond to any search input. In contrast: (1) the https:// address box responds immediately and normally when input is provided and the curved arrow tapped, (2) the upper search box in line with th

  • Invoice list schediling

    Hi, is there any report available for Invoice list (header detials not item details), which can scheduled in background? If yes, pls provide me the transaction? Is it possible to schedule report VF05/VF05N in background? the requirement is for user w

  • ERR: HTTP_RESP_STATUS_CODE_NOT_OK - 401 Unauthorized

    Hi All,      I have a scenario which transfers data from ABAP Proxy(client 200 of XI) to XI(client 100 of XI) IS using the interface "ValueMappingReplicationOut" and the receiver adapter is XI. While executing an ABAP program from client 200 (to trig