[SOLVED] ADF BC : event mechanism

hi
I'm not sure what I am looking for, but I was wondering if ADF BC had some kind of "event mechanism" to "notify the view of changes in the model"?
For example, what if I would like to be "notified" (in my view implementation), if a change to some SCOTT.EMP.SAL value would cause the average SCOTT.EMP.SAL value to be above some limit?
Because ADF BC has this "Active Data Model" implementation, it looks like some "event mechanism" could fit in.
For things that "go wrong" there is already a "Bundled Exception Mode" feature in place, but maybe a general "event mechanism" could be similar.
many thanks
Jan Vervecken

Thanks for your reply Steve.
Based on both your sample applications 98 and 101 I have been able to create an example application that has some kind of "model to view event mechanism":
http://verveja.footsteps.be/~verveja/files/oracle/ADFEventMechanismStuff-v0.05.zip
It enables me to "react" in the view implementation to "events in the model", like this:
public class EmpViewAllPanel
     extends JPanel
     implements JUPanel
     private void myInit()
          JboWarningEventBindingContainer vJboWarningEventBindingContainer =
               (JboWarningEventBindingContainer)panelBinding;
          vJboWarningEventBindingContainer.addJboWarningEventListener(
               new JboWarningEventListener()
                    public void handleJboWarningEvent(JboWarningEvent pJboWarningEvent)
                         myHandleJboWarningEvent(pJboWarningEvent);     
     public void myHandleJboWarningEvent(JboWarningEvent pJboWarningEvent)
          if (pJboWarningEvent instanceof AverageSalEvent)
               AverageSalEvent vAverageSalEvent = (AverageSalEvent)pJboWarningEvent;
               fMyStatusPanel.setAverageSalAlert(
                    !vAverageSalEvent.isAverageSalBelowLimit());
          else if (pJboWarningEvent instanceof CreateEmpEvent)
               CreateEmpEvent vCreateEmpEvent = (CreateEmpEvent)pJboWarningEvent;
               fMyStatusPanel.setEmpCreateDate(vCreateEmpEvent.getCreateDate());
}All suggestions for improvement are welcome.
I also wonder if there would be an alternative that does not require a DCBindingContainer subclass as a JboExceptionHandler implementation?
regards
Jan Vervecken

