Search for an item in the TaskFlow region

Hi all

Jdev version: 11.1.1.6

I found a lot of code to search for a component, using FacesContext, events etc...

But in my case it is not working.

Scenario:

Home.JSPX
< f: view >
< af:document id = "d1" title = "Proposal to create" >
< af:form id = "f1" >
< af:region value = "#{bindings.taskflowdefinition1.regionModel}" id = "r1" / > "
< / af:form >
< / af:document >
< / f: view >

* taskFlowId="/WEB-INF/uw-createProposal-task-flow.xml#task-flow-definition»

Takflow Pages:

Page1.JSFF

"< af:pageTemplate viewId="/Template/CreateProposalTemplate.jspx " id ="pt1" >
< f: facet name = "header" >
...........
< / f: facet >
< f: facet = 'body' name >
< af:commandButton >
< af:showPopupBehaviour popupid = "parentPopup" >
< / af:commandButton >

< af:table id = "tb1" >
< / af:table >

< af:popup id = "parentPopup" >
< af:commandButton >
< af:showPopupBehaviour popupid = "childPopup" >
< / af:commandButton >
< / af:popup >

< af:popup id = "childPopup" >
< af:commandButton actionListener = "{AddInsuranceListener.execute}" / > "
< / af:popup >
< / f: facet >
< / af:pageTemplate >

AddInsuranceListener.java

Execute()
{
RichRegion a_richRegion = a_facesContext.getViewRoot ().findComponent("*r1*") (RichRegion);
RichPageTemplate a_richTemplate = (RichPageTemplate) a_richRegion.findComponent("*pt1*");
RicheTableau a_richTable = (richeTableau) a_richTemplate.findComponent("*tb1*");

SOP ('table' + a_richTable) / / output: richeTableau = tb1 id

}

I can able to find the Table action event (tb1) child popup. But I need region id, id proof.
Substitute any other way is there to avoid the region to find and exculpatory.

UIComponet root = FacesContext.getCurrentInstance.getViewRoot ();
root.findComponet ("tb1"); this does not

Am I following the correct path. Please suggest how to achieve? also provide some documents to follow.

Please come back if you need clarification.

Thank you
-Christian

Hello

the command button is in a fragment of the page, you can perform a search. In your actionListener, you receive the actionEvent object from

RichCommandButton button = (RichCommandButton) actionEvent.getUIComponent();
RichPopup popup = button.getParent();
RichTable table = (RichTable) popup.findComponent("tb1");
...

You will use only research absolute when the search is started from the parent page. If you are looking for relative

Frank

Tags: Java

