How to get all children of root components

Jdev 11.1.1.7.0

I have a requirement where I need to disable all the entry / editable user interface components in the page at the click of a button.

I intend to make in the bean by getting the liaison of the outermost component layout and then using the method getChildren() for this UIComponent.

So for all the components of the user interface in the list, I'll put the disabled true property.

However, I am facing a challenge here. My page got several components of layout in it.

GetChildren() method would not search recursively for all user interface components (including inside other components of layout as panelgrouplayout).

Is there a way I can achieve this?

You can write a method that runs along the element tree by calling itself recursively as

// reset all the child uicomponentsprivate void resetValueInputItems(AdfFacesContext adfFacesContext,                                 UIComponent component){   List items = component.getChildren();   for ( UIComponent item : items ) {

       resetValueInputItems(adfFacesContext,item);

       if ( item instanceof RichInputText  ) {           RichInputText input = (RichInputText)item;           if ( !input.isDisabled() ) {               input.resetValue() ;               adfFacesContext.addPartialTarget(input);           };       } else if ( item instanceof RichInputDate ) {           RichInputDate input = (RichInputDate)item;           if ( !input.isDisabled() ) {               input.resetValue() ;               adfFacesContext.addPartialTarget(input);           };       }   }}

Timo

Tags: Java

Similar Questions

  • How to get all the icons on the desktop after installing xp

    After installation of xp only recycle bin makes its appearance. How to get all the other program on the desktop icons?

    Like internet explorer, my computer...

    Hello

    How to create a shortcut on the desktop?

    If the item is located in the start menu:

    1. click on start. The start menu appears.

    2 find the item that you want to create a shortcut. If the element is in a submenu of the menu, go to the submenu.

    3 right click on the element. A context menu is displayed.

    4. click on send to. A submenu appears.

    5. click on desktop (create shortcut). XP creates a shortcut to the item.

    _____________________________________________________________________________

    Here is the vista forums

    Try the xp forums at the below link for any other question of XP

    http://answers.Microsoft.com/en-us/Windows/default.aspx#tab=4

    Answers by topic

  • How to get all netwok available provider mode list & network to all providers in blackberry?

    Hello

    How to get all the list of available network provider & fashion network (2G or 3G) as all providers in blackberry?

    I read class RadioInfo he methods getNumberOfNetworks() y & getNetworkName() help I got from the available networks list but still not get all providers network mode.

    Any body knows then please help me

    Is it possible or not in Blackberry please tell me...

    Please see this link
    http://supportforums.BlackBerry.com/T5/Java-development/how-to-find-frequency-band-of-cureent-networ...

  • How to get all the fonts in the paragraph?

    Hi all

    Especially in Indesign Javascript list how to get all the fonts section (without a loop in each character).  For example, I used "Minion Pro" to the first character and all other characters are "Zapf Dingbats" fonts. I use code below to get the paragraph font. But it shows only first typeface. If multiple fonts are used for including the paragraph then I need all the list fonts or result "undefined".

    var myPara = app.selection [0] .paragraphs [0];

    Alert (myPara.appliedFont.FontFamily);

    Thank you and best regards,

    Robert S

    var myPara = app.selection [0] .paragraphs [0];

    Alert (myPara.textStyleRanges.everyItem (.appliedFont));

  • How to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scripts

    @

    How to get everyone how to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scriptingstyle and their policies of an indesign file and write all the info with info para in a txt file with scripts

    Hello

    Try this,

    var doc = app.activeDocument,
        pstyles = doc.allParagraphStyles,
        report = "";
    for(var i =0;i
    

    Kind regards

    Cognet

  • How to get all the users of the IOM, whose field Manager is not null or empty

    Hello world

    How to get all the users of the IOM, whose field Manager is not null or empty (using java code)

    Thank you

    Published by: user11205212 on January 18, 2010 12:38 AM

    Hey beginner,.

    I come to write this line where he can put his sql query... in the next post I provided the example sql also...

    Concerning
    VM

    Published by: user12280771 on January 18, 2010 22:11

  • BlackBerry Smartphones home screen: how to get all emails to a folder?

    I must be looking too hard for what should be a simple answer, there are currently 3 icons on the homescreen different email, one for each email address I have.  (this does not include my sms & icons FB msg)  How can I get all the emails to go to a single rather than a separate icon for each folder?

    Thank you

    Dave in State of WA

    Hi and welcome to the Forums!

    If your device OS has the possibility, you can dictate what shows in Messages:

    • Home screen > Messages > > Options > (main Message list settings) (settings of the Inbox) or > check / uncheck what you want to see the/remove messages

    You will always have the secondary icons, but you can hide them and manage simply all email through the main Messages app.

    Good luck!

  • How to get all parents of tree node to select

    I have a tree, and when the user clicks on an item in the tree, I want to get all the parents of the selectedItem node.

    So, if I have this XML:

    < Products >
    < item >
    < code > 1001 < / sku >
    < value = "100" / >
    < / point >
    < item >
    < code > 2001 < / sku >
    < value = "250" / >
    < / point >
    < item >
    < code > 3001 < / sku >
    < value = "300" / >
    < / point >
    < / product >

    If the user clicks on the sku 1001, I want to get something like this:

    < Products > < point > < sku >

    Also, if I have a custom component, possibly based on the tree or maybe not, and if this custom component shows the XML real and used can click XML elements or attributes XML, how to use the selected item to get the parent nodes, so if they click the value = "100", I get this:

    < Products > < point > < sku > < quantity >

    I need this because I have a set of fields, and users will drag their attributes or elements of XML node in my fields to define a mapping between the XML and my fields.

    The selectedItem is just a snippet of XML code cut off from its source XMLListCollection and I might be able to search the XMLListCollection, but that if there were say < code > items to more than one level in the XML? I'm guessing that a search may return several hits for a selected item, when I want the real parent to the actual selected node nodes.

    Thank you very much!

    [path of the var: Array =]

    var parent: XML = xxxx.selectedItem.parent)

    {while (parent)}

    Path.push (parent. LocalName())

    parent = parent.parent)

    }

    Or, I don't have your question and xxxx.selectedItem is 'detached' extract XML code?

  • How to get all the names a table display

    Hi all
    I try to get the names of all the points of view of a table. I tried to use the user_views table, but there is no column by specifying the name of the table.
    Is someone can you please tell me how I can get all the names display in a table.

    Thank you

    You will need to join with USER_VIEWS USER_DEPENDENCIES for the list of dependent views on a particular table.

  • How to get all the SMS messages?

    Hi all

    I want to get all the SMS messages in my application, but I can only find the API to get the mails.

    I have search the Forum and know the method of listening to SMS messages, but not to get all SMS messages in the Inbox.

    Can someone help me? Thank you.

    I'm afraid you cannot access the SMS Inbox and not either, you can manipulate the messages as soon as they reach the Inbox.
    However, as you already mentioned, you can listen to them on their way to the Inbox.

  • How to get * all * Contacts

    I have a very useful sample application called "address book", which uses the ContactService API to enter contacts and their details, and display them in a list. The problem is, showing contacts that there is only a small fraction of all my contacts. It seems that everyone on Facebook, for example, more appear in this list.

    Is there a way to really get all the contacts, equivalent to the list in the application Contacts BB10?

    The current answer is no, see Paul's response in this thread...

    http://supportforums.BlackBerry.com/T5/native-development/search-contacts/m-p/2772393/highlight/true...

  • How to get all the contacts in the group through the loop

    Hello world

    I know the name of grop, the address book,.

    How to loop all of the contacts in the Group and count them?

    I find the solution.

    Use BlackBerryContactGroup.getContact ();

  • In bulk API - how to get all contacts that when, in a specific campaign

    Hello

    I am trying to retrieve all contacts only when a specific campaign ID.

    I looked in most activities of the api and it seems that I can not filter the results according to the type of activity: entry campaign.

    Basically what I tried and succeeded is to get all the contacts that are in a specific activity as "EmailOpen" type and a specific campaignid.

    but I need to extract the results of entry of campaign activity.

    is there a way to do this using the API as a whole?

    If this isn't the case, I can do it using a different api? or by creating a segment / list based on the entrance to the campaign activity?

    10 x,

    Eliram

    In bulk API will give you feature dataset and data activity (ver 2). Entry into a campaign is not an activity that the contact is made, but it is rather something that you do everything for them - so therefore, that is not a valid activity to expect from the bulk API.

    This information is available through REST:

    GET https://secure.eloqua.com/API/REST/2.0/data/report/7?count=400&page=1&assetId=42&startAt=1414532956&endAt=1415742956

    It is used in the operational report "Entry campaign report" under the active campaign options menu. Like all OTHER calls, number of max is 1000. That would be 1 call of the API by campaign, by 1000 responses. Slots are at the time Unix.

  • How to get all of the mappings from an interface in excellent sheet

    Hi all


    My requirement is to get all the mappings of an interface in excellent sheet. Is there any out of the box application for the information in excel worksheet if it is there any ODI SDK to get the mappings as well as we have a writing a java class to implement the functionality.


    appreciate your help, thanks in advance.


    Gael K

    07702262888

    [email protected]

    Hi GG,.

    I agree with Saran, you can create a normal display and the display in the package of odiSQLUnload tool you can fill data in excel sheet

    Try this

    Kind regards

    Phanikanth

  • ADF: How to get all rowKeys for the table displayed in the page

    Hello

    I have table "COMPANY" where the 'COMPANY_ID' column is the primary key. I created a page simple jspx with:

    (1) a text entry to accept new IDs of company

    (2) Insert button.

    (3) af:table which displays all available in "SOCIETY" company ID

    When the user tries to enter a company code that is already present in the table I want to compare with the keys of the row of the table displayed below and if it's an already existing, I would like to send a friendly message for the user and put an end to the movement.

    So, how to extract all line keys to compare?

    Thanks in advance.

    Here's a way to check if you use the OperationBinding exception class:

    operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ()) {}

    There is an error

    List errors = operationBinding.getErrors ();

    Browse the list of hollow and see if there is an exception of your restrictions

    }

