Contextual Framework Question

Hi,
I am following along this tutorial (http://www.youtube.com/watch?v=XIVom59Kq2U) about contextual framework and I seem to have some problem.
I followed each and every steps but I cant seem to make it work.
Basically, in the video. Region 1 is composed of a Employee form from the HR data control and Region 2 is just a Region with an output text.
Changes in the last Name field of Employee Form is propagated to Region 2 when you just tab out of the form.
But looking at the code, nothing really happens
    <af:inputText value="#{bindings.LastName.inputValue}"
                  label="#{bindings.LastName.hints.label}"
                  required="#{bindings.LastName.hints.mandatory}"
                  columns="#{bindings.LastName.hints.displayWidth}"
                  maximumLength="#{bindings.LastName.hints.precision}"
                  shortDesc="#{bindings.LastName.hints.tooltip}" id="it7">
      <f:validator binding="#{bindings.LastName.validator}"/>
    </af:inputText>For my code to work, I have to add the autoSubmit="true" property.
    <af:inputText value="#{bindings.LastName.inputValue}"
                  label="#{bindings.LastName.hints.label}"
                  required="#{bindings.LastName.hints.mandatory}"
                  columns="#{bindings.LastName.hints.displayWidth}"
                  maximumLength="#{bindings.LastName.hints.precision}"
                  shortDesc="#{bindings.LastName.hints.tooltip}" id="it7"
                  autoSubmit="true">
      <f:validator binding="#{bindings.LastName.validator}"/>
    </af:inputText>Not sure but is this really how it should be done. It was'nt shown in the video though.
Thanks
JDEV 11.1.1.6
Edited by: Neliel on Sep 5, 2012 8:01 PM

Frank Nimphius wrote:
Hi,
you are correct. If you want to issue an event when youtab out of a field, autoSubmit must be set to true for that field
FrankHi Frank,
Thanks.. It wasn't mentioned on the video though but thanks for your confirmation.
Regards

Similar Messages

  • Contextual Event question (Currency Change Event)

    Hello,
    I have published a contextual event on my table (Currency Change Event)
    I also have a SelectionListener on the same table.
    Will I have to manually/programmatically publish the event within the selection listener code? (and if so, how?)
    The reason I ask is that I practiced with a small app containing a region from an ADF library that handled currency change event from the referenced task flow and everything was great, but now I am trying to apply the same principles to my "proper" application and there is no currency change event being received in the parent application.
    I had a look at Andrejus example (http://andrejusb.blogspot.co.uk/2010/10/contextual-events-framework-and-adf-11g.html) but he has hand crafted the events on the page binding will I have to do that too? Is it not enough that I have the currency change event declared?
    Any help appreciated, thanks
    JDeveloper 11.1.2.2

    I've applied the same processing to another table that uses the standard collectionModel.makeCurrent selection listener and it's firing the contextual event handler in the parent application, so that almost confirms that it's the bespoke selection listener that needs code adding to it to invoke the currency change event
    edit :
    I added this code to invoke the makeCurrent and everything is ok again, thanks for listening
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elContext = fc.getELContext();
    ExpressionFactory ef =
    fc.getApplication().getExpressionFactory();
    MethodExpression meth = ef.createMethodExpression(elContext, "#{bindings.partnersVO1.collectionModel.makeCurrent}", Object.class, new Class[]{SelectionEvent.class});
    meth.invoke(elContext, new Object[]{selectionEvent});

  • JSR-296 SwingApp Framework Question

    I learned how to program in Java way back in the 90's by looking at the Java Source Code and seeing how the pro's did it. So, when wanting to learn a little about concurrent programming I looked up the code in the new SwingApp Framework (which at present is open source) and JSR-296.
    I have a question about some of the "propertyChange" firing code in the AbstractBean class.
    The code is basically a wrapper around the java.beans.PropertyChangeSupport class. They create their own private static subclass called EDTPropertyChangeSupport, instantiate it and create delegates around the PropertyChangeSupport methods.
    However, in the EDTPropertyChangeSupport they override the PropertyChangeSupport method "firePropertyChange" in the following way:
        private static class EDTPropertyChangeSupport extends PropertyChangeSupport {
            EDTPropertyChangeSupport(Object source) {
                super(source);
            public void firePropertyChange(final PropertyChangeEvent e) {
                if (SwingUtilities.isEventDispatchThread()) {
                    super.firePropertyChange(e);
                } else {
                    Runnable doFirePropertyChange = new Runnable() {
                        public void run() {
                            firePropertyChange(e);
                    SwingUtilities.invokeLater(doFirePropertyChange);
        }My question is this: I understand checking to see if the event was fired from the "Event Dispatch Thread" but if it isn't, a new runnable is created and the "firePropertyChange(e)" method is executed. Is this "firePropertyChange(e)" method the method from the "PropertyChangeSupport" class OR is it the method from the "EDTPropertyChangeSupport" class. If it is the former, then things are OK, but if it is the latter case, then it will create a recursive infinite (until you run out of stack space) decent condition.
    Maybe it's a lack of understanding on my part, but I think it's the latter.
    Stephen McConnell

    I tried logging in under the old account and it seems to have forgotten me.
    I have read those Tutorials. I understand them for the limited uses they
    describe. I just wish there was something more expanded and with
    more examples on Java Concurrency.
    I am reading the tutorials again and some more articles I found on the web:
    [Java 5.0 Concurrency API's|http://java.sun.com/j2se/1.5.0/docs/guide/concurrency/overview.html]
    And will be ordering a couple of books out there on the subject.
    Thanks. For the answer. How does one mark a question answered?
    Stephen McConnell
    |http://java.sun.com/j2se/1.5.0/docs/guide/concurrency/overview.html]

  • Contextual event - Question

    Hi ,
    I have the following scenario :
    There is a region A which raises a contextual event. There is a page (say Test.jsff) containing region A and region B both of which can be invoked as popups . Region B also contains Region A.
    Both Test.jsff and Region B subscribe to the contextual event raised by Region A. The requirement is that Test.jsff should subscribe to the contextual event when it is raised directly from Region A but ignore when the event is raised from the Region A within Region B.
    The only way I could think of achieving the above is by adding an EL expression in the handleCondition of the handler method in subscriber's page def (Test.jsff in this case). This was the information I found in dev guide for conditional subscription. Is this approach correct?
    Are there any other ways to go about it for e.g:
    i)such as event be consumed by the direct parent only ?
    ii)Do you think raising two different events one for Test.jsff and another for Region B is a good idea?
    Would really appreciate help from experts on the above queries.

    Any updates?.
    Appreciate your inputs on the above.
    Thanks!

  • Graph contextual menu question

    This is probably basic, but I am trying to understand how Graph contextual menus function.
    In a typical XY Graph, we have the option to modify the (runtime) contextual menu, which is something I am increasingly doing to extend the functionality of that object. For instance I increasingly use a "Delete Plot" or "Paste Plot" (and probably should replace the "Export Data to Clipoard" by a "Copy Plot" item, now that I think of it...).
    Anyhow, this contextual menu is available when I right-click on:
    - the Plot area
    - the Graph Palette
    - the Scale Legend
    - the Plot Legend (except for the Plot Style region).
    - the Cursor Keypad thingy
    but not when I click on:
    - the Cursor Legend
    - the Plot Style regions of the Plot Legend
    In the latter two cases, a specific runtime menu pops-up.
    This makes perfect sense (well, not exactly: why does the Keypad thingy give me access to a Plot contextual menu? Likewise for the Graph Palette?) but like we may want to modify the Graph runtime menu proper, we may (we do!) want to modify the runtime menu for the the two outliers above.
    Why can't we?

    X,
    I believe this is due to the properties being separate objects, as such they do not have access to each others properties.  I found another forum post where a workaround is described.
    http://forums.ni.com/t5/LabVIEW/How-to-customize-t​he-context-menu-in-the-plot-legend-of-the/td-p/209​...
    If there is anything else we can help with let us know,
    J Newk
    Systems Engineer
    National Instruments

  • Alert Framework question

    Hi,
    we have set a generic user with a group email adress in alert categorie definitions as the destination where the alert should be sent.
    What this does is that the alerts are sent to a common mailbox which the group responsible for pi can monitor.
    The problem now is that no one can really log in and terminate these alerts since no particular user has this users password . This is normal because noone should really know generic user passwords and we want to be able to trace who confirms alerts.
    How does the alert framework handle this way of working... it seems like something everyone must need...
    I mean , you don't really want to send alert emails directly to someone in case they are not there. Then again, if you send it to multiple people , how do you know who will handle it...
    How do you do this ?

    Hi,
    You will create one distributed email list (add users mail ids how many you want in that distributed list)  and assign that distributed list to the particular user. when an alert triggered then the mail goes to the distributed list (all people receive that alert who are in the distributed list).
    So based on their shift timings they will handle that alert causes and send a mail.
    Otherwise one person is responsible to assign the alert issues to the users.
    Regards
    Ramesh

  • Contextual Drag question.

    You know how when you have a paragraph of text or something in Safari or whatever and you right-click a sentence to bring up the contextual menu to correct spelling? Well, if you change your mind and click out of it, but accidentally move the mouse while the button is pressed, the text will think it has been dragged to a new location and move. What is the purpose of this? The only thing it leads to is messing up the order of what you typed and making you have to hit ⌘Z to undo if you caught it right away.

    Hi Dreamr,
    I consider it a nuisance also, even though I paid big bucks back in '89 to get a Text Editor for my Ataris with that exact same function... LOL.
    It would have it's uses, but far to infrequent for it to be "Automatic"!

  • ALI Scripting Framework question: PTPortalPage() - I can't find any example

    I can't successfully create an array or portlet objects using the getPortlets() method of the PTPortalPage object in a portlet using the ALI scripting framework.
    The .zip file containing scripting framework samples (https://codesamples.projects.dev2dev.bea.com/servlets/ScarabDownload/resultpos/-1/nbrresults/0/remcurreport/true/template/ViewAttachment.vm/attachid/5124/filename/ALI_Scripting_Framework_Samples.zip) doesn't have any examples.
    var arrPortlets = new Array(PTPortalPage.getPortlets());
    alert(arrPortlets.length);
    This code says I only have one portlet on the page, but I have 3. Also, I'm unable to loop through the one in returned and turn it into PTPortlet object so that I can get the name and id of the portlet.
    Does anyone have a code sample on how to loop through the portlets on a page using the ali scripting framework's PTPortalPage.getPortlets()?

    Got it. I wouldn't particularly call the return value of the getPortlets() method an array of PTPortal objects - but rather it's just an array of ids.
    var arrIDs = PTPortalPage.getPortlets();
    for (var i in arrIDs)
    var portlet = new PTPortlet.getPortletByID(i);
    alert("pid: " + portlet.id + ", name: " + portlet.name);
    }

  • Read me for all OA Framework Questions

    Hi all,
    I'm trying an experiement with this thread posting. Hopefully, when people search the JDeveloper Forum for OA Framework problems, they will find this thread.
    OA Framework, also known as OAF, is a technology that is used in Oracle E-Business Suite (sometimes called EBS, Oracle ERP, Oracle Applications, etc). The tool used to develop OAF pages/customize existing ones is based upon JDeveloper (you can only download OA Framework from Metalink - it's a patch), which is why a lot of people ask about it on the JDeveloper/ADF Forum. However, the technology is so specific, that is really best to:
    ask on the [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum. You'll get a much better answer over there!
    Best,
    John
    Search terms included below in order to make people find it when they search ;) - I'll update this occasionally as more terms come to mind
    OAF
    OA Framework
    personalization "seeded page" R11 R12 CU2 fnd fnd.framework OAPage OAException OAPageBean DBC iExpense XMLImporter RUP4 RUP5 "advanced table" OA_JAVA OA_HTML JAVA_TOP FND_TOP HRMS "self-service page" RUP6 11.5.10 11.5.10.1 11.5.10.2 ICX_SESSION ICX_SESSION_FAILED "concurrent manager" DFF flexfield OARadioButtonBean jpximport

    push it up again...
    Timo
    Edited by: Timo Hahn on 20.07.2009 11:45
    Edited by: Timo Hahn on 27.07.2009 12:07

  • Scheduling Framework question

    Using the Flex scheduling framework, how do draw a verticle
    line at the current time. Basically, using demo example 6, and
    clicking it's "now" button, i'd like to draw this line when I press
    the "now" button ... subsequent clicking of the button should
    redraw the verticle line at the current time again.
    Any help greatly appriciated.
    A

    Hi,
    Delivery schedule lines are created which specify how much quantity of a material and by what date it should be delivered.
    These delivery schedule line are with reference to the scheduling agreement which is  a like contract between a company and a supplier to supply a list of materials within the specified time frame, at agreed time frame and with the agreed advance notice.
    Regards
    Datta

  • Best use of framework events in application architecture

    Hello,
    I apologize in advance if this is not the appropriate forum to be posting about Flex framework questions.  I considered the Cairngorm forum, but thought the question applied more broadly to all flex frameworks. That, and it seems that the Cairngorm forum isn't really very active.
    My question is about using frameworks for application architecture. Reading the "Introducing Cairngorm" document,  I see that it specifically says that Cairngorm events are just those events that will handle business logic (things like grabbing data from a server, committing data to a server, etc).  So then, how does a view interact with a controller when changing state?
    Let's say I have two or three different views of the same data and I have a buttonbar to switch to the view I want. Is it then typical to dispatch a Cairngorm (or Mate/Swiz/Pure MVC, etc..)  event to the controller to change the view state of the application?  Does this effectively mean that for every button a user can click on, we'll have an event and a command associated with that event to perform some change of state or business logic? With a moderately complicated application, with several different screens, a few forms, a couple of lookups, i.e. lots of buttons for user input, that seems like an awfully huge number of events/commands...? Or do you dispatch a regular old flash Event to handle this? Or does the view data bind to the model to change the view state?
    Obviously there's never any single correct answer to application architecture questions, but I'd like to know if there's any general best practices that I should follow. I don't want to under-architect OR over-architect my app.  I'm new to Flex programming and would like not to code something egregiously ugly.
    Thanks,
    Cory

    Hi,
    Consider this, there is no such thing as an enterprise level RIA, the whole concept behind thin client was to restrict the enterprise requirements to the backend, that being said if we assume that a flex application is specifically for the client end and can maintain its own state and that MVC frameworks are more about enterprise solutions then the whole framework argument becomes what it is, academic BS.
    <start rant>
    Its really simply, in half a century nothing has changed, you have rules and requirements(model), you have access to that(view) and you wrap it up as a program/application(controller) so  why do you need convoluted multilayer abstraction of functionality to make things work ? maybe so those that can't get a real development job can run around and preach at conferences, how else could they feed their adopted kids.
    So all those nice buzzwords, design patterns(the new age terminology for modular architecture), model/view/controller, borg coding(resistance is futile) is all very fine if you want to act smart but producing quality code actually means you are smart. As you may have guessed I am not a strong proponent of MVC frameworks, and I don't even need to get into the argument that everytime a 'framework' expert gets control of a project that isn't done in their MVC  poison of choice it gets a rewrite, clients really love those associated costs and retesting requirements.
    </end rant>
    You only need 1 framework for flex and thats the flex framework.
    Have a read this blog, the section on MVC and Flex is very interesting if not overly polite.
    http://www.herrodius.com/blog/216
    David

  • Contextual event in reverse direction ( from child TF to parent view )

    Hi ,
    It seems all example of Contextual events talk about mirroring input value from Parent page to Child TF running in a region and there are numerous examples out there.
    What I wanted to accomplish was that an lov in a child TF triggers a contextual event and the parent TF takes the selected list of values. It needs to conduct a search based on these values and than mark the rows in a (tree)table.
    What has succeeded is almost all aspects of this. I can fire the event and receive it successfully. But the problem is the the backingBean class that I create via EL is not binded to my parent pages components. The treetable component returns null.
    My handler code (the handler code from the bean which you use to create the data control to listen to the cntxtual event) is almost 1:1 to as the code from the book "Oracle Fusion Developer Guide: Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces", Chapter 6, page 210.
    public void receiveEvent(
    DCBindingContainerValueChangeEvent incomingPayload){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    Application app = fctx.getApplication();
    ExpressionFactory exprFactory = app.getExpressionFactory();
    ValueExpression valExpr = exprFactory.createValueExpression(
    elctx,
    //reference the managed bean that holds the mirror value
    //property displayed in the input text field
    "#{backingBeanScope.ConsumerBackingBean}",
    Object.class);
    ConsumerBackingBean consumer = null;
    consumer = (ConsumerBackingBean)valExpr.getValue(elctx);
    //get the changed attribute value from the contextual event
    //payload
    String newValue = (String)incomingPayload.getNewValue();
    //set the new value to the backing bean property that is
    //referenced by the input text field in View 3
    consumer.setMirrorValue(newValue);
    AdfFacesContext adffacesContext = null;
    adffacesContext = AdfFacesContext.getCurrentInstance();
    //partially update the text field to display the new value
    adffacesContext.addPartialTarget(consumer.getMirrorTxt());
    The #{backingBeanScope.ConsumerBackingBean} evaluates in my case to fine. But every component I should see as binding in the bean is null.
    Since the handler is declared in the pageDef of this parent page Fragment, i assumed the last bit about it being able to get to the backing bean and hence to my components should also be possible.
    If I cant refresh my components than I dont see the use of the contextual frameworks for me.

    You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
    It demonstrates one way of saving and restoring data when pushing and popping a view.

  • Finding jsp file for the OA framework

    hi all,
    i working in the OA framework, and i need to do some changes in the application and i need to get the jsp files for the shopping carts, i connected to the server through ftp.
    from the about link in the shopping cart it says that the OA_HTML found in the path /u01/applcrp2/crp2comn/html/ but i coudn't find the jsp files for the shopping cart, i also need to locate the java classes for this files
    any help please, is there any documentation on this issue - the location of the files in the OA framework in the server.
    urgent please any tipes
    Mahdi

    Oracle guys - maybe it's time for a "sticky" post at the top of the forum entitled This is not the right forum for asking OA Framework questions.
    The OA Framework Forum is [url http://forums.oracle.com/forums/forum.jspa?forumID=210]here
    I am going to become the top poster on this forum just responding to these ;)
    John

  • Hi Error while running project

    Good day all,
    When running from testpg.xml under my project workspace from my oracle jdeveloper enviroment i get this error:
    Kindly help out on steps to resolve this error
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Jdeveloper\OAF\jdevbin\jdk\bin\javaw.exe -client -classpath C:\Jdeveloper\OAF\jdevbin\j2ee\home\oc4j.jar;C:\Jdeveloper\OAF\jdevbin\jdev\lib\jdev-oc4j.jar -Xbootclasspath/p:C:\Jdeveloper\OAF\jdevbin\jdev\appslibrt\ojdbc14.jar;C:\Jdeveloper\OAF\jdevbin\jdev\appslibrt\nls_charset12.zip -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -Dhttp.proxyHost=10.0.20.28 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=10.0.4.20|10.0.1.47|crm* -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config C:\Jdeveloper\OAF\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Auto-unpacking C:\Jdeveloper\OAF\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\applications\soap.ear... done.
    Auto-unpacking C:\Jdeveloper\OAF\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\applications\soap\soap.war... done.
    Auto-deploying soap (New server version detected)...
    Auto-unpacking C:\Jdeveloper\OAF\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\applications\bc4j.ear... done.
    Auto-unpacking C:\Jdeveloper\OAF\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\applications\bc4j\webapp.war... done.
    Auto-unpacking C:\Jdeveloper\OAF\jdevhome\jdev\system9.0.3.5.1437\oc4j-config\applications\bc4j\cabo.war... done.
    Auto-deploying bc4j (New server version detected)...
    Auto-deploying file:/C:/Jdeveloper/OAF/jdevhome/jdev/system9.0.3.5.1437/oc4j-config/default-web-app/ (New server version detected)...
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 27343 ms.
    Auto-deploying file:/C:/Jdeveloper/OAF/jdevhome/jdev/system9.0.3.5.1437/oc4j-config/applications/soap/soap/ (New server version detected)...
    Auto-deploying file:/C:/Jdeveloper/OAF/jdevhome/jdev/system9.0.3.5.1437/oc4j-config/applications/bc4j/cabo/ (New server version detected)...
    Auto-deploying file:/C:/Jdeveloper/OAF/jdevhome/jdev/system9.0.3.5.1437/oc4j-config/applications/bc4j/webapp/ (New server version detected)...
    Auto-deploying OA Framework images (New server version detected)...
    Auto-deploying OA Framework web application deployment descriptor (New server version detected)...
    Oracle9iAS (9.0.3.1.0) Containers for J2EE initialized
    Auto-deploying OA Framework web application deployment descriptor (New server version detected)...
    ApplicationServer: appName = APPS_OA
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = soap
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 1781 ms.
    Error creating the ORB :
    Auto-deploying OA Framework web application deployment descriptor (New server version detected)...
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 3500 ms.
    ApplicationServer: appName = APPS_OA
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = soap
    Error creating the ORB :

    This is an OA Framework question and should be posted on the OA Framework forum.

  • Data from SOAP response not getting into Flex object

    I'm trying to get data from an ALM application we use(Collabnet TeamForge) using a SOAP webservice, and am running into a problem.  I should mention that I am new to both Flex, and webservices.
    I used the "Import Web Services" option in Flex Builder 3, and had it generate code for all operations in the WSDL.  Some of them work just fine.  However, there are several where the data from the SOAP response does not get into the Flex object. The senario that doesn't work is when the response contains a data type that extends another datatype.  In TeamForge, they have a type called TrackerSoapRow.  It extends FolderSoapRow, adding 3 fields.  The problem seems to be that in the response from TeamForge, the 3 fields defined in TrackerSoapRow are in the middle of the fields defined in FolderSoapRow.  I've debugged into it, and the problem occures in mx.rpc.xml.XMLDecoder.getApplicableValues( starting at line 2204 of XMLDecoded.as).  As I read the code, the only way a match can be found is if the fields in the response are in the exact same order as in the definintion.  When its processing the extended data type(  by a call to XMLDecoder.decodeComplexExtension ) at some point, one of the derived type's fields is encountered, and the process stops.
    I have called the service using soapui and verified that all the data I expect is in the response.
    As I mentioned, I'm new to web services.  So, I suppose its possible that the format of the data being returned from TeamForge is incorrect.  That they are not supposed to intermingle base and derived fields.  If thats the case, then I need to report this as a bug to Collabnet.
    All help is appreciated.
    Marc Robertson

    Not knowing any of the details about how you call a web service from OAF myself - I'd suggest you post on the proper forum for OA Framework questions: {forum:id=210}
    John

Maybe you are looking for