Default Expand/Collpase not working in adf's af:tree component

Hi,
I have a tree problem with a default events of expand/collapse.
I have a PathSet variable in the bean which I have linked to the treeState of af:tree in the jsp.
So, the page opens up with all the nodes expanded, but when I click on any of them, the tree doesn't collapse. I dont handle the DisclosureEvent since I thought that only customizes the event handling. If I dont link to the PathSet variable, then the page opens with all the nodes collapsed and the expand action doesn't work. I've tried with both request and session scoped beans, but it doesnt help. Any pointers will be greatly appreciated, have read the docs, but the problem remains.
Snippet of code:
dialogPage.jsp:
<af:tree value="#{backing_dialogpage.model}" var="row"
binding="#{backing_dialogpage.tree1}" id="tree1">
<f:facet name="nodeStamp">
<af:selectBooleanCheckbox label="#{row.strName}"/>
</f:facet>
<f:facet name="pathStamp">
<h:outputText value="#{row.strName}"/>
</f:facet>
</af:tree>
(backing bean)Dialogpage.java - constructor
public Dialogpage () {
TableRow root1 = new TableRow ("1994");
TableRow child1 = new TableRow("child1_cruise_id_101");
TableRow child2 = new TableRow("child2_cruise_id_202");
List childList = new ArrayList();
childList.add(child1);
childList.add(child2);
root1.setChildren(childList);
this.rootList.add(root1);
this.rootList.add(new TableRow("1996"));
this.model = new ChildPropertyTreeModel(rootList,"children");
this.path = new PathSet (true);
}