Similar Messages

  • ADF business event mechanism

    Hi,
    I have been reading about ADF business events and it seems to me that the current mechanism (11g) only supports raising events at EO level on DB commit (create/update/delete), AND the service that subscribed to the event will be triggered asynchronously. Is that a correct statement?
    what I am looking for is a mechanism to register a UI event (button click, switch to another row, or field value change without actually committing to DB) to a series of services, with some condition evaluation support. At runtime, each of the registered services will be called synchronously if the condition is met, in the specified sequence. Since these services are on the same app server, we also need the optimization to avoid SOAP overhead. Can someone suggest any ADF feature that I can leverage, or if none exists, any suggestion on how to implement something like this?
    thanks,
    -Ying

    Hi,
    if you need to implement this in JDeveloper 11 I suggest to ask this question on Oracle internal mail lists or the internal forums. This forum does not cover any topic related to software that isn't publicly accessible
    Frank

  • [SOLVED] ADF BC : View Object "second level" Entity reference issue

    hi
    If I insert a row in a View Object that uses "two levels" of Entity references, the attributes of the Entity on the "second level" don't get a value.
    Consider these tables:
    MY_ROW (MY_ROW_ID, MY_ROW_STUFF, MY_ROW_LU1_ID)
    MY_ROW_LU1 (MY_ROW_LU1_ID, MY_ROW_LU1_STUFF, MY_ROW_LU1_LU1_ID)
    MY_ROW_LU1_LU1 (MY_ROW_LU1_LU1_ID, MY_ROW_LU1_LU1_STUFF)
    Where MY_ROW.MY_ROW_LU1_ID is a "look-up" in MY_ROW_LU1 and MY_ROW_LU1.MY_ROW_LU1_LU1_ID is a "second level look-up" in MY_ROW_LU1_LU1.
    I created default Entities and Associations on these tables and a View Object that uses all 3 Entities (MyRow as Updatable, MyRowLu1 and MyRowLu1Lu1 as Reference).
    See example code in
    http://verveja.footsteps.be/~verveja/files/oracle/ViewObjectEntityReferenceIssue-v0.03.zip
    (contains no Java code, all out-of-the-box ADF BC)
    problem scenario:
    If run the MyRowService Application Module in the Oracle Business Component Browser and "open" the MyRowViewAll View Object instance, I get the rows and their related "look-up values".
    If I click the "Insert a new record" button and fill out values for MyRowId, MyRowStuf and MyRowLu1IdEntity, I only get "look-up" values for the "first level". While the "second level" stays empty.
    For example, a MyRowLu1IdEntity of "2003" gives a MyRowLu1Stuff value of "2003 stuff", but no value in MyRowLu1Lu1Stuff.
    What am I doing wrong? What should I change to also get a value in the "second level" MyRowLu1Lu1Stuff attribute?
    many thanks
    Jan Vervecken

    Jan,
    If you create a view object on Emp and Dept, with Dept as a reference entity, you might choose to build the view object to only include the:
    Emp.Empno (required, since it's the PK of Emp entity usage)
    Emp.Ename (included since you want to show the ename)
    Dept.Deptno (required, since it's the PK of the Dept entity usage)
    Dept.Dname (included since you want to show the dname)
    The wizard enforces the inclusion of the required attributes above.
    When you run this view object, a join is performed and you see the reference data.
    Now, if you want to allow the user to UPDATE the reference data, you need to add one more attribute to the list of attributes:
    Emp.Empno
    Emp.Ename
    Emp.Deptno (To allow user to change Deptno employee belongs to)Dept.Deptno
    Dept.Dname
    At this point, not only is the join performed for you, but the ADF BC reference mechanism reacts to any modification of the Emp.Deptno attribute, correctly showing the reference information for that new foreign-key-referenced department (even before commiting and requerying, at which time the SQL join would pickup that correct, related information).
    The "second level" problem you describe in this thread is simply the same issue described here as a master/first-level-detail situation, taken to its logical next step. If you want the end-user to be able to change the second-level detail to which the first-level-detail is associated, you need to include the first-level-detail's foreign key attributes in the view object's select list. Otherwise, there is no foreign key attribute whose value-change event the framework can react to in order to coordinate the related reference data in the row.
    I've blogged a link to a working example of a four-level reference information view object here:
    http://radio.weblogs.com/0118231/2007/05/09.html#a818
    based on the HR schema.

  • How to problem solve adf issue in the mx340 model

    how to problem solve adf issue in the mx340 model

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • Reporting on ADFS Audit Events

    I haven't had much luck researching potential solutions for how to report on ADFS activity. Most articles describe how to enable debugging for troubleshooting purposes, but haven't found anything to build a report off of that info.
    Basically I am looking for a way to aggregate the ADFS auditing events into a consumable format by a person.  There is the instance ID for a session that in consistent amongst the 299, 500, 501 events, but how to organize the claim values that are shown
    is the part I struggle with.
    Ideally I am just looking to build a report to show the Date/time, Relying Party Name, Username, source IP, Device and/or client application in a sortable format to view by application or by user, etc.  Its just a matter of parsing the claim values
    that span multiple events and putting it into a readable format. 
    Or Are there any other solutions out there that do something comparable?

    Hi,
    Thank you for your posting!
    Since Active Directory Federation Service is not an extension of Active Directory schema, I suggest you refer to the following forum to get professional support:
    Claims based access platform (CBA), code-named Geneva Forum
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    In addition, you may also need to consult experts from scripting forum due to your request.
    The Official Scripting Guys Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Best Regards,
    Amy

  • ADF Region Refreshing Mechanism

    Hi all,
    i have a doubt on how ADF region refreshing mechanism works. Let me explain my doubts with an example. Suppose you have a page .jspx inside whom you put a region with the following relevant properties:
    - Refresh: ifNeeded
    - Activation: deferred
    - Parameters:
    ID Value
    param1 #{pageFlowScope.myBean.param1}
    param2 #{pageFlowScope.myBean.param2}
    paramN #{pageFlowScope.myBean.paramN}
    As you can see, the region is instructed to re-execute its task-flow everytime any of its parameters change. What i don't understand is if the parameters must be changed in particular ways that let the region know that it must be re-executed or they can be changed in any way, for example from within the method of a managed bean: returning to the example above, if inside myBean i have a method like the following:
    public void refreshRegion(){
    setParam1(new Param1());
    the region gets re-executed everytime i call this method?
    If not so, could you please explain how exactly the region detects that one of its parameters is changed and then it must re-execute its task-flow?!?
    Thanks in advance!
    Bye!
    Fabio

    Hi,
    thanks for the reply. Is there some reason in particular to use variables stored at requestScope level? The mechanism used by regions to refresh theirselves don't should be the same regardless the scope at which their parameters are stored?
    As a technician, i imagine that the only way regions are able to automatically detect the need to re-execute their task flow is putting theirselves in constant listening to eventual changes in the value of their parameters. As far as i know, this is the only way for regions to detect the exact moments when refresh is required, despite the way their parameters are updated. If this is not the case, then i think the assumption according to which regions are able to refresh theirselves no matter the way their parameters are changed is wrong, and i'd like to know the real mechanism that hides behind the refresh of ADF regions.
    You said that:
    " Now, in any of the server code, if you are changing anyone of the above requestScope values, the taskflow would be re-executed "
    Please, let me ask you: even if the code that changes the value runs inside a thread different from the "ADF thread"?
    Thanks again,
    Bye!
    Fabio

  • [Solved] Disable sound events, not using a desktop

    I use plain Icewm (simple window manager, no desktop). Some software such as firefox or chromium do sometimes (but not often) make a sound relating to an event. If it possible to completely disable that. The only solution I have found is to uninstall libcanberra but for some reason, this solution is not satisfactory for me. I believe tjhis is some kind of freedesktop configuration but I have no idea how the freedesktop standard relate to sound.
    Last edited by olive (2013-08-19 18:35:17)

    I have tried a few things, but I am still out of luck. To have an example of what I mean, go to http://www.videocardbenchmark.net/ , select "Search for your Video Card" , then put an inexistants card and click "Find video card". You have a small windows saying "String <what you have typed not found>" and a "ding". i found no ways to disable these annoying ding. I thought having found the solution in https://wiki.archlinux.org/index.php/Libcanberra but the suggested settings (with false instead of true, of course) does not seem to have any effect. Still completely uninstalling libcanberra solve the problem. But I would like to have a per user settings...
    Last edited by olive (2013-08-17 13:47:59)

  • ADF Taskflow Event producer

    Hi all,
    i get the following exception from my taskflow event producer.
    Any idea??
    java.lang.NullPointerException
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:113)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1024)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1282)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1186)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1146)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1149)
         at oracle.adf.model.BindingContext.get(BindingContext.java:1102)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:328)
         at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1490)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1590)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:566)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:738)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         at testing.view.utility.TestUtility.raiseEvent(TestUtility.java:138)
         at testing.view.backing.Test.lendingSelectionDeselectionListener(Test.java:139)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:214)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:356)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

    Hi Frank,
    your are right, i am doing contextual event. I am using 11.1.1.4.0 Jdev.
    This is my raise event. Actually it was working fine before. only after we move it to new project, i get that exception.
    i tried to recreate DataControl for event producer. but it is still the same.
    Exception come from operationBinding.execute();.
    TestUtility.raiseEvent("raiseEvent", productHelper);
    public static String raiseEvent(String event, TestHelper productHelper) {
    String strRet = null;
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding operationBinding = bindings.getOperationBinding(event);
    Map map = operationBinding.getParamsMap();
    map.put("productHelper", productHelper);
    operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    strRet = null;
    return strRet;
    With Regards,
    Wai Phyo

  • [Solved] ADF Security permission error

    Hi,
    I have used ADF Security to authorize access on SRTutorial sample application but I get an error: 'JBO-35108: No permission for action: executeWithParams'. There is not an 'Edit Authorization' context menu item for this method, so how can I set permissions for it?
    Thanks,
    Saeed
    Message was edited by:
    Saeed Shafieian

    Hi Frank and Saeed,
    i get the same error (JBO-35108) like Saeed. The only difference is that the error occurs in my own application (not in SRDemo, i didn't tested this). Is there any workaround or bugfix available, or is waiting for a newer JDeveloper version the only solution?
    Solves JDeveloper11g the problem?
    Originial error message (in german):
    Fehler
    JBO-35108: Keine Berechtigung für Aktion: executeWithParams.
    My JDeveloper version:
    Studio Edition Version 10.1.3.2.0.4066
    What means 'RMT'?
    TNX in advance
    hobbes

  • [Solved] xcompmgr -- Drag events kill XOrg rendering (xcompmgr crash)

    To fix a problem I was having with direct draw applications glitching/ghosting https://bbs.archlinux.org/viewtopic.php … 1#p1384701 I implemented the fix I documented.
    Now, direct draw drag events kill all rendering in XOrg. It seems xcompmgr just silently dies and I have to kill and restart XOrg to get it working again. A simple example of this is dragging an image in Firefox. Input still works and the window manager is fine (I can still spawn terminals with my hotkeys). Killing xcompmgr doesn't fix the problem nor does restarting it.
    Anyone have any suggestions beyond switching to compiz/nouveau?
    Last edited by pilotkeller (2014-02-25 14:19:39)

    So I've managed to solve my problem.
    Thanks anonymous_user, you set me on the right path with the suggestion of compton. I checked its man page and it has abolished the -a flag. Didn't know why. Turns out, it's buggy and prone to these crashes.
    I'll edit my solution in my linked post noting what I've done.
    Thanks a million to you again anonymous_user, and you too headkase! You two are what make these forums amazing.

  • Programmatically generating an ADF Action Event through Javascript

    Hi,
    I have a requirement of generating an ADFActionEvent programmatically. I have written the following
    <af:commandButton text="commandButton 1" id="cb1"
    action="#{mybean.mymethod}">
    </af:commandButton>
    function parent()
    // here we need event
    // so i have done this code but its not working
    var event=new AdfActionEvent("AdfRichCommandButton [oracle.adf.RichCommandButton] id=cb2");
    event.Init("AdfRichCommandButton [oracle.adf.RichCommandButton] id=cb2");
    event.propagatesToServer();
    childfunction(event);
    function childfunction(event)
    var source = event.getSource();
    Wanted to know how can we call action of button from java script.
    i need this because i am calling java script from html and adf page is iframe here
    so i want to call action of button from parent html page through java script.
    i am successful to call child iframe java script function but not with event .

    You need to use the ADF Faces JavaScript API to queue an event and listen to it with a serverListener.
    See for example:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/004-auto-suggest-169120.pdf
    and
    http://biemond.blogspot.com/2010/11/adf-faces-rich-client-development.html

  • Want info about eventing mechanism in Solaris.

    Does Solaris have facility to register for events such as "link down" other than snmp ?? If yes, where can I find information about it ?
    Thanks,
    Dev

    Try looking at syseventd. This is the mechanism to expose events from the kernel/drivers to userland. I'm not sure if network link events are currently exposed.

  • Adf-faces events

    Hi everyone,
    I need to make some regions to appear and disappear in response to many events triggered by many components.
    is there a way i could have all those components implementing the same listener, and once in the method to be able to find out who triggered the event and which event it was so i call the proper method to solve?
    I do have a second question: i don't use jdeveloper but another ide, is here a good place to post my questions and hope to get an answer in a coding approach instead of steps to follow in a certain ide? if the answer is no, where should i post my thread?
    thanks in advance

    Hi,
    for the first question: Listeners like ValueChangeListener, ActionListeners etc. can be written as external class and then assigned to the components. The component origin can be derived from the event method
    Frank

  • [SOLVED] ADF: calling a method at runtime

    Hi all,
    I have a method that I need to call (once) when the page loads, the method contains setting a whereClause of a ViewObject and setting the render property of some items to true/false.
    I implemented the PagPhaseListener menthod's afterPhase() and beforePhase() but it did not work, I also tried "Using Custom ADF Page Lifecycle to Invoke an onPageLoad Backing Bean Method" way as explained in :
    http://download-uk.oracle.com/docs/html/B25947_01/bcdcpal005.htm#sthref828
    also did not work.
    any suggestions?
    Regards,
    Ahmad Esbita

    It seems that the PagPhaseListener's afterPhase() and beforePhase() way will not work unless you set the controller class of the page definition to the class implementing the PagPhaseListener.
    Sorry for the mistake,
    Ahmad Esbita

  • [SOLVED] adf faces demo doesn't work with jdev 10.3.1.2

    Has anybody tried to run the ‘Introduction to adf faces/trinidad using jdev’ demo at
    http://www.oracle.com/technology/obe/obe1013jdev/10131/trinidad/adf_faces_trinidad.htm
    with jdev 10.1.3.2 studio?
    I am trying it and I am getting this error
    500 Internal Server Error
    java.lang.NoSuchMethodError: oracle.adf.view.faces.context.AdfFacesContextFactory.createContext(Loracle/adf/view/faces/webapp/wrapper/ContextWrapper;Loracle/adf/view/faces/webapp/wrapper/RequestWrapper;)Loracle/adf/view/faces/context/AdfFacesContext;
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl.startFilter(AdfFacesFilterHelperImpl.java:112)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:111)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Message was edited by:
    mauro avon

    We don't automatically migrate the adf-faces-api.jar since in a 10.1.3.x ADF Faces application this JAR is not part of your project's WEB-INF/lib directory.
    The issue must be specific to migrating this Apache Trinidad example.

Maybe you are looking for

  • Autocomplete and linking issues with gchat on apple messages

    So I'm having a couple related(ish) problems with apple messages and gchat/hangouts/whatever it's called these days and imessage on my laptop: 1) Gchat contacts sometimes do and sometimes don't autocomplete when i cmd+n for a new message and then sta

  • How to download a file from server machine to client machine using jsp

    Hi, In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java? Its a

  • Can i change my iCloud email address?

    am i able to change my email address? I put @icloud.com when i wanted to put @gmail.com ? no underscore... <Email Edited by Host>

  • Unable to insert image in editor

    When I try to insert images in the text editor, by clicking the "insert image icon", a black box appears with the "insert image" message in the top left corner of the box and the close button (X) in the top right hand corner. However, the "insert vid

  • ICloud and pdf file attachments

    Several of the small companies that I work with don't allow downloads of anything from any "cloud." But I'm using iCloud now for my emails. How do I send pdf files, but not through the cloud? Thank you for your help.