How can I call a js function when my backing bean method has completed

I use JEV11G.here is the code:
< af:panelCollection id = "pc1" >
< f: facet = 'menus' name / >
< f: facet name = "toolbar" >
< af:toolbar id = "t1" >
< af:inputText id = "it1.
value="#{pageFlowScope.favoriteTreeMB.searchCriterium}"/ >
< af:commandButton text = 'Go' id = "cb1".
actionListener="#{pageFlowScope.favoriteTreeMB.searchTree}"/ >
< af:commandButton text = "Reset" id = "cb2".
actionListener="#{pageFlowScope.favoriteTreeMB.resetTree}"/ >
< / af:toolbar >
< / f: facet >
< name f: facet = 'bar of Θtat' / >
< af:tree value = "#{pageFlowScope.favoriteTreeMB.tree}" var = 'node' "
rowSelection = 'single' id = 'pt_t23 '.
Binding = "#{pageFlowScope.favoriteTreeMB.favTree} '"
partialTriggers =": cb1: cb2" > "

< f: facet name = "nodeStamp" >
< af:outputText value = "#{node.attributes ['Filename']}" "
rendered = "#{node.rendered}" / >
< / f: facet >
< / af:tree >
< / af:panelCollection >
< / f: facet >

The tree is refreshed, I just when pageFlowScope.favoriteTreeMB.searchTree is made or a js method will call.

The doc:

void addScript (javax.faces.context.FacesContext context, java.lang.String script)

Adds a script to run during rendering. >

So you can put the code somewhere and just call it.

Timo

Tags: Java

