10g Preview: Handling included form

I have a page that looks in part like this:
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
                                                <include node="${ctrl:parsePage(uix,'controlView')}"/>
    </content>
    <handlers>
        <event name="refresh hideControls" source="controlForm">
            <method class="com.avega.portlets.view.EventHandler"
                    method="handleControlFormSubmit"/>
        </event>
    </handlers>
</page>The included 'controlView' looks in part like this:
<?xml version="1.0" encoding="windows-1252"?>
<form xmlns="http://xmlns.oracle.com/uix/ui" name="controlForm">
    <contents>
        <submitButton text="Refresh" event="refresh">
        </submitButton>
        <submitButton text="Hide Controls" event="hideControls">
        </submitButton>
    </contents>
</form>I had originally tried to include more page-level elements in the controlView.uix file and put the event handler there, but I always got an unhandled event exception, so I put the handler out in the main page.
The event hander looks like this:
     public static EventResult handleControlFormSubmit( BajaContext context, Page page, PageEvent pageEvent ) {
          MutableState pageState = getMutableState( context, page );
          Informant.debug( "pageState.time = "+pageState.getValue("Time") );
          Informant.debug( "page.getProperty('Time') = "+page.getProperty("Time") );
          pageState.putValue( "Time", page.getProperty("Time") );
          page.setState( pageState );
          return new EventResult( page );
     public static MutableState getMutableState( BajaContext context, Page page ) {
          StateManager stateManager = context.getStateManager(true);
          State oldState = page.getState();
          if ( oldState == null ) {
               return stateManager.getNewState();
          } else {
               return StateUtils.cloneState( stateManager, oldState );
     }Now I'm not getting any exceptions, but the event handler isn't being called. I'm really just trying to get the debugging printouts at this point, to learn how the State works, but the page just redisplays and the printouts in the event handler never seem to get called.
What am I missing?

John -
The "source" of the event is going to be the id of the submitButton which fires the event - not the form name. So, try changing:
<event name="refresh hideControls" source="controlForm">to:
<event name="refresh hideControls">And I believe your event handler should be called.
Andy

Similar Messages

  • How install Oracle Developer Suite 10g for Linux (Including Forms & Reports

    hi
    i want to install Forms & Reports Developer Suite in Linux OS So i have downloaded From OTN Site
    "Oracle Developer Suite 10g for Linux (Including Forms & Reports)"
    These are the File's i have Downloaded:
    as_linux_x86_ids_101202_disk1.cpio
    as_linux_x86_ids_101202_disk2.cpio
    so in the Oracle Documentation Site they have given Guide as Follows:
    $cpio -idmv < as_linux_x86_ids_101202_disk1.cpio
    $cpio -idmv < as_linux_x86_ids_101202_disk2.cpio
    after that what should i do ...
    How to Install Oracle Developer Suite 10g for Linux (Including Forms & Reports)
    Kindly Reply ASAP

    Pl follow the steps in the Install Guide - http://download.oracle.com/docs/cd/B19375_02/doc/frs/install/B19314_02/toc.htm
    Srini

  • Pdf Preview Handler Error outlook 2010 Server 2008

    Pdf Preview Handler Error in outlook 2010 32.bit and Server 2008 64.bit. Using Adobe X. Registry app id correct. Turned on previewer in outlook in trust center. Repaired adobe installation. All to no avail. Any thoughts or fixes. Please Help

    Hello i got nearly the same problem. Selecting the .pdf attachment in outlook. error code says that no preview can be showed, because the needed preview isn't installed.
    Server 2012 R2 as Terminalserver, Outlook 2013, newest version of adobe reader XI.
    I've already checked the following:
    - outlook>options>trustcenter>trustcenter settings>attachment handling .. the box disable preview is clear .. furthermore outlook>options>trustcenter>trustcenter settings>attachment handling>attachment and documentpreview .. all
    boxes including pdf preview handler are filled.
    - adobe reader XI>edit>presettings?>e-mail-account ... outlook is standart.
    - Registryentry: "Change the AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}"
    - also i repaired the adobe installation and i reinstalled it a few times.
    - even checked the access-rights on the temp. directorys outlook uses for attachments and the users have full access.
    i have no more clue what it can be..
    so may you have the solution for me or at least some tips.
    Thanks,
    Nikolai

  • How to include form bookmarks in assembled document

    Hello
    My assembled documents consists of pdf forms and pdf converted from word documents).  The forms are multi-paged so I would like to bookmark the major sections of the form.  Ideally the ouput document would have bookmarks created  from the the source bookmarks.  However, when the input
    to the assembler include a pdf form with bookmarks the resulting assembled document does not open cleanly.  A popup appears (Warning: JavaScript Window) containg the message:  "This PDF form requires a newer version of Adobe Acrobat...."
    My question is does the assembler handle PDF Forms with bookmarks ( The form bookmarks were added in Designer using JavaScript). Maybe another module (Form ES) is required.  Thanks for any information or insight.  jb1809

    Hello
    I am using ES2 version of LiveCycle.  Thanks for any insight.
    Regards

  • Terrible Performance with 10g preview

    I have serious performance problems with the 10g preview during basic operations.
    Very frequently, it just locks up, using 100% CPU for 5-10 seconds.
    It seems to occur every time I change window, for example
    - double click on an error message in either the Compiler window or the Structure window and I have to wait 10 seconds before the cursor is active in the code editor.
    - double click on a file in the navigator, 10 seconds before the opened file can be edited.
    - click on an item in the HTML component palette
    - close a code editor window. Can't use the next window for 10 seconds (this is less reliable than the others)
    I am running NT4 SP6 on a PIII 500Mhz with 512M of memory. According to task manager, I am not using all the memory yet.

    I hit the virus scanner problem when I first started using 903, but that is not the problem now.
    Here is a dump produced as described.
    Full thread dump OJVM Client VM (9.0.5.972 4dopv):
        "AWT-EventQueue-0"    prio: 6    state: runnable
        "AWT-Shutdown"    prio: 5    state: waiting for notification of monitor 0x1D1D7C24
            void java.lang.Object.wait(long)
                native code
            void java.lang.Object.wait()
                Object.java:426
            void sun.awt.AWTAutoShutdown.run()
                [locked monitor 0x1D1D7C24]
                AWTAutoShutdown.java:259
            void java.lang.Thread.run()
                Thread.java:536
        "Java2D Disposer"    prio: 10    state: waiting for notification of monitor 0x1D257D84
            void java.lang.Object.wait(long)
                native code
            java.lang.ref.Reference java.lang.ref.ReferenceQueue.remove(long)
                [locked monitor 0x1D257D84]
                ReferenceQueue.java:111
            java.lang.ref.Reference java.lang.ref.ReferenceQueue.remove()
                ReferenceQueue.java:127
            void sun.java2d.Disposer.run()
                Disposer.java:97
            void java.lang.Thread.run()
                Thread.java:536
        "WeakDataReference polling"    prio: 1    state: waiting for notification of monitor 0x1E4FB124
            void java.lang.Object.wait(long)
                native code
            java.lang.ref.Reference java.lang.ref.ReferenceQueue.remove(long)
                [locked monitor 0x1E4FB124]
                ReferenceQueue.java:111
            java.lang.ref.Reference java.lang.ref.ReferenceQueue.remove()
                ReferenceQueue.java:127
            void oracle.ide.util.WeakDataReference$Cleaner.run()
                WeakDataReference.java:88
            void java.lang.Thread.run()
                Thread.java:536
        "AWT-Windows"    prio: 6    state: runnable
            void sun.awt.windows.WToolkit.eventLoop()
                native code
            void sun.awt.windows.WToolkit.run()
                WToolkit.java:253
            void java.lang.Thread.run()
                Thread.java:536
        "IdeMinPriorityTimer"    prio: 1    state: waiting for notification of monitor 0x1F74216C
            void java.lang.Object.wait(long)
                native code
            void java.lang.Object.wait()
                Object.java:426
            void java.util.TimerThread.mainLoop()
                [locked monitor 0x1F74216C]
                Timer.java:403
            void java.util.TimerThread.run()
                Timer.java:382
        "IconOverlayTrackerTimer"    prio: 5    state: waiting for notification of monitor 0x1CFCA064
            void java.lang.Object.wait(long)
                native code
            void java.lang.Object.wait()
                Object.java:426
            void java.util.TimerThread.mainLoop()
                [locked monitor 0x1CFCA064]
                Timer.java:403
            void java.util.TimerThread.run()
                Timer.java:382
        "IconOverlayTrackerTimer"    prio: 5    state: waiting for notification of monitor 0x1E1D64E4
            void java.lang.Object.wait(long)
                native code
            void java.lang.Object.wait()
                Object.java:426
            void java.util.TimerThread.mainLoop()
                [locked monitor 0x1E1D64E4]
                Timer.java:403
            void java.util.TimerThread.run()
                Timer.java:382
        "TimerQueue"    prio: 5    state: waiting for notification of monitor 0x1D51E514
            void java.lang.Object.wait(long)
                native code
            void javax.swing.TimerQueue.run()
                [locked monitor 0x1D51E514]
                TimerQueue.java:231
            void java.lang.Thread.run()
                Thread.java:536
        "Finalizer"    prio: 8    state: waiting for notification of monitor 0x1CDFC134
            void java.lang.Object.wait(long)
                native code
            java.lang.ref.Reference java.lang.ref.ReferenceQueue.remove(long)
                [locked monitor 0x1CDFC134]
                ReferenceQueue.java:111
            java.lang.ref.Reference java.lang.ref.ReferenceQueue.remove()
                ReferenceQueue.java:127
            void java.lang.ref.Finalizer$FinalizerThread.run()
                Finalizer.java:159
        "Reference Handler"    prio: 10    state: waiting for notification of monitor 0x1CDFC124
            void java.lang.Object.wait(long)
                native code
            void java.lang.Object.wait()
                Object.java:426
            void java.lang.ref.Reference$ReferenceHandler.run()
                [locked monitor 0x1CDFC124]
                Reference.java:113
        "WaitCursorTimer"    prio: 5    state: waiting for notification of monitor 0x1F11E28C
            void java.lang.Object.wait(long)
                native code
            void java.lang.Object.wait()
                Object.java:426
            void java.util.TimerThread.mainLoop()
                [locked monitor 0x1F11E28C]
                Timer.java:403
            void java.util.TimerThread.run()
                Timer.java:382
        "main"    prio: 5    state: idle
        "VM Tasks"    prio: 1    state: runnable
        "Signal Dispatcher"    prio: 1    state: idle

  • Compile error with Jdev 10g Preview

    I am trying out Jdev 10g with JHeadstart. I followed the instruction on the Oracle JHeadstart 10g and Oracle JDeveloper 10g preview document, and then used the isnstructions on the NewJhsProjectInstructions.html document.
    The first time I tried to compile the project, I got a whole list of errors which looked like;
    /usr/oracle/jhs904/jheadstart/src/jhsruntime_source.zip!/oracle/jheadstart/model/bc4j/JhsApplicationModuleImpl.java
    Error(143,31): cannot access class oracle.cle.persistence.HandlerNotFoundException; file oracle/cle/persistence/HandlerNotFoundException.class not
    This was due to Jdeveloper trying to compile jhsruntime_source.zip. I removed this from the java source path and added jhsruntime.jar.
    I am now getting thisError(22,53): cannot access class oracle.jheadstart.model.bc4j.handler.DataObjectHandlerImpl; file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class not found error;
    I have checked, and cinfirmed that the class file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class is in jhsruntime.jar.
    The Java Source path in Jdeveloper is ;
    /home/chandana/jdevhome/mywork/JHS/src;/usr/oracle/jhs904/jheadstart/lib/jhsruntime.jar.
    Can some one tell me what is wrong ?

    Hi Chandana,
    You should not put jhsruntime.jar in the Java Source Path. It should be in the Additional Classpath.
    The Java Source Path (Project Settings - Common - Input Paths) should only contain /home/chandana/jdevhome/mywork/JHS/src .
    If you created the library JhsLibs the way it was described in the JDev 10g document, your project should now compile correctly. The JhsLibs library ensures that your project can compile against jhsruntime.jar (amongst others).
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • JDev 10g preview is out!

    The JDev 10g preview is now available:
    http://otn.oracle.com/products/jdev/collateral/prodtour10g.html
    Oracle JDeveloper 10g includes a lot of a new UIX functionality, including a UIX visual editor. Check it out!

    I'm assumming the "operation timed out" error is from your browser?
    If you are using VPN or DHCP, you'll need to specify "localhost" as the hostname where OC4J will start, and subsequently, where you're JSP will be deployed. Go to Tools -> Embedded OC4J Server Preferences. Select Startup and specify the host name as "localhost". Redeploy and you'll be able to access your JSP using http://localhost:8988/simple_jsp-Project-context-root/simple.jsp
    Hope this helps,
    Lynn
    Java Tools Team

  • 10g Preview Problems

    Hello Everyone, we are hoping for some help in deploying one of the tutorial applications.
    Currently we are testing out the JDeveloper 10g preview application. We''ve been able to follow a few of the tutorials, although it seems that at least half have instructions that are only valid for previous versions of JDeveloper. Anyways, the ADF Web Application Tutorial seemed like a very simple example that shows one how to leverage this new technology. Specifically we followed the, "Developing a Web Application Using the Default Technology Scope Tutorial" tutorial. We are able to follow and run this tutorial quite easily using the embedded application server with JDeveloper 10g.
    We would like to deploy this very basic application to our application server sitting out on the network. The version of this application server is 9.0.3.0.0 . So, we create a .war file and deploy this to our OC4J instance. When we attempt to goto the customers.jsp page we receive this error:
    java.lang.NoSuchMethodError
    at oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:228)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:84)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:556)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:479)
    Can anyone help us out?
    Thank you

    Thanks for the info Duncan.
    So when different documentation refers to Standalone OC4J that doesn't mean only include installations of the Oracle containers but also installations of the application server itself?
    In other words I thought that for development you might install the standalone Oracle containers but for a more production worthy environment you would run the application server suite. I was under the impression that where instructions specify updating/upgrading the standalone those instructions don't always apply to the Application server installation as well.
    Do you understand what I'm atttempting to say? I feel that since I'm very new to the J2EE environment my lack of knowledge regarding terminology and architecture is a hinderance. That said I'm not always adequately explaining my situation and or problems.
    So, in conclusion, even though we have installed the application server and not the standalone (Oracle Containers) we still need to install the adf runtimes.
    Is this correct?
    Thanks again

  • Include Forms into Apex

    Hi,
    We have an old Oracle Forms 10g application (about 200 forms).
    We are making a new Apex 3.2 application on 10g.
    As we want users to familiarize with the new interface, we want to include forms in the new Apex application. Then we will progressively replace forms content by Apex content.
    I tried to include the generated HTML code of a Form in an APEX region, it works, but it ask me again login/password for the Forms application, although I'm already authenticate in Apex. We use custom authentication scheme in apex (call to a web service), but Forms application uses database authentication.
    As I have never worked with Oracle Forms, I would not have to modify too much things on it. So is there a way to pass a login/password from apex to Forms ? As we don't use database authentication, and as we need security, we can't pass them in the url as shown in this document.
    In Roels blog, he speak about an APEX$CALL_FORM procedure but I can't find any information an that one, how to use it, parameters, etc... You have more information about it ?
    Thanks.
    Yann.

    The (or a) normal way to start forms is by entering an URL like : http://localhost:7778/forms/frmservlet?config=apex
    if you start a Form that way and look in the generated HTML you'll notice some HTML code (after <!-- Forms applet definition (start) -->).
    One of the lines is:
    <PARAM NAME="serverArgs"
    VALUE="escapeParams=true module=your.fmx userid= ...
    If you generate that HTML with a procedure you can generated the userid/password@database at that location.
    Dependent of IE or FF you have to put the code there or in the <EMBED tag further down.

  • PDF Preview handler error with outlook 2013 on RDS 2012R2

    Anyone had any issues with outlook x64 2013 office and "PDF Preview handler", we are running adobe 11 with server 2012 R2. CHecked all the recommended reg settings are correct:
    "Change the AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}"
    However still prompted with "this file cannot be previewed because of an error with the following previewer: PDF Preview handler"
    Also causes a popup box to say an internal error has occurred.
    Loads fine when you double click the attachement.

    Hello i got nearly the same problem. Selecting the .pdf attachment in outlook. error code says that no preview can be showed, because the needed preview isn't installed.
    Server 2012 R2 as Terminalserver, Outlook 2013, newest version of adobe reader XI.
    I've already checked the following:
    - outlook>options>trustcenter>trustcenter settings>attachment handling .. the box disable preview is clear .. furthermore outlook>options>trustcenter>trustcenter settings>attachment handling>attachment and documentpreview .. all
    boxes including pdf preview handler are filled.
    - adobe reader XI>edit>presettings?>e-mail-account ... outlook is standart.
    - Registryentry: "Change the AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}"
    - also i repaired the adobe installation and i reinstalled it a few times.
    - even checked the access-rights on the temp. directorys outlook uses for attachments and the users have full access.
    i have no more clue what it can be..
    so may you have the solution for me or at least some tips.
    Thanks,
    Nikolai

  • Creating secure web apps in JDeveloper 10g preview

    Hi all,
    I am trying to set up a secure web application and test it within JDeveloper 10g preview. So far, I am able to set up the correct entries in web.xml and ???-oc4j-app.xml (actually had to add the role mapping manually in the last file). I am able to automotically bring up a login form, enter my username/password and get to the protected resources. What I am not able to do is the following:
    1. Display an error page when the login fails (I get a generic HTTP 403 page instead of the page I specified in web.xml).
    2. Enable SSL. I can set the write checkboxes, etc., but instead of displaying the login form, the browser asks me to open/save the file home.do (the protected resource). I think there is some setup that is messing, but what is it?
    Any help is appreciated. Thanks.
    Ara

    Sorry, I guess I shoud have made it clearer: I am using HTTP-FORM authentication and I have specified a login and error page there. Neither page is protected (i.e., their URI pattern is not specified in the servlet deployment descriptor).
    I get the login page fine. I am also able to log in,provided I submit the right username/password. The problem comes when I submit an incorrect name/password. In that case, I get a generic HTTP 403 page instead of the error page I specified.
    Hope this provides more clues.
    Ara

  • Enable usage rights breaks the preview handler

    Hi guys,
         I am using Acrobat 9 Pro to enable the usage rights on forms I have made in Livecycle.
    The preview handler in Outlook 2010 can show the pdf before I enable usage rights but as soon as the rights are enabled, the preview is not shown anymore....
    This is also the case for the thumbnails in explorer... ok before usage rights.... error after enabled...
    Any ideas?
    O/S: Windows 7 64Bit.....

    Not with Acrobat. Adobe's LiveCycle Reader Extensions application is
    used for high volumes.
    Aandi Inston

  • SOA includes FORMS and REPORT service???

    Hi all,
    Is any one know the Oracle SOA Suite 10g Release 3 (10.1.3.1.0) includes forms and report service ??? Thanks in advance.
    Thanks,
    -james.

    Hi James,
    No, forms and reports are not included. You have to setup another iAS instance for that. The latest iAS release including forms/reports is 10.1.2.x.
    Kind regards,
    H

  • How to call a Report 10g from a parameter form..?

    Hello,
    pls i wanna know the procedure of :
    How to call a Report 10g from a parameter form..?
    regards,
    Abdetu..

    hopes it work for you.
    procedure get_report is
    pl_id paramlist;
    p_year varchar2(4);
    param_name varchar2(10) :'param';
    begin
    pl_id := get_parameter_list(param_name);
    if not id_null(pl_id_)then
    destroy_parameter_list(pl_id);
    end if;
    pl_id := create_parameter_list(param_name);
    p_year := year -- assign the value.
    add_parameter(pl_id,'p_year',text_parameter,p_year);
    execute_report('report_name',pl_id);
    end;

  • Problem with running Applets in JDEV 10G Preview

    Our Jdeveloper project has a default run target which is an Applet HTML page.
    Sometimes when a you click Run/Debug the project runs in Applet Viewer and sometimes it spawns an OC4J process and runs it in the container. It seems the execution of our project has a mind of its own. You can run/debug the same project on different developer PCs and have different execution behavior.
    How do you configure the execution environment for applets?
    If possible, it would be nice to be able to create multiple execution profiles so that we could have this applet run in OC4J sometimes and in AppletViewer other times. But it does not seem like you have control of this under the project properties.
    Thanks,
    Paul Manning

    Hi Paul,
    In the 10g preview, the code that launches applet viewer has first crack at whether it should "run" your html file. If that code thinks it should not launch applet viewer, then the code that launches OC4J gets a chance. The applet viewer launcher looks at the contents of the html file and looks for the <applet> tag. Is it possible that the contents of your html file is changing in such a way that my applet viewer launcher code isn't able to find the <applet> tag? If so, can you possibly send me your html file, or describe the applet tag(s), so that I can improve my side? I'd really appreciate it.
    In the near term future (the 10g release), when the run target can be started in different ways (like your applet html), the user will get to choose which way when he/she clicks run/debug. If you use the context menu, the run and debug items will lead to a pull-right submenu that lists all the choices. However, if my applet viewer launcher code doesn't find the applet tag in your html file, you won't see applet viewer in the list of choices.
    In the long term future we will support real multiple execution profiles.
    -Liz Looney

Maybe you are looking for

  • Interactive report with control break displays no data, until control break is unchecked

    Hello, I have an interactive report that is base upon a collection. When one first access the page the report shows no data(no errors are given) and the control break box is red. Once the control break box is unchecked, all the data is shown. Further

  • Iphone 4s update stopped, then the backup was too big!

    I was installing the latest update on my fiances iphone 4s. Then it stopped and I got some text saying the update wouldn't go. The phone was then locked with and I was prompted to connect it to itunes. Also hade a message about the simcard not being

  • Can't set account picture

    I just tried to change the picture associated with my (administrator) account. I go to System Preferences, select Accounts, select my account, unlock it, select Picture tab, select Edit..., and then either choose a picture by navigating to it in iPho

  • Session expired error for single user

    Hi, I'm getting a SessionExpiredLongJumpException in our prod portal but only for one single user. All other users can access the same page. The defaultTrace log has a specifric time in the error message saying '...or session has expired before Sat J

  • Two user tries to open the same action

    Hi, Process Default roles are assigned to "Portal Roles" instead of  "Individual user". It was found that two users can open the same action without any warnings. My requirement is if two users at the same time access the same action then some messag