Dynamically refresh jspx component(i.e af:outputText) based on Java

Scenario : To update my marquee OutputText value based on Table value change
I have a requirement like, based on db table value change one of my component has to be refreshed from my server program(i.e java).
I got the event using DataUpdateEventListener from DB that some changed has been occurred on my table, and the value is set to true on my java class...
Problem
Using that true value i have to get the component(i.e af:outputText) from jspx (note: which is not in the region) and refresh the component so that my output value will be updated.
Any one of you have any idea abut this problem please suggest
Thanks in advance
Karthik

Check my blog http://tompeez.wordpress.com/2013/03/24/jdeveloper-11-1-1-6-0-self-closing-popup/ which shows how to use a poll component on a page. As the use case is to only call hte bean methos once you have to change the implementation in a way that you don't reset the timeout, but leave is as is so that the poll listener is called periodically.
Timo
Edited by: Timo Hahn on 13.05.2013 09:23
I found this video from Shay Shmeltzer showing how to use the poll component: https://blogs.oracle.com/shay/entry/using_the_afpoll_to_refresh_pa

Similar Messages

  • Dynamically Refresh Dropdown in JSF

    I wanna dynamically refresh dropdown values. Here is my requirement
    The user creates new record by selecting "New" value from the dropdown. Then user enters values on form fields and clicks the Submit button. The result is record gets created in the database and also gets populated in the dropdown. Now i wanna show this record as selected value in the dropdown instead of New to faciltate update/delete operations.
    Note: The reason i am doing this is subsequent save results in detached object hibernate exception. To resolve this exception if i create a new instance then i will loose the original object so i cant do update/delete on the original object. My backing bean is in session scope
    Any pointers/suggestions will be highly appreciated
    Regards
    Bansi

    What do you mean by preset it by property because the new value is allready set in the backedbean but its not reflected on the page as the drop down doesn't get refreshed.

  • Dynamically refresh a list box in a web report

    Dear All,
    I am having a serious issue with one of my web reports. I am using Oracle 9i PL/SQL Cartridges for developing my web reports. The problem is :
    I have a drop down box for department and also a list box for locations.
    I want to dynamically refresh the locations list box whenever the user selects a department.
    I know I have to refresh the page somehow to get the list box requery from the database.
    Can anyone please send me a sample code or suggest how to do it. I am new to PL/SQL cartridges.
    Thank You

    hello,
    althought his is not a PL/SQL cartridge forum i'll give it a shot.
    the basic behind the solution would be that your procedure need input values that would be used to create this cascading effect. so you would have e.g. input values for region and country for a form that should provide selection fro region country and city.
    when the procedure is called for the first time without any parameters, it would generate a drop down list for the first (region) parameter. when the user selects a value javascript would kick in that would submit the form that basically calls itself, but this time passing the value for the region parameter.
    now the procedure would create two drop down lists (region and country) because it had a value passed for region. both drop down lists would have a javaScript event that would submit the form. the only difference would be that the region list would need to clear the value of the country value before submitting so changing the region would produce a new country list.
    i hope that was clear enough. as for the code example. that is simple javaScript and you can find tons of examples on the Web. just look for "JavaScript" and "OnChange".
    regards,
    philipp

  • AS3 - Refresh FLVPlayBack component!

    Hey Guys,
    I am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and hence the onComplete event is never fired.
    I somehow wanted to refresh the component when a new video is to be played. Please let me know various ways to do so.
    Thanks in advance for your kind consideration.

    what code are you using to detect flv play completion?

  • Creating a application dynamically for a component

    Hi,
    Does any one know how to create an application dynamically for a component, so without using SE80?
    I already found class cl_wdy_md_application, but I do not know if this is the right direction. Maybe somebode already solved this issue.
    Regards,
    Remco

    Hi Thomas,
    In SRM it is possible to call own made webdynpro components and fill them with data, and then process these data into a new shopping card. This can be done by filling a so called HOOK_URL. In SRM you have to do customizing and fill in the URL to be used of the WebDynpro application. So far, still no problems.
    I have built a component by which an user can fill several Z tables and then he can display a form he has made by himself (a so called free order form). So the component will check all Z tables, and generate in one view, the context dynamically as also the layout dynamically. In all Z tables one field has been used as one of the keyfields and that is free order form name and this is also a parameter of the application so that this application knows which data to get from the Z tables to generate a form.
    And because it is possible to generate more then one forms, I have create per form 1 application with the specific parameter, and this URL can be entered in the customizing of SRM.
    This application creation I did myself, but now I want to accomplish, when the user creates a new form by filling specific tabels via webdynpro, that he can generate the application by himself.
    Maybe I can create a FM/BAPI for the BDC recording and then call this from my web dynpro application as there is no API.
    Do you maybe have another solution?
    Regards,
    Remco

  • Dynamically removing a component button...

    Sorry if this question sounds stupid/easy, but I'm blanking.
    How do I use AS to dynamically remove a component button that was
    dragged out onto the stage?...
    Thanks!...

    quote:
    Originally posted by:
    kglad
    you caused that problem by doing something to the button's
    bounding box and/or loading your finalexam.swf into another swf.
    I don't know what I would have done to the bounding box. I
    just put the component on the stage and changed the theme color of
    it - that's all...
    As far as the final exam loading into another .swf, that's
    true. There's one "main" .swf that is the basic navigational shell
    for the course (the top/bottom of the course). Then all the "pages"
    of the course load into the big main window of the navigational
    shell...
    ...would that be what's causing it? How come? Is there a way
    to fix it???

  • Dynamic Refresh not working

    Hello Experts
    I have a text box and a select list. As soon as the user enters a value in the text box, the select list should refresh depending on the value that has been entered in the text box. I have a query behind the select list which selects from a table where value = text box value.
    To achieve this I created a dynamic refresh on the text box so that it freshes the select list as soon as the focus is lost, but everytime I run the page, a refresh icon appears next to select list but it seems to refresh forever and nothing gets populated in the select list. If I submit the page then the list is populated, but I don't want to submit the page but want to pick up the value from the text box and refresh the select list.
    Any help on this is appreciated.
    Thanks

    Hi,
    >
    I have a text box and a select list. As soon as the user enters a value in the text box, the select list should refresh depending on the value that has been entered in the text box. I have a query behind the select list which selects from a table where value = text box value.
    To achieve this I created a dynamic refresh on the text box so that it freshes the select list as soon as the focus is lost, but everytime I run the page, a refresh icon appears next to select list but it seems to refresh forever and nothing gets populated in the select list. If I submit the page then the list is populated, but I don't want to submit the page but want to pick up the value from the text box and refresh the select list.
    >
    You cannot use LoV based on SELECT as the SELECT will execute only when the page is loaded, which you have already noticed.
    What you need to do is construct the HTML fragment for the select list and push it into your HTML DOM as described in Denes Kubicek's demo.
    Cheers,

  • Can you dynamically change an LOV on the parameter form based on other params?

    Can you dynamically change an LOV on the parameter form based on other parameters? For example, based on a entered purchase order number, create an LOV of the purchase order lines that belong to the entered PO #.

    Hi
    Accouding to my knoledge you can't do it.
    If you want to build lov for that particular
    value, you can do it in Forms.
    Vijay

  • Dynamically change the contents of one combo box based on the other

    Hi Forum,
    I have a question which might have a possibly simple answer. Well anyway help me out since i could not find the simple answer.
    I am building an application using Swing and binding with BC4J using JClient. My GUI has combo boxes, grids, editboxes. My requirement is that i should be able to dynamically change the contents of one combo box based on the selected item in trhe previous combo box. For example, when i choose a country in the "country combo box", the "states combo box" should show the list of the states of the selected country.
    Now how do i do this using binding. If not, how do i write custom querirs in BC4J layer and return a resultset to the remote application so theat i can populate the dependent combo boxes.
    I will appreciate if anyone can help me out in this regard.
    Thank You
    Sumit

    there could be quite a few number of ways of solving this problem.
    One way is through event handlers.
    taking your example as a model when user selects a country you could fire an action with a flag set to ture. A method will return the states from the DB or your temporary files or what ever and then the true flag will be used in the states combo box rendering.
    other way: javascript
    this might be a bit clumsy as you will need the states information in a property file and you can get the info as the user selects a country.
    regards,
    raj

  • Dynamic navigation to Component of IBase

    Hi Team,
    The requirement is need to navigate to Component Of IBase from our custom view.
    By using the Search Query we are able to get the collection IBComponent.
    How can i proceed with the dynamic navigation in my hyperlink event.
    In the SPRO settings the object details of IBMAIN has not been maintained.
    Kindly share your thoughts.
    Thanks,
    Ravi

      HI Ravi,
    Try to use below logic in Event handler of hyperlink.
    data:  lv_descriptor_object  TYPE REF TO if_bol_bo_property_access,
            lr_navigation         TYPE REF TO if_crm_ui_navigation_service,
            lr_data_collection    TYPE REF TO if_bol_bo_col,
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).
      CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_ui_object_based
      EXPORTING
        iv_ui_object_type   = 'IB150_IBASE'
        iv_ui_object_action = 'B'
        RECEIVING
        rr_result           = lv_descriptor_object.
       IF lv_descriptor_object IS BOUND.
        CREATE OBJECT lr_data_collection TYPE cl_crm_bol_bo_col.
       lr_query = cl_crm_bol_query_service=>get_instance(
            iv_query_name = 'IBIBaseToIBase' ).
            REFRESH it_parms.
            wa_parms-name = 'IBASE'.
            wa_parms-VALUE = lv_ibase.(Your ibase iD)
            APPEND wa_parms TO it_parms.
    *Add the selection parameters
            CALL METHOD lr_query->set_query_parameters
            EXPORTING
              it_parameters = it_parms.
    *Get the result list
            lr_result = lr_query->get_query_result( ).
    *Get the first object(entity) in the result list
            lr_entity ?= lr_result->get_first( ).
            CHECK lr_entity IS BOUND.
            lr_data_collection->add( lr_entity ).
            lr_data_collection->insert( iv_bo = lv_descriptor_object
            iv_index = 1 ).
            IF lr_navigation->is_dynamic_nav_supported( ir_descriptor_object = lv_descriptor_object ) = abap_true.
              lr_navigation->navigate_dynamically( lr_data_collection ).
            ENDIF.

  • Refreshing a Component Display

    Apologies for the length of the post, but I'm guessing it
    would be useful to set the stage a little for this...
    I have an application that references two components in a
    master/detail layout where one component is the master and the
    other is the detail. Within the master component, I have a combo
    box that specifies the "view" of the data. I expose the selected
    "view" in the component via a public var:String.
    The detail component also has a "view" variable, and within
    the main application mxml (where the components are referenced), I
    specify that the detail components value for "view" equals the
    master's "view" value. All is well so far.
    Now within the detail component I have a viewStack of
    containers which correspond to the number of possible views in the
    master's combo box, and viewStack.selectedChild = this[view].
    So in the end, if I change the value of the combo box in the
    master pane, the viewStack in the detail pane changes
    accordingly... except for one problem. The detail component isn't
    updating immediately when the combo box changes values, but only
    updates with other data being supplied to the detail component is
    updated. What's really odd is that if I display the "view" string
    as a label within the detail component, then it does update as
    expected! But for some reason when the variable is only driving the
    viewStack display, any changes to the "view" variable are ignored
    with respect to the detail component being refreshed.
    Any ideas on why the variable changes are being ignored and
    how to remedy this situation?
    Thanks,
    Josh

    Are the data in the detail component dynamically bound to
    something? The part that confuses me is, "The detail component
    isn't updating immediately when the combo box changes values, but
    only updates with other data being supplied to the detail component
    is updated."
    When you change the ComboBox in the master, does the
    ViewStack in the detail change?
    Are the components within that ViewStack children the ones
    that are not being changed?
    For example, if you are seeing the first ViewStack child and
    change the master ComboBox such that the second ViewStack child
    appears, the components on that second child do not reflect the
    correct data until some other data update happens?

  • Dynamic creation of component

    Hi ,
    I try to create a component in DC B from DC A.For this I use the method
    wdThis.wdGetObjectComponentUsage().createComponent(componentName, dc);
    where componentName = path of the webdynpro component
    eg:com.sap.a1s.reui.plugins.fdt.expressions.decisiontable.ExDecisionTable
    dc=<vendor name>/<dc name>
    sap.com/a1s/reui/plugins/fdtexpr
    But I keep getting the runtime error
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object 'sap.com/a1s/reui/plugins/fdtexpr' since it is not a Web Dynpro object
    I also tried using
    sap.com/a1s~reui/plugins/fdtexpr
    But get the same error.
    can anyone please help regarding how to get the DC name ?
    Regards
    Sourav

    hi Saurav,
    I think problem is web dynpro framework is not getting deployable object,
    just give try to,
    sap.com/a1s~fdtexpr
    not sure but just a try, also check if this link is of any help
    View Methods / Dynamic component creation
    regards
    Message was edited by:
            Abhijeet

  • Dynamically refresh to report regions

    I have a page with multiple regions. Two of the regions are report regions that I want to refresh dynamically. I am using 4.0. I created a dynamic action that fires based on an item's value changing. It contains two actions, a 'Refresh' action for each region. Only one region will refresh. If I put an 'Alert' action between the two 'Refresh' actions, then both regions will be refreshed. I have tried to do this multiple ways, such as using the $a_report() function from within my page level javascript. Results are the same. I can get one region to refresh, but not two. Any ideas or suggestions on why I can not refresh multiple regions?

    Thanks for your reply. I tried what you said and still no luck. I then created a new page with two simple regions, a select list, and a button to trigger the refresh. I wanted it be stripped of any other items or code and I used your javascript. It still only refreshes one region. I am requesting space on the Oracle site and will create my test there. Maybe there is a bug in the version we have installed. Our version is 4.0.0.00.46.

  • Dynamic objects in component

    I be trying insert dynamic objects in my JSF component by JavaScript,
    but it don't see this objects in the Servlet.
    for e.g., i have a datatable with 3 rows(from Database), each row with a
    input text(HTML), and insert a dynamic input text(HTML) in my structure(4 rows),
    after execute submit to a ActionListener, the input text included in the
    fourth row dont exists in the Collection return by JSF.
    How can i get the fourth object value?

    Simply you can't.
    JavaScript can't affect the structure of the JSF component tree.

  • Fill placeholders within message strings dynamically on jspx pages

    Hello all,
    i am searching a solution for the following problem.
    Let's assume the following key/value pair exists in the message resource bundle:
    targets.delete.confirmation=Do your really want to delete the target "{0}"?
    On a jspx page there is a confirmation dialog. The code looks like that:
    &lt;af:dialog id="dialogDel" type="yesNo" closeIconVisible="true"
    title="#{nls\['targets.delete.title'\]}"
    visible="true" modal="true" partialTriggers="tabTgt tabTgt:btnDelete"
    dialogListener="#{backingBeanScope.targetsBean.dialogDel_action}"&gt;
    &lt;af:message messageType="confirmation" message="#{nls\['targets.delete.confirmation'\]}"&gt;
    &lt;f:attribute name="{0}" value="#{bindings.TgtName.inputValue}"/&gt;
    &lt;/af:message&gt;
    &lt;/af:dialog&gt;
    Now i want the placeholder {0} getting filled at runtime dynamically with the inputValue of the appropriate binding.
    The code as shown doesn't solve the problem.
    I'm experienced in developping web applications with ADF UIX and there i got this done with the following code:
    &lt;boundAttribute name="title"&gt;
    &lt;messageFormat format="${nls\['targets.delete.confirmation'\]}"&gt;
    &lt;dataObject source="${bindings.TgtName.inputValue}"/&gt;
    &lt;/messageFormat&gt;
    &lt;/boundAttribute&gt;
    What's the equivalent to 'messageFormat' in ADF Faces??
    Any help will be appreciated.

    Hi,
    Not sure if this will help, but rather than using proper messages, can you just use a piece of output text like:
    <h:outputFormat value="#{nls['targets.delete.confirmation']}">
      <f:param value="#{bindings.TgtName.inputValue}"/>
    </h:outputFormat>The outputFormat tag is from the JSF HTML tag library
    Dave

Maybe you are looking for

  • CC Compiler not working

    CC compiler : I am try to run a c program on ultra10 machine which runs solaris 8 workstation software. i am getting the following error on runing cc: cc: not found. Although the libraries and cc compiler are still present in /usr/ucb/cc but i still

  • Can't sign in because many keys on keyboard not working

    Am able to enter first four letters of my password but when i type the fifth = nothing happens.  Nothing happens with the keys starting with Q and ending with O. (P works) None of the numbers except 0 work..

  • One Nano, One receiver, Two sensors and Calibration

    I share a nano with my wife. We each have our own sensors, but use the one receiver. We re-link our sensor to the receiver if the other has used the nano before hand. This has worked well-for the most part. My distances and pace have become irratic i

  • Multiple Portlets problem for sessionBean

    Hi all, I created a Master-Detail two page database portlet using sun creator 2 update 1. The portlet was running fine both in test server and my actual portal server. But when i placed it on the same page as another portlet created by me. The portle

  • E-Mail is not sent for "Expense report reimbursed"

    Hello, When the expense report status changes to "Reimbursed", an email should be sent to the employee. But it is not being sent. FYI, both in Business Configuration --> Fine Tune Activity and Personalize --> My Data setting of employee, the email op