Similar Questions

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

  • How can I tell the mail client to search for new mail on the server?

    How can I tell the mail client to search for new mail on the server?

    Within the Mail app and display the Inbox you can pull down on the list of e-mail using your finger and you should see a small reel spinning gear. Which indicates that his check new email.

    You can also go into the settings of e-mail and calendars Contacts and view the settings there. Examine the settings of "search for new data. If the Push is enabled, then messages will be pushed to you if the email provider supports this feature. You can also set your accounts to use Fetch and set the frequency, he's going to go out and look for new e-mail messages.

  • I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...

  • Windows cannot find C:\WINDOWS\system32\rundll.exe. Make sure you typed the name correstly and then try again. To search for a file check the Start button and then click search.

    I tried to launch my Spysweeper and found that is not there, then I re downloaded and I could not install it because it was already on my computer.  I went to the control panel to remove and got the message:

    Windows cannot find C:\WINDOWS\system32\rundll32.exe.  Make sure you typed the name correctly and then try again.  To search for a file, select the Start button and then check the search...

    What should I do?

    Hi gsrow,

    You can go there!

    Cannot find the Rundll32.exe file when you open the control panel:
    http://support.Microsoft.com/kb/812340

    Alternatively, copy the folder C:\Windows\System32\DllCache Rundll32.exe file to the System32 folder. Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • When you search for available updates on the update site, I receive the 0x800A0046 error.

    HELP 0X800A0046

    How to ask a question
    http://support.Microsoft.com/kb/555375 >

    It helps those answering questions if you provide:

    What is your full version of windows (32-bit or 64-bit) and service pack level. (Right-click on my computer and select properties: Windows version which is displayed on the general tab that results (for example, Windows XP Professional Service Pack 1;)) Windows Vista Edition SP2 family)?

    You use what browser (exact version).

    What application anti-virus or security suite is installed and your current subscription?

    A 3rd party firewall is used instead the native Windows Firewall?

    What other software products anti-malware are installed and running?

    What updates you trying to install? (Number of KB)

    Please do it in your next reply.

    Information you provide will help someone to provide you with a relevant solution

    What are the causes of error 0x800a0046

    0x800a0046.html http://www.updatexp.com/>

    -

    December 16, 2005 when looking for updates available on the update site, you receive the 0x800A0046 error.

    http://update.Microsoft.com/windowsupdate/v6/showarticle.aspx?articleid=20&LN=EN>

    - -- ---

    February 7, 2006 error message when you visit the Windows Update Web site or the Microsoft Update Web site:

    "0x800A0046".

    http://support.Microsoft.com/kb/910338/en-us>

    --

    July 2, 2010, you may receive an error message when you search for available updates on the Windows Update Web site or on the Microsoft Update Web site

    http://support.Microsoft.com/?kbid=883821>

    In most situations where the automatic updates and the system restore does not work, the usual causes are installed antivirus\security suite or malware.

    run a CHKDSK followed by a defrag after anti-malware analysis good or two.

    I recommend to download and install MalwareBytes' anti-malware (MBAM) and SUPERAntiSpyware (SAS).

    Do a FULL scan with MalwareBytes' and SUPERAntiSpyware.

    <>>

    http://www.Malwarebytes.org/MBAM.php

    Reset

    <>>

    http://www.SUPERAntiSpyware.com/

    Reset

    UTC/GMT is 02:23 on Saturday, February 25, 2012

  • Search for files by using the Start button

    I've lost the ability to search for files by using the Start button.  I can enter a file name, but always get a response "nothing found".  I know I did something back a couple of weeks, but don't know what I did to turn it off. Help!

    Thank you!

    Take a look at my search installation tips.  If you are in these settings, you can make sure search is enabled and if necessary you can use the 'reconstruction' of the for button to rebuild your search system.

    http://Skeene.NET/tech/boost-Windows-search-in-two-steps/

    Also, there is an automated troubleshooting tool that tries to find and fix any problems with your search system.  You can go for it here:

    http://support.Microsoft.com/mats/windows_search/

  • Search for blackBerry Smartphones Addressbook - the function "search".

    "Find" my address book function does not work.  I have a 1000 contacts and anything (that) I'm trying to look upwards until it says * no. addresses *.

    I checked the filter function and nothing is selected.  Any thoughts?

    Thank you

    Richard256

    Hello Richard,.

    You can try to reset the device by removing the battery for 30 seconds, then replace it. After restarting the device, try to search for a person in the address book.

  • My computer crashed and after the purchase of another, I used the Migration Wizard to copy all the files to the new computer.  Everything was going well until I tried to launch LR6.  It was two weeks ago and a search for many pages of the Adobe Web site. 

    My computer crashed and after the purchase of another, I used the Migration Wizard to copy all the files to the new computer.  Everything was going well until I tried to launch LR6.  It was two weeks ago and a search for many pages of the Adobe Web site.  I think I've exhausted all the remedies listed without success codes error A12E5 to questions cloud creative, Manager of Application and error 1: Configuration problems.  I'm ready to reformat my computer and try again with Time Machine.  Help would be greatly appreciated before I waste more time on this task. Any further suggestions?

    Migration of Mac with Time Machine WILL NOT WORK with the Adobe program activations due to hidden registration files

    Sign out of your account... Uninstall... to run vacuuming...

    -non-Cloud programs, to disable the service before uninstalling

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -using the vacuuming after uninstalling and before reinstalling is often necessary

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

    -Restart your computer... Sign in to your account... Reinstall

  • Ungroup a group and keep the scriptlabel for each item in the Group

    Hello

    does anyone know how to ungroup a group of rectangles with a certain tag (example groupA) give one every rectangle a clean label (the same text groupA)

    I can find the Group and ungroup it but I can't label the rectangles...

    var oPageItems = app.activeDocument.allPageItems;

    for (var j = oPageItems.length - 1;)  j > = 0; d-) {if (oPageItems [j] .label == ("groupA")) {oPageItems [j] .ungroup ()))}}

    ...???

    Help, please

    Hello

    front

    oPageItems [j] .ungroup ();

    go through the loop and set a label for each item within the Group:

    for (var k; k)< opageitems[j].length;="">

    oPageItems [j] [k] .label = "groupA";

    assuming that your oPageItems [j] is a group indeed.

    I hope that...

  • GroupDataModel how to search for an item and row

    Hi all!

    I have a problem with GroupDataModel.

    I create and fill out the template as below:

    
    m_model = new GroupDataModel(QStringList() << "displayName", this);
    ...
    QVariantMap entry;
    entry["contactId"] = QString::number(contact->getId());
    entry["displayName"] = contact->getDisplayName();
    entry["icon"] = contact->getSmallPhoto();
    
    m_model->insert(entry);
    

    After I cath some report like contactDeleted (int id) and want to remove the related item of the model:

    void ContactsViewModel::onContactDeleted(int id)
    {
      //QVariantList indexPath = m_model->lowerBound(QVariantList() << QString::number(id));
      //QVariantList indexPath = m_model->lowerBound(QVariantList() << id);
      //QVariantList indexPath = m_model->find(QVariantList() << QString::number(id));
      QVariantList indexPath = m_model->find(QVariantList() << id);
    
      if (!indexPath.isEmpty())
      {
        m_model->removeAt(indexPath);
      }
    }
    

    But model will always return row to the first article! I used and GroupDataModel::find and GroupDataModel::lowerBound, but result is still the same!

    Please help me, how can I find point correct?

    Hello

    My understanding of the documentation, it is possible to search only the fields that are in sortingKeys.

    I think that GroupDataModel is the construction of indexes on these areas.

    I did some tests:

    If displayName is present in sort keys:

        GroupDataModel *model = new GroupDataModel(QStringList() << "displayName", this);
    
        QVariantMap entry;
        entry["contactId"] = "100";
        entry["displayName"] = "Alex";
        entry["icon"] = "icon1.png";
        model->insert(entry);
    
        entry["contactId"] = "200";
        entry["displayName"] = "Andrew";
        entry["icon"] = "icon2.png";
        model->insert(entry);
    

    then by displayName will work correctly:

    QVariantList indexPath = model->find(QVariantList() << "Andrew");
    qDebug() << "indexPath" << indexPath << "\n";
    // this will print (QVariant(int, 0) ,  QVariant(int, 1) ) which is
    // section 0, item 1
    

    But research by contactId won't work, because it is not present in sortingKeys.

    If you add contactId to sortingKeys:

    GroupDataModel *model = new GroupDataModel(QStringList() << "displayName" << "contactId", this);
    

    then by searching only by displayName will no longer work. Find() maps values to keys, it will only return entries with empty contactId. But lowerBound() can be used instead:

    QVariantList indexPath = model->lowerBound(QVariantList() << "Andrew");
    qDebug() << "indexPath" << indexPath << "\n";
    // this will return:
    // indexPath (QVariant(int, 0) ,  QVariant(int, 1) )
    

    Please note that the lowerBound is not a complete replacement for find. It returns a suggested for element insertion index. So if she is unable to find a match, it will return (0, 0) like suggested insertion point, but not a row empty.

    When you have multiple sort keys the code depending on type of work to find a name:

        GroupDataModel *model = new GroupDataModel(QStringList() << "displayName" << "contactId", this);
    
        QVariantMap matchMap;
        //matchMap["contactId"] = "200";
        matchMap["displayName"] = "Andrew";
        QVariantList indexPath = model->lowerBound(matchMap);
        qDebug() << "indexPath" << indexPath << "\n";
    

    But if the name is not found lowerBound will return (0, 0) - a proposed insertion point. Is not possible to differentiate the value of return "not found".

    But if you try to provide a contactId

        matchMap["contactId"] = "200";
        //matchMap["displayName"] = "Andrew";
    

    It will not work, because it searches in the order in which the sortingKeys have been reported.

    In this case, it will try to 'empty' QVariant DisplayName of match, find nothing and will be (0, 0) return as insertion point proposed without even trying to match contactId-s.

    The find() function is not appropriate as well because it performs the exact match on all fields and requires that all sortingKeys to be defined.

    I hope I have not confused you completely now!

    So, the conclusion seems to be:

    Find() cannot find an exact match and compared all the keys of the supplied with keys in sortingKeys. If values are omitted it is expected that they are NULL in the model.

    lowerBound() returns a suggested insertion or (0, 0) point, if nothing has been put in correspondence. He compares the values passed to it with the sort of keys from left to right (if the first sortingKey did not match it does not compare).

    If these methods are not well suited for finding a specific key value. A possible workaround is an iteration model entries manually and by comparing their values, but it's slow.

    I suggest to create your own datamodel by inheriting from the class DataModel. It is not very difficult, and you can implement any kind of search in there.

  • Search for Windows 7 and the button of level a top

    I tried something and found the file I am looking. I want to delete this folder (and not only its contents) and perhaps other things in its parent. Anywho, I click on this file the research and then try to go to the top. First instinct, button up. Well this isn't here, it's just old habit. Expect the little whole bread crumbs. Only brings me back to my research... why I want to get back to my research if I found what I'm looking for.

    Good, well maybe I'm missing something. * click * Search right up to a level or something. Nada. The only way that I can know where I am is by clicking on a file then go to its properties.

    Sorry, but that's all just bad design. I'll admit that maybe miss me something again, please someone help me.

    Hello

    When you search for a file or folder in Windows Explorer, the path to the location of each result must be shown just below found the folder or file. Here is a screenshot.

    http://i196.Photobucket.com/albums/aa86/rvmv/searchresults.PNG

    If you have points of view icon selected, click on the change your view drop-down menu in the top-right of the window, and then select display list, details, tiles or content (the screenshot has selected content).

    Research is a stand-alone that creates a virtual folder that displays the results. There is no part of the folder hierarchy, unless you save the search.

    If you click one of the results and select the location of the open folder, it will take you to the folder where the item.

    To navigate from in any particular file:

    To go to the TOP, press Alt + up arrow.

    To display the path to your current location, click on an empty spot in the address bar.

    Click the arrow to the right of any folder in the address bar and the Parent folder appears in bold text.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Search for an item of film in a folder item?

    How to find a film element that can be in a folder item?

    for example: I have a model as the first item in my project Panel, then I have a folder containing the three elements of film that belong to this model below.

    in my script, I want to create a variable to store an element of particular film called "background". Although I don't know how to search for it if its content in a folder (named "images").

    can someone pleease help a beginner

    Thank you

    Sam

    Like this:

    var myFootage = null;

    for (var i = 1; i)<= app.project.numitems;="">

    If ((app.project.item (i) instanceof FootageItem) & (app.project.item (i) .name == 'background')) {}

    If (app.project.item (i).parentFolder.name == "footage") {}

    myFootage = app.project.item (i);

    break;

    }

    }

    }

    at this point the myFootage is either your images in background, or null if not found

    Dan

  • Search for and change all the bug after his conversion to Authorware 7

    A few months ago, we went from Authorware 6.5 to Authorware 7

    I have problems with a 6.5 converted to Authorware 7.0 file. I tried to convert the file again after the first compact 6.5 file. I tried it again after the Authorware 7.02 update, but still the same problem.

    The bug affects "search".

    If I get " : " and replace everything by ": " 

    i.e. get cites two spaces OR and replace by quote single space OR

    There is no problem of search and replace in 6.5, but version 7 search text 16 characters to the right of the correct text, it is not change because it would produce a syntax error.

    Using 'Find in calculation' correctly identifies the first occurrence of

    quote two spaces OR

    Another example, if I get a variable named Mode, the first, several items are correctly identified, but ultimately it incorrectly highlights text.

    I tried in both XP & Vista, with similar results. Obviously, editing is a nightmare, because of global change, I now by clicking next several times, check that the correct text has been detected before the election change the code.

    I copied and pasted the calculation containing cites two spaces OR, a spreadsheet Excel and got the Ascii code all 9000 characters. The lowest recorded value is 32, half, I expect a non-display less than 32 character could be the cause of the error.

    Could find no mention of this error on the forum, I contacted Adobe. They kept me 15 days pending then lift the query at a higher level. For two months, they have ignored every week queries asking what was going on.

    This was their response, if any.

    Monday, November 30, 2009 1:34:07 AM PST
    Hello Tom,

    Thank you for providing your information.

    We wish to inform you that there is something on the text in the
    calculation, as saved from Authorware 6.5, which is not Authorware 7
    as. The only way I found to stop this is to cut and rebonding of
    calculation script in Authorware 7. You may need to check that
    the find command is highlighted before you apply the changes, and when he sees a
    problem like that, you have to copy / paste for this calculation. We
    were afraid of us can't see another way to stop this, and like Authorware's
    is not developed, there is no engineering team we can point to.

    For additional assistance, please contact us at the Support Web Portal:
    www.Adobe.com/support or you can use the following on support options
    the Adobe Web site:

    * The user-to-User Forums where you can enter your problem or
    desire to see if another user of Adobe can offer advice. Access to this
    resource address www.adobeforums.com.

    * The Support Knowledgebase, which contains solutions to problems

    that occur on the assumption of the operating systems (<>) and products of <>).

    Thank you Adobe chossing.

    Abhishek

    I have never been a fan of Adobe, even before they took from Macromedia and abandoned Authorware. Their terrible support strengthens my opinion of them

    I asked Adobe if it is possible to convert in 6.5 (but no answer).

    Any suggestions?

    Looks like you have found the solution that could make the search and replace works for good. "Diving code", I mentioned at the top of the queue showme is a calc that is attached to the card. Open one of the showme files and double-click the = at the top left of the map at the top of the page. You can only paste a calc icon in your file. I'm not sure that your solution works for every situation... for instance if you replace the SPACE BACK by RETURN, then he could not correct the problem, if there are lines with several spaces at the end... Here again - maybe using GetCalc and SetCalc will be Authorware re - compile the Calc and fix the problems of every search and replace.

    Mike

  • Can I search for a word in the description of a bookmark?

    When I add a bookmark, I often add a description.
    Another reason why a lot of my favorites are the descriptions is that I am an old user of delicious and I imported these bookmarks in Firefox.
    So I would like to search for words that I wrote in the description, because the description is often more significant than the label, the name or the URL.
    But unfortunately Firefox does not resemble the description during the search in bookmarks.
    Nor find any extension.

    A backup of bookmarks HTML includes descriptions, so you could open such a backup in a tab and use the search bar to search the page.

    You can make Firefox create an automatic HTML (bookmarks.html) backup when you exit Firefox, if you set the pref to true on the subject browser.bookmarks.autoExportHTML: config page.

    This backup is created by default in the profile as bookmarks.html folder whenever you close Firefox, but you can set the file name and the path through the pref browser.bookmarks.file on the topic: config page.

    The pref browser.bookmarks.file does not exist by default and you must create a new pref to string with the name browser.bookmarks.file and set the value to the full path of the file backup bookmarks including the name of the file.

