UIX and asserts

Does anybody know about the interaction of asserts in the ViewController layer and UIX with JDev 10.1.2?
I've coded an assert in a class and enabled the J2SE 1.4 Assertions option under project->project-properties->profiles->compiler. However when the assertion is violated, while the following code is correctly not executed, the UIX page doesn't report anything. Should it? At a broad guess I would have thought I'd see something reported in the UIX-page to say an assertion has failed.
Even running with the -Djbo.debugoutput=console option on, no assertion is logged in the console.
Regards,
CM.

UIX by default swallows exceptions and errors that may occur, for graceful handling. However when such situation occurs, the page rendered might be incomplete. If you want the application errors/exceptions to be propogated to the rendered output as an error message, you should use the <try> and <catch> elements wrapping such potential UIX code area.

Similar Messages

  • Gettin "Assertion Failed" message and "Assert: parent node must have _DOMElement set", first when trying to bookmark and then when the "auto fill" on some web sites is used. Started after 3.6.9 automatic upgrade.

    Open Firefox and navigate to web site. Try to save to bookmarks and get the "assertion Failed" message and "Assert: parent node must have _DOMElement set" followed by a list of 8 (0-8) items.

    Try the Tiny Menu extension. I am using an older version of Tiny Menu on Lucid with Firefox 3.6.x and it works fine.

  • UIX and Struts ActionForm

    Hi,
    Can I use Struts ActionForm and ADF UIX?
    Thanks

    The "Simple Hello World sample using ADF UIX and JDeveloper 10g Preview" application integrates Struts with ADF UIX.
    http://jjacobi.blogspot.com/2003_11_30_jjacobi_archive.html
    Simple ADF UIX User Input Application
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_uix_userinput_ht/index.html

  • Use UIX and JSP together

    I have some existing jsp application . I want to integrate it with UIX application that is generated from JHeadStart . jsp application is just 10% of whole project.
    I am not sure this is a good way or not . May be We should use JHeadstart to generate JSP more than UIX . but I think it 's more powerful if I use JHeadstart to generate UIX application .
    What do you recommend for this ?
    and if we have to use both together . How dose JSP application pass parameter to UIX application ? and How dose UIX pass parameter to JSP ?. and How UIX use the parameter that 's sent form JSP ?
    thanks in advance

    If JSP is only 10% you might want tpo consider migrating these pages to UIX.
    If this is not an option, you should be able to use both UIX and JSP pages. However, make sure you create separate struts-config.xml files for the JSP-based subsystem and the UIX-based subsystem. This requires two se[parate ViewController projects, that act as one web application. The same setup that has been aplied to Th JHeadstart demo application in Jhs 10.1.2.1. Check out this article from Duncan Mills as well:
    http://www.oracle.com/technology/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html
    One addition to this articel: the source path property of the ViewController projects shopuld be the same as well.
    As far as communication between the pages is concerned: this is no different then between UIX pages. You can pass request parameters around, and since the pages are running in the same web app, they share the same HttpSession.
    Steven Davelaar,
    JHeadstart Team.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Uploading xml file using ADF UIX and storing in ordsys.orddoc field

    I am using ADF UIX and I am using the messageFileUpload tag to upload an XML file into the database (the file contains special characters like hyphens, apostrophes, $, etc). Once in the database I have a procedure which puts it into a clob field using the dbms_lob package. However, what exactly does ordsys.orddoc do with special characters? If I debug my procedure I see that 1 of 4 hyphens and 3 apostrophes have been turned into a character that looks like a square. Anyone know what is going on?

    It should pass binary information only, no conversion at all.
    The conversion is likely in messageFileUpload or the dbms_lob package you are using. Or you may need to tell DBMS_LOB the character set the XML file is in?
    You may want to upload the file using the interMedia tag library... Using uploadFormData?
    http://www.oracle.com/technology/software/products/intermedia/htdocs/descriptions/tag_library.html
    http://www.oracle.com/technology/products/intermedia/htdocs/jsptaglib/html/toc.htm
    Larry

  • ADF UIX and Javascript

    Hello,
    I am new in ADF UIX...
    I have a table in ADF UIX and I would like to use some my javascript functions. I know I have to set: <table proxied="true">....</table> but where I can write my functions, in an included file ? I mean, how does the interaction between the XML configuration file and javascript work ?
    Thank in advance,
    Henry

    Hi Rade Todorovich,
    As mentioned previously, if you had placed the javascript as indexed child of head element it would be fine.
    <Head> is named child of <metaContainer> which inturn is named child of <document> element. The example below should make it clear.
    This is how the UIX document would be
    <?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>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title="test">
    <contents>
    <!-- case 1 -->
    <script source="./cabo/js/test.js"/>
    <script>
    <contents>
    function theFunction()
    alert('the function');
    </contents>
    </script>
    </contents>
    </head>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <!-- case 2 -->
    <contents>
    <script>
    <contents>
    function hi()
    alert('hi');
    </contents>
    </script>
    <button text="call-hi" name="fn" onClick="return hi();"/>
    <button text="call-theFunction" name="fn1" onClick="return theFunction();"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    There are two usages:
    Case 1
    In your html it would just appear the way you would normally write a JS function with in the head
    <html>
    <head>
    <title></title>
    <META>
    <script language="javascript" src="./cabo/js/test.js">
    <!-- case 1-->
    <scirpt language="javascript">
    theFunction()
    </script>
    </head>
    <!-- case 2 -->
    <form ....>
    </form>
    <script language="javascript">
    function hi()
    alert('hi');
    </script>
    </html>
    Case 2
    As such <script> element can occur in HTML document.
    as mentioned in http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1
    In the same way UIX also allows the use of script element with in its <body> element.
    With case 2 you can see the way the script gets inlined in the HTML document. Please run the UIX and view source for the rendered page. It should become obvious.
    Thanks,
    Vijay Venkataraman

  • Adf uix and 800*600 resolution

    We need to develop an application with adf uix and 800*600 resolution.
    It seems that uix rendering is not so fine with 800*600 resolution.
    What is the suggested workaround to this problem?
    Do we need to customize the look and feel (and what customization steps do we need to perform) or what else?
    Thanks in advance, Mauro

    800*600 did work until for a couple of days ago when it did start saying "sync. out of area"
    Its a siemens something screen... 5 years old...
    i did look at the cable to the screen one "pigg" of the 15 "piggs" are missing.. could it be some problem there... all other res. are working without a problem..
    the screen should work at 800*600 at 100hz

  • UIX and JSF

    Wish you all a very happy new year !!
    Any comparisons between Oracle's UIX and JSF.
    Thanks in advance

    As one of the JSF EG members, and a lead developer on the UIX project at Oracle, I'm pretty sure I can help!
    I think of the currently available version of UIX as an ancestor of JSF - a number of the ideas in JSF originate from work we did at Oracle. JSF also resolves some of the architectural limitations we've encountered as we've moved UIX forward.
    We've publicly committed to moving UIX onto the JSF framework; you can read about the details at:
    http://otn.oracle.com/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    Some of the features UIX will bring to the JSF table include a large high-level component set, customizable look-and-feels, WYSIWYG development, and declarative XML UI development.
    BTW, just to be thorough, since I've seen this misstated elsewhere, UIX (and the ADF framework in general) are not tied to the Oracle J2EE server, or the Oracle database. They can be deployed to other servers and other databases.
    -- Adam Winer (EG member)

  • Are JDev9i UIX and BC4J application server dependent?

    Are UIX and BC4J application server dependent?
    If I use JDeveloper9i to build an application using UIX XML + BC4J + Java, then can this be deployed on IBM Websphere, Web Logic, Oracle 9iAS, etc...?

    BC4J and UIX are not tied to any application server. They are "just" a collection of jar files that you can deploy to any application server.
    Check out the how-to section to see the doc about deploying BC4J to other application servers at:
    http://otn.oracle.com/products/jdev/howtos/content.html
    (more info in the online help).
    Also check out otn's home page later today for a daily feature about BC4J openness.

  • File upload, download using ADF UIX and not JSP

    I have examples for the file upload, download using JSP
    But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
    Users will select a file from their desktop
    This will be stored into the database (Any document. Word, Excel)
    When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local system

    Sure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
    The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
    public class ProgressListenerImpl implements ProgressListener {
        private int percent = 0;
        public int getPercentComplete() {
            return percent;
        public void update(long pBytesRead, long pContentLength, int pItems) {
            if (pContentLength > -1) { //content length is known;
                percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
    }So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
    ServletFileUpload upload = new ServletFileUpload();
    ProgressListenerImpl listener = new ProgressListenerImpl();
    upload.setProgressListener(listener);
    request.getSession().setAttribute("ProgressListener", listener);
    ...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
    ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
    response.getWriter().println("" + listener.getPercentComplete());
    ...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
    HTH

  • UIX And MS Internet Explorer

    Hi.
    Why does MS Internet Explorer always give (Error in JavaScript) when usin UIX.
    Netscape and Mozilla firefox does not give any errors.
    Is there any way to solve the problem of the Internet Explorer (Because most of people use MS Internet Explorer).
    Thank's.
    Omar Dawod.

    Hello
    I think i am spotting the iceburg of the problem.
    I managed to recogonize the pattern the leads to such problem, it may be caused by my specific application, because i was not able to re-repoduce it. I will explain the behaviour and the solution more thoroughly when i find the solution... it has something to do with the fact that the URL seems to get stuck to certain address while navigating.. I will resolve it but still do not understand why Mozilla does not have it

  • Oracle ADF UIX and Struts

    Does Oracle ADF UIX use Struts components internally? If yes, Does Oracle Support the issues that arises because this internally used Struts components? (I am using Oracle ADF in my application.
    Thanks,
    Aravind.

    DataForwardAction and DataAction are build on top of struts actions to coordinate ADF databindings and it's life cycle;
    UIX, has xmlns:struts="http://xmlns.oracle.com/uix/struts" this XML namespace has some elements like
    <struts:form> and <struts:messageTextInput> also <struts:dataScope>
    They work like struts jsp tag;
    here a good paper;
    http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/struts.html
    Marcos Ortega
    Brazil

  • How to create search engine (with UIX and BC4J) across nested VOs?

    Suppose I have N:N relationship beetween the DB tables so the intermediary table is created (PK is Primary Key, FK is foreign key):
    table1 (PK_ID1, ATTR11, ATTR12...)
    table2 (FK_ID1, FK_ID3) //where both FKs are Primary Key this is intermediary table
    table3 (PK_ID3, ATTR31, ATTR32...)
    The goal is to create a data model (ie EOs, VOs and AM) so that I can create a search page in UIX that would have search fields from tables 1 and 3 ! However, the search result display should return only table 1.
    for example:
    table1=INDIVIDUALS (IID, FIRST_NAME, LAST_NAME...)
    table2=EMP_PHO(IID, PID)
    table3=PHONES(PID, PHONE)
    so an individual may have more than one phone and one phone may belong to more then one individual (ie family home phone)
    and say, I want to search by phone number (PHONE) and to return individuals in a table?
    Please help

    Hai Nikhil,
    Please find below sample code for your report logic.
    REPORT  ZJAK1.
    tables:makt.
    select * from makt where maktx like 'test%'.
    write:/10 makt-maktx.
    endselect.
    output of this program
    tested
    test
    test forcast
    if useful please provide points.
    Jaheer

  • Async tests and Assert throws exceptions

    Hi,
    In a regular non-async test, something like Assert.assertEquals( "apples", "oranges" ); gives a nice report that the strings didn't match.  The test fails and the suite continues and all is good.  If the test is asynchronous, though, you get an uncaught exception, and a timeout on the test rather than a nice report.  Worse, it will cause a command-line based test to freeze with a stack trace showing (if you have a debug version of Flash, of course), until you hit the dismiss button.
    Here's an example.  Without the Assert.assertEquals line, the test passes after two seconds as expected.  With the Assert.assertEquals in place, you get the behaviour I described.  So the question is, how do I use asserts in an asynchronous test?  I want the behaviour that you get with synchronous tests, i.e. a nice report and no pop-up dialog showing the stack.
            const TEST_COMPLETE:String = "testComplete";
            [Test(async)]
            public function myAsyncTest():void   
                Async.proceedOnEvent( this, this, TEST_COMPLETE, 5000 );
                var t:Timer = new Timer(2000, 1);
                t.addEventListener(TimerEvent.TIMER, timeout);
                t.start();
            private function timeout(e:Event):void
                Assert.assertEquals( "apples", "oranges" );
                dispatchEvent( new Event(TEST_COMPLETE) );
    Any help?
    Thanks!
    DB

    The code you have below doesn't do what you think it does.
    When you setup an async test in FlexUnit, it needs to know what code is related to a given test. When you use items like the asyncHandler() methods, it basically calls that code in a way that watches for assertions and can manage to track them when they occur.
    In your code, you are setting up a timer and that timer is calling another method which does an assertion. The timer calls that code directly from the top of the call stack... in other words, completely outside of FlexUnit. FlexUnit doesn't know your method is being called and cannot wrap the call in order to catch any information thrown from your assertion.
    Can you describe what you want to do and I can advise you on the right syntax? It isn't that assertions work differently in async tests, it is that FlexUnit has no idea that the timeout() method is being called, Flash Player is calling it directly, and hence there is no way for it to watch the assertion.
    I am guessing you want something more alogn the lines of this, but I am not sure:
    Test(async)] 
    public function myAsyncTest():void{
    var t:Timer = new Timer(2000, 1); 
    var handler:Function = Async.asyncHandler( this, timeout );t.addEventListener(TimerEvent.TIMER, handler );
    t.start();
    private function timeout(e:Event, passThroughData:Object ):void
    Assert.assertEquals(
    "apples", "oranges" );}

  • UIX  and Struts

    I wanted to know where can I find detail technical information about integration of struts and UIX.

    Hi Prashant,
    See the UIX Developer's Guide chapter "Using uiXML With Struts" in the JDeveloper 9.0.3 help system.
    Regards,
    Jeffrey Stephenson
    Oracle Corporation

Maybe you are looking for

  • ODBC SQL_ATTR_PARAM_BIND_OFFSET_PTR  and SQLPrepare

    I am having a problem with Oracle ODBC driver 9.02.00.65 when using both parameter bind offset pointer and peparing the statement using SQLPrepare. If the statement is not prepared then the parameter bind offset pointer is used correctly by the drive

  • Mac mini + ASUS VW192s - not correct detected !

    Hi. ASUS VW192s detect on Mac mini as Standart VGA monitor without wide resolution 1440x900 !. How fix it ?

  • Date is not inserted in the DB table

    Hi,      I have a view, showing some data, including date and I have a save button. View has some of the fields update able. When I click the save button a bean function is called which run the query to update values in the DB table, taking those val

  • Change Employee Group in MSS

    Hello Everyone, I created a 'Change Employee Group/Subgroup' request and it was successful. Now, where is this request supposed to be approved? I believe this has to do with configuring UWL and Workflow. Can anyone guide me on the procedure please? R

  • ACE:HTTPS rewrite issue

    Hi There, Client is working in front of 2 server farms behind the same ACE. Client is initiating HTTPS session in front of server farm #1 while ACE functioning as SSL termination. Client is cliking on one of the links in the web page and start HTTP o