The logic here is pretty similar to the one with folders and files. Folders are container types and files are just leaf nodes (can't contain other files).
I don't want under each folder node to have two new container nodes - one that hold other subfolders, and another one that hold just files. And that's just what I get now.
How to avoid that?
Anybody?

Similar Messages

  • Default Mail app not working with yahoo mail. Won't update.

    Default Maill app not working with Yahoo Mail.
    It stopped working the other day. I tried everything but it wouldn't update new mail. The yahoo account itself is fine because I can see new mail on Yahoo or a yahoo app.
    I tried deleting the account and putting it back on, but now it has 0 mail in any part of it. Nothing has synced.
    What do I do?
    iPad 2 latest OS.

    A lot of people have been unable to access Yahoo e-mail on their iPhones or iPads. My wife’s iPad was not downloading Yahoo mail, although her iPhone was. Both used IOS 8.2. We tried deleting the account several times and troubleshooting all of the other settings. The problem appears to have been that allowing the IOS to automatically create the account on the iPad resulted in the wrong settings for the incoming server. The following procedure, pieced together from two websites, fixed the problem for us. So far, so good.
    https://portal.smartertools.com/kb/a2659/configure-imap-for-iphone-or-ipad.aspx
    https://help.yahoo.com/kb/mobile-mail/imap-server-settings-sln4075.html
    On the iPhone, tap Settings.
    Tap Mail, Contacts, Calendars.
    Tap your Yahoo account, then delete it.
    Tap Add Account.
    Tap Other.
    Tap Add Mail Account.
    Complete the Name, Address (email address), Password and Description fields.
    Click Next.
    Ensure IMAP is selected.
    Enter the following incoming mail server information:
    Incoming Mail (IMAP) Server - Requires SSL
    Server: imap.mail.yahoo.com
    Port: 993
    Requires SSL: Yes
    Hostname is mail.yahoo.com.
    Username is your full email address
    Password is the same password used to access webmail.
    Enter the following outgoing mail server information:
    Outgoing Mail (SMTP) Server - Requires SSL
    Server: smtp.mail.yahoo.com
    Port: 465 or 587
    Requires SSL: Yes
    Requires authentication: Yes
    Username is your full email address
    Password is the same password used to access webmail. It may have been entered for you.
    Tap Next.
    The iPhone will establish an SSL connection to your IMAP and SMTP servers.
    That’s all!

  • OS X 10.6.6-gestures for pinch to zoom or expand do not work.

    Just installed Firefox 4 RC 1 and noticed that the pinch to open or close (zoom/expand) do not work. I can use other gestures (like swiping three fingers to move back or forward, but no luck with the pinch to zoom or expand. Keyboard shortcuts for this function work fine (command +/-).

    Funcionó para mi
    It worked for me

  • URGENT: Sorry, Expander will not work without the Stuffit Engine...

    hallo,
    I want to watch a show of myself on Time Warner Cable TODAY live ONLINE while being in Europe, so it is urgent:
    sometimes when I try to install a software I get the following error message:
    'Sorry, Expander will not work without the Stuffit Engine. Please reinstall the original installer.'
    Just now I wanted to install 'Windows Media Player 9 for Mac OS X' and got that error message. Any suggestions?
    THANKS YOU!
    1 GHz PowerPC G4 (3.3)   Mac OS X (10.4.7)  

    "Any suggestions? "
    Obviously you need to reinstall Stuffit Expander. Download it from Stuffit.com.
    Also, forget about Windows Media Player. It's out dated, and not even made anymore. Download the free Flip4Mac QuickTime plugin from Flip4Mac.com
    Hope that was urgent enough...

  • Why String Search in not working in ADF.?

    Hi,
        I've created application in ADF with Search Options. Search Operation is working for all the Integer Values in that page but its not working for String Values.
    I dont know why its not able to search String Values.
    My AppModule bean Code :
                    package model.portfolio.portfolio.am;
    import model.portfolio.portfolio.am.common.PortfolioAppModuleAM;
    import model.portfolio.portfolio.view.ResourceViewChildObjImpl;
    import oracle.jbo.VariableValueManager;
    import oracle.jbo.ViewCriteria;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    public class PortfolioAppModuleAMImpl extends ApplicationModuleImpl implements PortfolioAppModuleAM {
         * This is the default constructor (do not remove).
        public PortfolioAppModuleAMImpl() {
        public void applyVCforGlobalSearchPortfolios(String theString){
            ViewObjectImpl vo = getPortfolio1();
            ViewCriteria vc = vo.getViewCriteria("PortfolioVOCriteria");
            System.out.println("On Criteria");
            vc.resetCriteria();
            VariableValueManager vvm = vc.ensureVariableManager();
            System.out.println("On String");
            vvm.setVariableValue("globalSearchString", theString);
            System.out.println("After String");
            vo.applyViewCriteria(vc,true);
            vo.executeQuery();
    *All Getters and Setter of all VO and VLs****
    My Query created in View Criteria :
    ( (UPPER(SHORTNAME) LIKE UPPER( :globalSearchString || '%') ) OR (UPPER(DESCRIPTION) LIKE UPPER( :globalSearchString || '%') ) AND (PROGRAMMES_COUNT = :globalSearchString ) OR (KK_COUNT = :globalSearchString ) OR (KPI_KRA_VALUE = :globalSearchString ) )
    One more interesting thing in After Creating the View Criteria If i try to Test this Query, Its giving me error msg as
    "Cannot complete query to determine the view attributes.  Either the query is invalid or timeout occurs.  Please revise the query or create the view attributes manually.
    "com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':globalSearchString || '%') ) OR (UPPER(QRSLT.DESCRIPTION) LIKE UPPER( :globalSe' at line 1"
    I don know why... Can somebody please help me?
    Im using Jdev 12C

    Binding variables will be different from oracle database and My Sql database.
    Oracle database use this (:) for defining bindVariable but in My Sql use this (?)
    Try to remove the view criteria which you define in View Object and you can make it programmatically like this:
        ViewObject vo = getPortfolio1();
        ViewCriteria vc = vo.createViewCriteria();
        ViewCriteriaRow vcr = vc.createViewCriteriaRow();
        vcr.setAttribute("Attribute1", value);
        vcr.setAttribute("Attribute2", value);
        vc.add(vcr);
        vo.applyViewCriteria(vc);
        vo.executeQuery();

  • My Time Capsule has stopped working.  Restoring default settings does not work.

    I have a 2TB Time Capsule (Model No. A1409).  I think that it is approximately 20 months old.  It has been working very well until around two months ago, when it began to display the flashing amber light.  At that time I performed a hard reset, restoring the default settings.  This worked and the capsule continued backing up perfectly for a further three weeks.  However, about three weeks back the flashing amber light returned.  As I have been busy elsewhere I was not able to attend to this untl recently.  It does not seem to matter how many times I reset the device, I cannot return it to a working state.
    The capsule has previously been set up to connect to the internet through my existing broadband service.  As such, it was initially set up and subsequently restored wirelessly.  I no longer seem to be able to achieve this.  Has anybody else experienced similar difficulties and if so, were you able to remedy it.
    Grateful for any advice.  I feel another trip to the Genius Bar coming on.

    Yeah absolutely - no problem.
    I had the same thing happen where I did a restore on my personal TimeCapsule (TC),
    and when I updated the device after installing it, it for some reason set the TC into bridged mode shutting off DHCP/NAT service.
    Which means, that it doesn't reserve an IP for any client trying to attach. This is what it sounds like yours is doing.
    So if you see that it says bridged, and that box with dhcp reservation is greyed out, change it from bridged to DHCP/NAT.
    This will allow any client (computer/device) to attach and reserve an IP address for access to the internet.
    Once that is set, and you update, hopefully the light should go green.
    I would also recommend checking the "internet" tab, and making sure that your IP address is assigned using DHCP. (It probably is - but that part is essential for communication with your Internet Service Provider (ISP)...
    SO - if the device goes green after the update:
    If it does, then go back into the router and click on the wireless tab and confirm your wireless settings are correct, if any changes are made, update.
    At that point, you should be able unplug your laptop to wirelessly connect to the router.

  • DBsequence not working in ADF app

    HI All
    I am using Jdeveloper 11g release 2 (11.1.2.3.0) and Oracle DB.
    I have created an entity object and set the type of the filed as DBseequence but forgot to insert the sequence+trigger in the database for the table from which it was created.
    I have also created a view object for this EO, and through the app module have used it i a page.
    Clearly the submit and/or commit were not working because of the missing seq+trigger.
    I created the seq + trigger on the db, everything works fine if I insert a record from the db, and the id is generated as it should.
    When i try to do the same from ADF (tried from the page and from the model tester) i get the following error : (oracle.jbo.AttrValException) JBO-27014: Attribute Invoiceid in Invoices is required.
    It seems that the fact that there is a sequence to generate the id is not recognized.
    Any ideas?
    Thank you

    Or you use the groovy approach which doesn't need the db trigger and is easy to implement.
    Check out http://tompeez.wordpress.com/2011/09/02/using-groovy-expression-to-set-a-primary-key-with-a-sequence-number/
    Timo

  • How to get rid of text in bookmark toolbar? the default reset will not work

    my bookmark toolbar has changed. I clicked on default reset so just icons show but it will not work. can not get rid of text.

    The Bookmarks Toolbar, by default, shows both icons and text. Here is an Add-on that will allow you to show only the icons.
    *'''''Roomy Bookmarks Toolbar''''': https://addons.mozilla.org/en-US/firefox/addon/roomy-bookmarks-toolbar/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • HP Pavilion tx2500z - Default Function Keys not working

    I have a HP Pavilion tx2500z (model: KD436AV) laptop with Windows 7 64 bit OS installed. Since last few months, I am not able to use default function keys (F1, F2...F12) and other keys at the top row of the keyboard, including Pg Up, Pg Down, Home, End, Insert, Delete. However, all the Action Keys available on these keys are working without pressing Fn Key (e.g. Sleep, Brightness, num lock etc). I get same Action Key behaviour even after pressing Fn Key.
    It looks like, somehow system is locked in action key mode and I am not able to come out of it. I tried to upgrade Bios (currently on latest F.0F version) and also tried to disable the Action Key mode in BIOS, but Action Key mode is not available in BIOS of this computer. Even to enter BIOS, I faced problem because F10 key was not working to enter BIOS setup. I had to connect external keyboard to enter BIOS.
    I am disperately looking for help to come out of this situation. Any help will be greatly appreciated.
    Thanks in advance.

    Hello,
    An idea for you would be to test the keyboard in a different enviroment ro see if it's hardware or not.
    We can check the keys by booting into the recovery partition and opening a command prompt.
    Power down notebook
    Press power button then tap F11 until the screen says recovery at the bottom left or says Windows is Loading files. If it shows a different menu on your screen you may have press it too late or continues to load Windows you may have an issue w/ the partition.
    Next when it loads into the menu choose an option so the program is slected. I select "System Recovery" then at the next menu press FN+SHIFT+D
    At the commpand prompt window that pops up test the keys w/ issues.
    I am an HP employee.
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.

  • Af:tree control expand is not working

    Hi all ,
    af:tree control expansion is not working if I click on the + sign. But it is working thru context menu "Expand All Below" option.
    Can any one help me.
    Thanks
    Kristi
    Message was edited by:
    Kristi(user576892)

    Hi,
    not with this little information
    - which technology
    - which browser version (if applicable)
    - how to reproduce
    - does it reproduce on other machines / browsers
    Frank

  • Tray Expand button not working

    Dear Expert,
    After the SPS upgrade of SP 21 for java stack, I am facing a issue of Expand button of the tray is not working for the iviews which contain dynamic information such as BI reports etc., Please help me out in this issue
    Regards
    Noel

    Hi Noel,
    The expand button / the tray UI element can be a Webdyn Pro Java Component.
    This does not have to be a iview tray.
    Are you using the BI iView in a separate Portal or are you using Portal Federation ?
    If you have 2 portals, what is the second portal version ?
    Regards,
    Kai

  • Expand all not working for me

    I have no clue on this and it sucks. Can anybody tell me why
    my expandAll() call does not work. It does not expand the nodes.
    Here is my code. The ADG is created in actionscript and then
    grouping is applied to create hierarchical data. The last three
    lines of the following code are where I call expandAll... after
    validateNow too.
    [CODE]var oneColumn:AdvancedDataGridColumn = new
    AdvancedDataGridColumn("FRONTS: ("+firstsFronts.length+")");
    var twoColumn:AdvancedDataGridColumn = new
    AdvancedDataGridColumn("#");
    var threeColumn:AdvancedDataGridColumn = new
    AdvancedDataGridColumn("%");
    oneColumn.width = 120;
    twoColumn.width = 35;
    threeColumn.width = 45;
    oneColumn.sortable = false;
    twoColumn.sortable = false;
    threeColumn.sortable = false;
    oneColumn.dataField = "FRONT";
    twoColumn.dataField = "theCount";
    threeColumn.dataField = "thePercentage";
    //twoColumn.width = 20;
    indPersonnelDataGridFronts.columns =
    [oneColumn,twoColumn,threeColumn];
    var groupingColl:GroupingCollection = new
    GroupingCollection();
    var groupingGroup:Grouping = new Grouping();
    groupingColl.source = firstsFronts;
    var myFieldGroup:GroupingField = new GroupingField("FRONT");
    groupingGroup.fields = [myFieldGroup];
    groupingColl.grouping = groupingGroup;
    var sr:SummaryRow = new SummaryRow();
    var sf:SummaryField = new SummaryField();
    sf.dataField = "FRONT";
    sf.operation = "COUNT";
    sf.label = "theCount";
    sr.fields = [sf];
    sr.summaryPlacement = "group";
    //myFieldGroup.summaries = [sr];
    var srP:SummaryRow = new SummaryRow();
    var sfP:SummaryField = new SummaryField();
    sfP.dataField = "FRONT";
    sfP.summaryFunction = calcPercentage;
    sfP.operation = "COUNT";
    sfP.label = "thePercentage";
    srP.fields = [sfP];
    srP.summaryPlacement = "group";
    myFieldGroup.summaries = [sr, srP];
    groupingColl.refresh();
    indPersonnelDataGridFronts.dataProvider = groupingColl;
    indPersonnelDataGridFronts.validateNow();
    indPersonnelDataGridFronts.expandAll();[/CODE]

    Thank You Barbara.  I knew it was operator error.
    David
    On Fri, Oct 10, 2014 at 6:10 PM, Barbara B. <[email protected]>

  • Expand/Collapse not working DataViewWebPart

    Hello,
    I'm having some difficulties with my DataViewWebPart page. The page shows the documents from a library. These documents are grouped by three collumns:
    - Klantnummer
    - InstallatieType
    - Map
    In SharePoint Designer i added these three collumns for sorting/grouping. When i choose "Expand" the whole list is expanded. But the Plus "+" and Min "-" signs are not working on my page. When i click on them the sign changes
    but nothing happends. (Collapsing works but not expanding)
    I can not expand these anymore.
    Hope you guys understand my story and know a way to fix this.

    Are you seeing any JavaScript errors?
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Default button behavior not working with melting group

    Hi,
    I just realize that the default button behavior, i.e. fill out form and press enter without clicking on the actual button, does not work if one or more input form elements are in a melting group. This is a bug, right? I'm using CE7.1 SP5.
    Regards,
    Kevin

    Hi Dharmi,
    I define a button as default, fill out the inputfields  and press enter on the last one. As soon as I put this one in a melting group and press enter, the action of the default button is not triggered anymore. I can press enter in another field which is not in a melting group and the form is submitted correctly.
    I just noticed that if the button is in a melting group (with or without an input field) it doesn't work either.
    Can you reproduce this behavior?
    Best regards,
    Kevin

  • Default timestamp is not working

    This is driving me crazy, it is such a trivial thing but i can't solve it.
    have a timestamp item (P10_date_created) uses sysdate as default value. Why the followng setting is not working when I press create in the form ? I kept getting ORA00904- date_created: invalid identifier. I know the column name date_created is a valid field.
    name:P10_date_created
    dipslay as :date picker (DD-MON-YY) I also tried text field
    source used: always, replacing any existing value in session state
    source type: database column
    source value or expression: date_created
    Under default:
    default value: to_char(sysdate'ddmonyy')
    default value type: pl/sql expression
    The process ithat handles create, upate,insert is a default process when the form was created.Please help, i need your keen eyes. Thanks
    wan

    Thank u so much the Andy.
    That upper case is making the error msg disappear. But it looks like the field is not populated with the default value at all. How do people make this to work with default value on timestamp using the form process. I am aware of the trigger option. Just need to learn new stuff.

Maybe you are looking for

  • How can I transfer contents of hard drive from one iMac to another,

    Hi I have two iMacs (older G3 CRT) both are running OSX 10.2.8. I want to copy the contents of the hard drive on iMac "A' to the hard drive of iMac "B". Can I do this,,, How can this be accomplished ??

  • IS IT POSSIBLE 2 BUILD A NEW XML FROM DAMAGED ITL? SAVE FERRIS

    OK. Here's my situation. I have an HP notebook running on VISTA. ITUNES version 8.1.1....... My computer shut off abruptly while I was running ITUNES and after I restarted it and started up Itunes, I got the damaged ITL message. No big deal, I still

  • Drag and Drop Files Onto Seagate External Hardrive

    I can't seem to just drag and drop files I want to store on an external hardrive with Seagate. I hate that. I just want a simple drag and drop so I can free up some space on my computer. But Seagate just seems to just seems to say **** you, we're gon

  • Authentication on Active Directory

    How can I force a Mac with Tiger OS to "remember" to be able to log in to an Active Directory domain after it's rebooted? I can set it, and log out of the administrator account, and then until it reboots I can authenticate against the AD, but when it

  • Generate dynamic reports using sql query and send via mail

    Can anyone provide me the links to dynamically generate the sql query based reports and send it to Mail. it should be called from the scheduler program using PL/SQL