Maybe you are looking for

  • StorE Alu2: two ports USB ports or not?

    Hi all I can't understand that the series of external hard drive StorE Alu2 takes 2 USB ports, to work or not.There are two exams in the Amazon saying it does:(OLE http://www.amazon.co.uk/gp/product/B00472861W/ref=s9_simh_gw_p147_d0_g147_i1?pf_rd_m=A

  • HP dv6500 can't type double letters

    My laptop HP 6500 (Windows Vista) not two of the same letter as WW or AA type or go back without waiting for 1 second. I checked the typematice and setting repeat and they are ok. Anyone got any ideas how to solve this problem?

  • streaks on photo montage full page

    Photosmart Premium C410 Windows 7 64 bit NO. NO. Streaks in collages

  • NAT for DVR Config question

    Hai all, New to Cisco IAM, I have a Cisco 2811 router with 2 ethernet ports: Here is my config: 2-port ethernet on my router 1 port 0/0 directly connected to the ISP link WAN IP is configured as 122.183.1xx.6 ip and the gateway is 122.183.1xx.5 1 por

  • Reviews of Smartphones blackBerry Gmail message

    Hello, I have two gmail accounts on my bb 8520, but I can't see the old messages show me only those 24 hours.I looked in the options, but I can't find how. Can someone help me