TP4 FileExplorer tree: change Folder icon when expanded/collapsed

I am trying to create a tree similar with FileExplorer from the Demo application. I am trying to use two icons for every node: one for expanded node and another one for collapsed.
I use a rowDisclosureListener tag
rowDisclosureListener="#{menuBean.menuRowDisclosureEvent}to fire an expand/collapse event. In a custom method menuRowDisclosureEvent(RowDisclosureEvent disclosureEvent) I retreive the selected node and programatically change the icon. The only thing is that the tree view itself is not refreshed on the same phase cycle. The node icons are refreshed only at the next requests.
Thanks,
/Florin

I have also tried to use:
AdfFacesContext.getCurrentInstance().addPartialTarget(tree);Didn't helped

Similar Messages

  • Changing folder icons on favorites list

    i've recently moved my user folder to another HD on mac.
    folders such as desktop, doc, downloads, pictures that i needed to change on favorites list now have the generical folder icon.
    when i try to change the icon, the folder in the submenu appears correct but the folder docked in my favorites list on the left doesn't change.
    is there a way to do this?
    thanks

    Copy the icon you want to the clipboard.
    Select the file/folder you want to change and do Get Info (cmd-I).
    Click the file/folder icon on the Info window. It will highlight with a blue glow.
    Paste.

  • Bug - View changes to grid when expanding a collection in the left pane.

    Tried submitting this via the bug report form but got java errors. Sigh...
    This seemed like the best alternative.
    ******BUG******
    Concise problem statement:
    View changes to grid when expanding a collection in the left pane.
    Steps to reproduce bug:
    1. Goto Library Module
    2. Ensure there is a collection with at least one child - if not create one.
    3. Make sure the collection is collapsed (you cant see the child and you see a right pointing triangle to the left of the collection name)
    4. Change to Loupe view
    5. Click the right pointing triangle next to the parent collection you just created to expand it.
    Actual Results:
    View changes to grid
    Expected results:
    View should remain unchanged - in this case Loupe view.

    The first is that I can't view the aperture library anymore directly from iphoto.
    THat is exceeding strange since iPhoto '08 could not open or share an Aperture library - that ability was first introduced in iPhoto '11 - with the latest version of iPhoto and or Aperture you can open the same library with either application - http://support.apple.com/kb/HT5043
    In the current version of iPhoto the photos are sorted by date in the film strip - I've not recently done a calendar so do not remember the specifics -
    LN

  • Can I change folder icons on my 5s?

    Can I change folder icons on my 5s?

    What folders? If you mean the folders you can create to organise apps, then no, those icons are automatically generated from the icons of the apps inside the folder.

  • Can Tree's folder icon node changed to different icon?

    Hi,
    Currently, the tree and tree table node's icon is a "folder" icon. Can this be customized to different icons? We would like to have different icons for the nodes for different level in the tree/tree table. For example, level 1's node is icon A; level 2's node is icon B, etc...
    Any suggestions?
    Thanks.
    -Mina

    Hi,
    I think the right way of doingthis indeed is skinning. I would try to
    - set a styleClass value to the styleClass property using EL against a managed bean method.
    - The managed bean method now is called for each node. Use EL in the managed bea method to access the #{node} EL to determine the row you are on
    - set the style class to e.g. level1, level2, level3
    - Then in the skinning you use
    level1 af|tree...{}
    level2 af|tree...{}
    To define the different icons for the tree levels. Note that using DAF all icons are using folders. So there is no sense in skinning leaf icons
    Frank

  • Changing folder icons issue

    I'm suddenly having a problem in snow leopard (mac os x 10.6.8) that I haven't had before in older versions. When I use copy and paste to change a folder's icon, the folder then contains an 'icon exec' file that I do not want there. If I trash it, the icon on the folder gets trashed as well. Anyone know how I can change the icon without having to now include that 'icon exec' file in the folder? Thanks.

    Just rebooted into 10.6.8 to see if its behavior was any different than 10.7.2, which I now use most of the time.
    No change - in Lion or Snow Leopard, when I added a custom icon to a folder, an invisible file was added to the folder's contents. This file is named just "icon" with no extension, and does not display the exec icon - it displays the generic blank page with turned-down-corner icon. I used FileBuddy to do the looking, since invisibles are visible to it.
    The icon I used as a source was one derived from a JPEG image. I opened the image in Preview, did a Command-A (select all) to select the entire image, then Command-C (copy) to place it on the clipboard, then did a Get Info on the folder's icon and pasted (Command-V) the image onto the icon in the upper left.
    Perhaps the difference stems from the nature of the source image you are using?

  • Adobe Portfolio - Changing Folder Icon

    Using Adobe Acrobat Pro 9
    Is there any way to use a customized graphic/jpg for the Folders icon?
    When I have my portfolio grouped in folders, I want to be able to visually show something about that folder (insert JPG), not just a picture of a folder...

    Here's another discussion:
    http://bbs.applescript.net/viewtopic.php?id=10591
    This discussion sets forth two approaches, and I have made both of them work in their own way. So my question is more or less answered -- more or less, because the approach that is most satisfactory is the one that you outline in that discussion, but it seems only able to set a custom icon to a new folder ("Target").
    Please enlighten me if I'm missing something, but is there a way of making the "target" folder a pre-existing folder with another custom icon? What I really want to do is to change a folder icon, not create a new folder with a custom icon.
    What's so frustrating is that I can open two folders with different custom icons and drag their invisible icon files back and forth (changing the icons), but I haven't found a way to do that with a script.
    Thanks very much for your help.
    2.7G5 AND OTHERS   Mac OS X (10.4.5)  

  • ZCM Change folder icons Startmenu

    Hi everyone,
    Is there anyway to change the default folder icon of ZCM bundle folders in the startmenu?
    This was already asked a couple of years ago, but unfortunately there were no solutions for this.
    Greetings,
    Dennis Kitzen

    Dkitzen,
    no, when I last saw this as an enhancement request, it was still
    unchanged
    Shaun Pond
    newly reminted as a Knowledge Professional

  • Sap Alv Tree Change Cell Icons ?

    How can i change this icons ?
    Thanks & Regards...

    Hello Burak,
    in the node Table you can change image:
    for example:     
         wa_node-n_image   = icon_delete.   "Folder closed
         wa_node-exp_image = icon_delete.  "Folder expanded
    best regards
    Werner

  • [Solved] I can't change folder icons in my home folder (XFCE)

    Just in case some user have disabled signatures:
    XFCE 4.10
    Thunar
    AwOken icons
    Hello,
    I am currently using the AwOken icon set, which I downloaded on deviantart.com.
    So... I'd like the typical folders
    Pictures
    Videos
    Music
    Documents
    etc.
    to use the corresponding icons from, well, acutally any icon set I am using. But when I right-click on any folder, I can't change the Icon (second tab). Am I doing it wrong or is that a bug?
    edit
    So I tested it with a lot of other default XFCE themes and themes from the AUR (Greybird, Albatross and so forth). I can't change any icon. That's too bad, I have no clue whatsoever what the problem is, I was hoping I could change the bookmarks' icons in Thunar's sidebar as well.
    Last edited by jones (2013-03-15 15:15:50)

    VCoolio wrote:install xdg-user-dirs, maybe logout and back in. Folders are configured in ~/.config/user-dirs.dirs
    Also check here
    Yup, logging out and back in is necessary.
    Wohoo, that worked. Thanks

  • Change folder icons in Acrobat X Portfolios?

    Will I be able to change foder icons an an Acrobat X portfolio? Other file icons too?

    Yes and no. Adobe has an SDK for creating custom portfolios (which would include creating folder icons). Information can be found here: http://labs.adobe.com/technologies/portfoliosdk/    However, this requires additional tools to accomplish (ie Flash Builder).
    If the changes you want to make are fairly minimal (e.g. changing the color, size, etc) you could always try entering a feature request.

  • Change tab icon when you clicked

    is it possibleto change the icon of a tab in a JTabbedPane when it is selected ??
    and if so how can we do it??
    Thanks

    is it possibleto change the icon of a tab in a JTabbedPane when it is selected ??yes, it is
    and if so how can we do it??With JTabbedPane's setIconAt(int index, Icon icon) method
    Thanksthere you go!

  • Change Folder Icon in Functions Palette

    Hey, have two questions.  I'm writing an instrument driver for an instrument I have here at work, and I have the VI's working.  I have the VIs organized and inserted into a library, which is in a project including that library and an examples folder (so basically the way Labview downloaded instrument drivers are set up).  I put all this in the instr.lib folder, and the VIs show up in the functions palette just fine.  So, based on that setup, my questions are:
    1) How do I change the folder icons (not the VI Icons - already did that) in the functions palette?
    2) How do LV instrument drivers hide the "Examples" folder and simply display the VIs from the "Public" Folder?  (they don't appear to be marked private)
    Thanks!
    TG
     

    I think the secret is in having an mnu file, which defines what will appear in the palettes. You can create one by editing the palettes (under Tools>>Advanced) and there you should be able to remove items and to edit the palette icon by right clicking it. You should probably also make sure that the mnu file is saved in the same folder, so that you can have it in other PCs. Note that the palette editor has this annoying confirmation dialog which tends to hide under other windows and which you need to get to finish editing, so move it to somewhere you can find it before you start editing.
    Another option is using VIPM to install the driver, and that will also allow you to edit a palette.

  • Possible to change folder icon using app.system()?  [PC/mac]

    I need help to verify if this works smoothly.
    ... If it is even possible...
    #target bridge;
    if ( BridgeTalk.appName == "bridge" ) {
         if ( Folder.fs == "Macintosh" ) {
              iconPath = new File("/someplace/MyIcon.icns");
              var myFolder = new Folder("/someplace");
              // select my folder and tell OSX to change the icon to MyIcon.icns
              app.system("mac command lines");
         } else if ( Folder.fs == "Windows" ) {
              iconPath = new File("/someplace/MyIcon.ico");
              myFolder = new Folder("/someplace");
              // select my folder and tell OSX to change the icon to MyIcon.ico
              app.system("command code"); // for windows7
         } else {
              alert ("Unsupported file system");

    var f=new File(app.document.presentationPath  + "/desktop.ini");
    f.open('w');
    f.encoding = "UTF8";
    f.writeln("[.ShellClassInfo]");
    // I have chosen one icon of windows7, but you can design and create your own icon, export it to .ico and add it here, for ex: f.writeln("IconResource=c:\\Users\\Public\\myIcons\\myicon.ico");
    f.writeln("IconResource=%windir%\\system32\\imageres.dll,101"); // if using dll of windows, a 2nd argument is needed to set the number of the icon (there are several possible dll libraries with hundreds of icons)
    f.writeln("[ViewState]");
    f.writeln("Mode=");
    f.writeln("Vid=");
    f.writeln("FolderType=Pictures");
    f.close();
    .hidden=true;
    var cmd = "attrib +s  \"" + decodeURI(app.document.presentationPath) + "\"";
    app.system(cmd);
    // go to the parent folder to refresh and come back again:
    var back = app.document.thumbnail.uri;
    app.document.thumbnail = app.document.thumbnail.parent;
    app.document.thumbnail.refresh();
    app.document.thumbnail = new Thumbnail(back);

  • Trouble changing folder icon

    when i 'get info' on the source jpg i'd like to use, it doesnt show up as a mini picture, but as the 'jpg' logo. it shows up this way in the finder also before i 'get info'. some images show up as mini pics in the finder and after i 'get info' on them, but these,of course, are not ones i want to use. how can i make all the other image files show the mini pic at the top in the 'get info' window?

    If the jpeg you want to use as a folder icon is not TOO gigantic, just open it in Preview and copy. Then select the folder, do GetInfo, select the little generic icon at the top and paste. You can check to make sure the jpeg actually copied to the clipboard by going to the Finder Edit menu and near the bottom is "Show Clipboard"--if nothing shows up on the clipboard after the copy step then you may want to try resizing with an image editor or crop it in Preview. There are several little freebie programs that will create thumbnail icons for files that don't have them. I like VitaminSee. Take a look on VersionTracker, you might find one that you like better.
    Francine
    Francine
    Schwieder

Maybe you are looking for

  • Error Message in config Archive in RME in LMS 4.2

                      I got the below error message in the config archive in the LMS 4.2. CM0056 Config fetch failed for 10.0.0.10  Cause: CM0204 Could not create DeviceContext for 797 Cause: CM0202 Could not access 10.0.0.10 via SNMP. Action: Check the

  • ...... the file structure and the directory tree.......

    I am a beginning learner and have a test for Database Server (Oracle 9i). There are about 1000 employees in this company ,and about 100 employees at the same time to use the online service in any time. On hardware,there are a new Intel Xeox with 4 HD

  • How do I get my Powerbook G4 to stop looking for a PPPoE server?

    I was given an old PowerBook G4 and while I am using it, a message keeps popping up.  The message says, "Internet Connect.  Could not find a PPPoE server."  I don't know how to get this to stop.  Please help me.  Thanks.

  • Silencing the shutter sound on camera

    I was wondering if anybody can help me out in finding a way to silence the shutter sound when taking pictures. I was at church the other day and took a picture of my cousin on the platform and the shutter sound was REALLY loud! Thank you in advance f

  • Multiple JPanels on top of each all receiving mouse events

    I have multiple JPanels that are painted on top of each other. Each one has mouse listeners that listen for mouse enters, exits, etc. However, it appears that Swing is only propagating the mouse events for the most visible panel (the one that is on t