Similar Questions

  • How can I call a public function in a component to another component?

    I have two components: form and Confirmation.  Form is a Web and Confirmation is a TitleWindow.

    Form contains several controls and a "submit" button.  Confirmation contains an OK button.  When the user clicks on the button send, Confirmation is displayed above the form (the form is blurred).  When the user clicks OK on the Confirmation button, I want to perform a function on the form to set default values in controls.

    How can I address the function of the component in the form of Confirmation component so I can start the function?

    Thank you!

    Here is the source

    CustomForm.mxml

    http://www.Adobe.com/2006/mxml"width ="400"height ="300">

    public function callBack(): void {}

    lblStatus.text = "success";

    }

    ]]>

    label = "Submit" / >

    CustomTitle.mxml

    http://www.Adobe.com/2006/mxml '.

    layout = "absolute" width = "200" height = "80".

    showCloseButton = "true" closed = "closeMe (event)" "

    backgroundAlpha = "1".

    Color = "#173553" backgroundColor = "#EEEEEE."

    headerColors = «#FFFFFF, #CBCCCC»

    borderColor = "#666666" borderStyle = "solid" >

    Import mx.managers.PopUpManager;

    public var callBack: Function = new Function();

    private void closeMe(event: Event): void {}

    PopUpManager.removePopUp (this);

    callBack();

    }

    ]]>

    TitleWindowSample.mxml
    "" xmlns = "*".
    layout = "absolute".
    Width = "100%" height = "100%".
    creationComplete = "init ()" > "
    Import mx.managers.PopUpManager;
    private void init (): void {}
    customForm.submit.addEventListener (MouseEvent.CLICK, onMouseClick);
    }
    private void onMouseClick(event: MouseEvent): void {}
    customForm.lblStatus.text = "";
    var customTitle: CustomTitle = new CustomTitle();
    customTitle.callBack = customForm.callBack;
    PopUpManager.addPopUp (customTitle, this);
    PopUpManager.centerPopUp (customTitle);
    }
    ]]>
    Width = "100%" height = "100%".
    verticalAlign = "middle" horizontalAlign = "center" >
  • How can I get the search function when I right click?

    I recently ran an update. Now, I don't have the function "search" when I right-click. I've used it widely and would really like the option to return. I had to uninstall certain things when I ran the update, because I didn't want the search engine or the toolbar that automatically installed with the update. How to bring back my right click search function?

    You are not yet on the most current version of Firefox and all ads "You have won" do not come from Firefox, they are malware or Web site ads. Follow these steps:

    Update to the latest version of Firefox

    Fix Firefox problems caused by malicious software

    Firefox - modules to reset and refresh settings

  • How can I force a goLink be clicked from a bean method?

    someone at - it an idea?

    Basically, in this method public void onKorrekturButtonClicked (ActionEvent actionEvent) {}

    You must dynamically create URLs and want to call it.

    so if you found the data required for the creation of url, why don't you use above code to call the url?

  • How can I call two functions in the HTML Form element attributes

    Hello

    I want the same value in the text field two, when I select the value to select the list then the value with a number increment should be two text field.
    I use both java script

    < script >
    function sumItems() {}
    function getVal (item) {}
    If ($x (point) .value! = "")
    Return parseFloat ($x (item) .value);
    on the other
    return 0;
    }
    $x('P19_LAST_END_YR').value = getVal ('P19_LAST_STR_YR') + 1;
    }
    < /script >


    < script >
    function per1Items() {}
    function getVal (item) {}
    If ($x (point) .value! = "")
    Return parseFloat ($x (item) .value);
    on the other
    return 0;
    }
    $x('P19_LAST_END_YR').value = getVal ('P19_START_YEAR') + 1;
    }
    < /script >


    now how can I call function onchange two attributes of the element in the HTML form for the discount:
    ' onChange = "javascript:sumItems()" onChange ="javascript:per1Items().

    Hello

    Try

    onchange="sumItems();per1Items();"
    

    BR, Jari

  • How can I get a light flashes when you receive calls if you can call silence please

    How can I get a light flashes when you receive calls if you can call silence please

    Hello Linda08,

    Go to setting/general/accessibility, walk down for hearing and toggle "Flash LED for alerts"

  • How can I block my keyboard so when my cat button, the keys perform the functions? I have a lock on my computer so I need a password to sign, but I can't find any info on how to lock keyboard features in.

    How can I block my keyboard so when my cat button, the keys perform the functions? I have a lock on my computer so I need a password to sign, but I can't find any info on how to lock keyboard features in.

    A quick Google for "lock keyboard" raised a certain links that seem promising. Here's one of eHow that answers your questions to kitty:

    http://www.ehow.com/how_4925264_lock-keyboard.html MS - MVP - Elephant Boy computers - don't panic!

  • How to properly call modal vi function in the C dll

    I have a labview function that takes a string as input and passes out when the user clicks OK in a 2 button dialog box. I have built a dll and then calls the function from a C++ environment by using the LoadLibrary function. If I set the Panel before shows the default settings and NOT modal the vi is displayed correctly but the dialog box box does not work. If I put the Panel before the vi to modal then vi front panel display correctly, therefor there I find that the dialog should be modal in his view.

    My question is about C++ How can I call a dll that displays a Modal form correctly? or how can I change the dialog box in modeless behavior / defect that can be done to the face before of the vi?

    Thanks in advance for any help.

    Hi, thanks for yor reply.

    The dialog box displays only partially. No, I have not tried the express vi, but I did create a vi to behave like a dialog box 2 button

    allowed me to define it as modeless. It also displays only partially.  I since first announcement also tried to run the dll also using labview and teststand to call the dll, in both cases the dll load and behaves correctly, the dialog box appears correctly.

    This suggests that the problem is with the C++ code but not being is not a very experienced C++ programmer I don't know how to debug the problem more far.

    Any help is highly appreciated.

  • How can I disable the mouse pad when you use a mouse plug-and-play?

    How can I disable the mouse pad when you use a mouse plug-and-play? I tried to disable the driver, and nothing works.

    Hello

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How can I find the ink levels when I scan, which allowed me to print.

    How can I find my ink level when I scan, allowing me to start printing.

    Hello Maureen,.

    Find things such as ink levels is a function of the printer driver.

    This is provided by the manufacturer of the printer, and they are the best resource on the operation of their particular drivers.  Therefore, it is best to ask the manufacturer of the printer for advice on this issue.

    Sometimes, there is an icon in the taskbar that you can get this information.  Yet once, it is a function of the driver and the printer software.

    Best regards

    Matthew_Ha

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

  • How can I exit the recovery mode when I updated to iOS 10? !!!

    How can I exit the recovery mode when I updated to iOS10?

    Connect the device to your computer and use iTunes to reapply the update.  It worked with my Pro iPad after I first tried to live update. He went into recovery mode, so I had to download the update in iTunes and updated (new), but he returned right after that.

  • How can I access the 'now playing' when first opening the music app?

    How can I access the 'now playing' when first opening the music app? There is no tab or option like in previous iOS, would be in the upper right

    When the music is playing, slide up from the bottom of the home screen to see the center of control and current reading is also there.

  • How can I prevent word from opening when I boot my Mac?

    How can I prevent word from opening when I boot my Mac?

    It may be something added to the login items in System Preferences > users and groups

    When you shut down the computer, there is also a checkbox asking you if you want to keep the configuration of the application that you have at that time, in which case it will return all open applications.

  • How can I stop Photos to start when I plug my iPod nano?

    How can I stop Photos to start when I plug my iPod nano?  I use mac os x El Capitan 10.11.3 & iTunes 12.3.2.35.

    It takes your iPod nano 5th generation.  If so, this happens because he has a camera.  After Photos opens when you connect iPod, near the top of the window, is there a checkbox to Open the Photos for this device (or words to that effect)?  If you see this checkbox, uncheck.  Photos should be open when the iPod is connected.

Maybe you are looking for

  • Cannot set iCloud as my default for Contacts

    Hi all I can't define iCloud as my default account of the contacts, which I am doing to synchronize contacts with my Mac. As you can see in the photo below, I can only choose either Outlook or on my iPhone. I have iCloud configured to synchronize con

  • Server operating system is better for the deployment of a web server

    hiiii everyone I have two operating system a windows web server 2008r2 and another is windows server 2008r2 enterprises. Now, I want to develop a server may I know the difference between these above OS let me which is better one. best regards Sri ram

  • M90e: very slow boot after XP downgrade

    A few weeks ago, I spent a M90e/3244 system with Win7-64-XP - 32 success. Now, I needed to do the same thing to another system M90e/3244. Result: white cursor flashes for 3-5 minutes on black screen until XP's start. In both cases, the BIOS settings

  • Cannot open microsoft outlook

    I read on your forum and tried ALL the suggestions and microsoft outlook will not always be open. I'm in the middle of a large project, highly dependent on the e-mail... someone can help me get it open. Outlook.exe/resetnavpane does not work on my co

  • Add the display language

    I use my BlackBerry Simulator to take screenshots of technical documents. I am currently working on our document translations. Is it possible to install more than one language on a BlackBerry Simulator? I tried to use the BlackBerry Desktop Software,