Maybe you are looking for

  • Search feature of iTunes is defective

    Hi iTunes,. I tried looking for "for you" and "for you coldplay", but none of these research gave me the correct result. Manually, I had to go through all the albums from Coldplay to find the song. The song is in the album "shiver", and the song "For

  • Satellite A60-302: black and white photo on TV

    Help I have connected my Satellite A60-302 to my TV using brand also SCART S-VIDEO AND TWIN PHONO LICENSE that I bought from maplins. Transfers of image and sound on TV when I press Fn + F5 buttons but the image is in black and white, the sound is ok

  • HP offers an unlocked bios for laptops of entertainment?

    Model is a portable 3240 ca dv6 entertainment. BIOS is up to date with v. f.29. The parameters are super limted. About the only thng that it offers is USB boot option and scanning equipment. My other laptop, a probook 4510 s has a much more dynamic b

  • Blackberry enterprise server configuration will not accept the connection.

    Original title: remote terminal BlackBerry or resource will not accept connection Blackberry enterprise server configuration

  • Understand user accounts in Windows XP

    I created 2 accounts, one for me and one for my wife. When I look on the c: drive I see the name of my wife, but not mine. On the contrary, it seems that mine is listed as HP_Owner. Why does say HP_Owner and not my name?  Can I change my name?