Javascript problems using HttpUnit while testing UIX pages

Hello JDeveloper Team
Need urgent help about testing my web pages written in UIX. I tried to use HttpUnit but I got Javascript errors. What is wrong with it ?
I also used HtmlUnit. It works well but writing code to check the html page that is produced from a UIX is a stomachache. I mean all the ids , names of components are so absurd words. A submit button for example is a link with an image inside it but has no name or id. So there is no way to reach it with a method of HtmlUnit library.
Can you please advice me a methodology to test my uix pages? Or is there any tool or application for this purpose ? It could be licensed . My company needs such a tool. I also tried AppPerfect but it does not support UIX.
I need your valuable opinions. An answer that is quick would be appreciated.
Thanks

if you want an ID in the html, you can set it in the UIX file and it will appear
in the html

Similar Messages

  • Error while accessing UIX pages when deployed using OC4J

    UIX: 2.1.9
    JDeveloper: 9.0.3
    Database: 8i Release 3.
    Using UIX and BC4J, I created few pages for a small application. I installed the OC4J standalone and configured setting library paths and and deployed this application. I extended the UixPageBroker and TrivialPageFlow engine to suit my application requirements. All pages within the application requires the user to login. While accessing a UIX page, I am getting the error provided below. However, if I am not extending the UixPageBroker and PageFlowEngine, UIX pages are rendered with no problem. Can someone tell me what is the cause of this?
    500 Internal Server Error
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.init(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Unknown Source)

    I found out the workaround but not sure whether it is the right solution.
    When the application is deployed, it will be creating few files under the directory "application-deployments", of which some are configuration files specific to the deployed application.
    Edit the file: orion-web.xml and uncomment the following:
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />Save the file and restart OC4J.

  • Problems on deleting rows in UIX pages

    Hi,
    I am new on using BC4J, Struts and uiXML and I am having some problems on it. I have tried to make a simple create/update/delete web application.
    First, I have created a DataAction which PageForward displays a table with data from a view object. This page allows the user to select a row and request its deletion by clicking on a submit button.
    The event triggered by the submit button calls a DataAction that displays another PageForward, composed by a read-only form, that asks for confirmation. If the user confirms, a DataAction that performs the Delete method from the view is called and the deletion is successful.
    A problem occurs when I change the readonly property of the fields of the confirmation form: the row deleted is not the selected, but a random one.
    I would like to know why the readonly property of the fields change the Delete method behavior. Also, an example of a simple create/update/delete struts page flow would be appreciated.
    Thanks in advance.
    Verner.

    Verner,
    Are you using JDeveloper 10g Preview or JDeveloper 9i v9.0.3?
    I'm not sure what problem you are having, but I just tried to reproduce your application by doing the following in JDeveloper 10g Preview:
    1) Created new business components.
    2) Created a new struts-config.xml.
    3) Added to the Struts config (using the page flow modeler):
    3.a) Browse data action and page forward to browse.uix
    3.b) Confirm data action and page forward to confirm.uix
    3.c) Delete data action.
    3.d) Link from browse action to confirm action for outcome "delete".
    3.e) Link from confirm action to delete action for outcome "delete".
    3.f) Link from confirm action to browse action for outcome "cancel".
    3.g) Link from delete action to browse action for outcome "success".
    4) Then I made the delete action do the deletion by dragging the Delete operation from my data control onto the Delete data action in the page flow.
    5) Then I created my UI pages.
    browse.uix just has a read-only table created via the Data Control palette and then a delete button that fires the "delete" event when clicked. The delete handler returns the delete outcome.
    confirm.uix has a read-only form also dragged from the Data Control palette for the same data control. There's a delete and a cancel button, each of which fire an event of the same name that returns an outcome of the same name.
    When I run browseDataAction, I see my table. When I click "Delete", I see the read-only form with the details for the selected row. Clicking "Delete" from the confirmation page removes the same row I saw in the confirmation page, then goes back to the browse page showing the same range but with the given row removed.
    If you continue to see a problem, what exactly is wrong? It should be the case that (A) the row selected in the table, (B) the row whose details are shown in the confirmation page, and (C) the row that gets deleted are the same row. If it's not the case that A = B = C, please give more details about what values of these three rows you are seeing. Is A=B but not =C? Or is B=C but not =A?
    Hope this helps,
    -brian
    UIX Team

  • Problem using text to speech with Pages 09 and snow leopard

    Hi,
    I am writing a large document and use the start speaking function often to hear parts of it read back after I write it.The speech sounds great for a page or two and then starts to become choppy and skips words and eventually becomes inaudible except for a few sputters. I would like to be able to listen to the entire document when I am done and would like to either solve the sputtering problem or find a new app that will allow a long paper to be read back by the computer. This problem is consistent on my macbook(2010) as well as my iMac(2009).
    Thanks for any suggestions in advance.

    I have to constantly reboot/restart between Lion on my New Thunderbolt Mini and Snow Leopard off and External Drive.
    Why? There is no good way to do what you're doing.

  • Hi,l bought my ipad from uk and got my ID using my turkish credit card. I have a problem using itunes.bottom of the page l have got podcasts,itunes u,downloads. Thats all l have got. Is it coz l have used my turkish cc?

    Hi,
    I have a problem with itunes.l have registered it but l still can not use. When l click on itunes l have got podcasts,itunes u,downloads on the bottom of the page.l can not see any musics or anything. I ve bought it from uk and used my turkish credit card. Is it because turkish credit card? Pls l need help

    The content owners do not allow the iTunes Store to sell across country borders, so you must have a credit card and residence in the country whose iTunes Store you wish to use. Since you live in Turkey and have a Turkish credit card, that's the only iTunes Store you can use, and as has been pointed out, Apple has not been able to obtain the rights to sell music, movies and shows there. That's the nature of the entertainment business at this time, where the rights in each country are held by separate entities and hence require completely separate negotiations.
    Sorry, but there's nothing you can so about this. You'll need to see if there are download stores in Turkey available to you, and if not you'll need to purchase CDs, DVDs, etc.
    Regards.

  • Mapping: Problem with Namespaces while testing

    Hello,
    can anyone tell me what's the thing with the namespace in xml-messages for testing?
    My problem is the following: I have exported a test-xml-file from a mapping in another namespace (where everything is correct) and now i want to import this xml-file in my new mapping (another namespace).
    I found out that i have to change the given "xmlns:ns" attribute from the original namespace to the software component version (!!!), in which my new mapping is. Otherwise the file can't be imported correctly in my new mapping.
    Can you tell me the cause for this curious case, so that i don't have to search for my problem the next time...?
    Thanks in advance,
    best regards, Leo

    Hi Suraj,
    Your answer is not quite plain to me, sorry.
    Perhaps you can tell my with an example. My original xml looks like the following:
    <?xml version="1.0" encoding="utf-8"?>
    <ns:VDA490500 xmlns:ns="http://mynamespace.com/basis">
    <S511>
      <SATZART>511</SATZART>
      <VNR>02</VNR>
      <KNDNR>1234</KNDNR>
    </S511>
    <S519>
      <SATZART>519</SATZART>
    </S519>
    </ns:VDA490500>
    Now the namespace of my new mapping is another, and i only accomplished my problem by changing it to
    <?xml version="1.0" encoding="utf-8"?>
    <ns:VDA490500 xmlns:ns="<b>NewSoftwareComponentVersion</b>">
    <S511>
    All other trials didn't work.
    Can you show me what you meant, and perhaps can you tell me why?
    Thank you,
    Leo

  • Currency reset when using commit binding in UIX page

    I have 3 views on this page in a master-detail-detail relationship.
    1) The first should NEVER change currency (it's selected on the previous page).
    2) the other two have range bindings associated with them
    3) the selection on the second view drives the 3rd
    4) the selection on the third (CHANGES AN EDITABLE ROW)
    PROBLEM IS THIS:
    When submitting changes to the 3rd view, I call the "Commit" action binding for the datacontrol; doing so seems to be resetting even the first view. How can I commit the data to the DB without resetting row currency on all view?
    Thanks in advance,
    Sacha

    A quick clarification. By reset I really mean re-executed; currency is changed to the first row for every view...
    Any idea how this can be avoided?

  • Javascript Error with UIX Page

    Hi all,
    I am using JHeadstart 10.1.2.2.32 with JDeveloper 10.1.2.1.0 to develop UIX pages. I have run into the following problem with one of my UIX pages. We have a page with a table view which uses sortable headers. In certain situations when using the sortable headers in IE 6.0.2900.2180, a javascript error appears. This does not occur using Firefox.
    It says:
    Line: 2894
    Char: 1
    Error: 'type' is null or not an object
    Code: 0
    URL: (the URL of the page)
    I have figured out that the error is occuring in the Common2_2_20.js file on the following line, which is part of the function _multivalidate:
    var a7 = a6.type; The error only occurs in the following situation. If the user has just logged into the system and certain rows in the table are read-only and others are editable. If you click on any of the sortable headers, it will sort fine the first time. However, if you click on the sortable header again, the javascript error appears. It only happens if you click on the sortable headers twice in a row.
    I have tried taking out the line of code, but then I can not sort the headers at all.
    I read in the forum that the error can occur because of the way IE handles the compression of javascript files. We changed the setting on the app server to not compress javascript files. I then undeployed and redeployed the application. However the same error is still occuring.
    If you need any more information, please let me know. Thanks in advance.
    Susan

    We found out that we had a custom script on the page that was interfering with script in the Common2_2_20.js. By moving the script to the end of our page, it solved our problem.
    Susan

  • Problem with UIX Pages in sub folders

    I want to group my UIX pages into sub folders to maked definition of security constraints more convenient.
    The New UIX Page wizard doesn't allow creation into a sub folder so I have created a blank page and then renamed it into a subfolder using File>>Rename menu option. However, now when I drag Data Control bindings onto the page they fail to bind properly. (No data appears when I run the page.)
    Is there a fundamental problem with placing UIX pages into sub folders? Is it something I shouldn't do? Requiring a flat file structure seems an onerous restriction!
    Thanks
    Matthew

    yes. this is a known problem when you are running UIX pages and not struts dataactions.
    For the model bindings to work, you currently have to keep
    all your uix pages in the top level directory.
    However, if you use the struts-pageflow with UIX pages, then you can keep you UIX pages where ever you want.

  • Refreshing an UIX page

    Does anybody know how to explicitly for an refresh on a UIX page.
    The problem that I have now is that only after I some where did a rollback, the page is displayed correctly.
    Before the rollback, the page shows one table updated and one table still in the former state, which was before I added an extra row.
    Thanks in advance,
    Gideon

    So again I want to bring this to your attention, because I believe I am not the only one with this problem.
    I have a UIX page with two tables. I created the funtionality to add a row from table2 to table1.
    The problem is that after I did a Commit and the row has been added to table1 and removed from table2, only table1 is updated and table2 is still in the former state.
    At least it is in the former state on the screen.
    In the database the change has already been made.
    Only after I did a "rollback" somewhere, will the UIX page display correctly.
    Does anybody know how to solve this problem and do a proper refresh of the tables in UIX?
    Any help appreciated,
    Gideon

  • Problems using orkut in Firefox 3.6.13 . Chat window get blank most of the time & some issue while loding page (Signout tab get disappear)

    Hi Support team,
    I am facing multiple issue while using orkut on mozilla firefox 3.6.13.
    I have windows 7 ultimate edition installed on my laptop.
    First issue is while i using orkut in firefoz, most of the time chat window will not referesh (as webpage refresh) and all the contact of chat window will get disappear (blank) from there.
    second issue is sometimes logout page will get disppear from webpage and that time we are not able to get there while refreshing the page also.
    Please suggest...

    Well, the computer stopped starting up at all. It could never find the operating system. I tried safe mode and virtually every other non-standard start-up option. I then did target disk mode with another MBP and got the message: "The disk you inserted was not readable by this computer." I then tried using disk utility and it couldn't retrieve retrieve the data using restore (writing to an external drive). I suspect that this means the hard drive would need to be replaced. In your expert opinions, is this necessarily true? Could this still be just a software problem, or perhaps some other piece of hardware?
    Part of the reason I ask is that this laptop is now nearly five years old. It's needed a new battery for two years. If it's a virtual certainty that the hard drive is toast, I don't want to pay $150 for someone to take it out and try to recover any remaining data from it, only to reveal that the data is indeed irretrievable (since the computer itself is probably only worth $300-400 at this point). The nearest Genius Bar is also more than 2 hours away. Am I going about this the right way by using disk utility, given that the hard drive won't mount to the desktop of the other computer? If the hard drive can't be reat in target disk mode, does that confirm that it is the hard drive?
    Thanks
    Oh also, it does still make the startup noise, even though I can't run the AHT since I can't get it to start up in safemode. I thought this mean that it passing various hardware tests. Does this not apply to the hard drive?
    Message was edited by: Euain_ *add-on*

  • Trouble loading pages in Safari 1.3.2 (maybe due to a javascript problem?)

    Hi!
    I'm wondering if anyone could offer advice on how to fix a problem I'm having with my web browsers. I can't seem to load certain pages (e.g., Amazon.com). The browser loads most of the page, but then gets stuck on the last item and never finishes loading (so the whole page stays blank). I'm having the same problem in Safari, Firefox, and Internet Explorer. I think it may be a javascript problem. When I turn the javascript option off in Safari, I have no trouble loading the pages. Also, when I look at the safari activity monitor while opening those trouble pages, the .js files are the ones that don't load.
    Things I've tried include emptying the browser cache, resetting cookies, emptying my java cache in the utilities section, and making sure all of my software is up to date.
    Any help or suggestions you could give me would be fantastic. Thank you so much!

    Hello there,
    Do you have a style sheet [ CSS ] you are using in Safari-> Advanced Tab? if yes set it to none, and see if that helps.
    Whilst in Advanced tab check your network settings & make sure you've no proxies checked on.
    In " View " Check your Text encoding try using Unicode.
    Have you tried a restart,if the puter that can help.
    Have you run permission repair and see if DU reports any errors.
    In Utilities Disk Utility, First Aid tab. do not bother with verify perm.
    do run repair permissions. Stay on the left side of the Disk Utility
    < [ not repair disk ] if you know already, sorry.
    Good Luck, I hope something helps..
    Eme: )

  • Is it possible to use several RootAppModules in one UIX Page?

    Hello,
    I want to use two RootAppModules in one uix page. The reason is, that application modules look at different database connections.
    I get this NullpointerException:
    java.lang.NullPointerException
         void oracle.cabo.data.jbo.ui.data.ViewObjectDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.TableDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.CachingDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.DataProviderStack.addDataProvider(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.LogicalNodeRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.composite.CompositeRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.laf.base.DataScopeRenderer.prerender(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
         void oracle.cabo.ui.BaseRenderer.render(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    In my page I have two Registry entries and in my page content I open the second AppModuleScope after closing the first AppModuleScope.
    I am using JDeveloper 9.0.3.2. The documentation says it should be possible???
    Thanks,
    Christian

    I explored my problem yesterday and this are my results.
    Everything works fine, so using different root application modules, if I come from a simply navigation event handler.
    But when I use my own event handler which itself is enclosed in an root application module scope, the next page is not able to render data coming from different root application modules.
    The event handler of my source page looks like this:
    <event name="selectionEvent">
    <bc4j:findRootAppModule name="MyRootAppModule">
    <bc4j:findViewObject name="MySelectionVo">
    <instance class="test.MySelectionEventHandler"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    Regards,
    Christian

  • Web-page java/javascript problems

    I am having trouble with my java installation. Some work related web pages do not operate as they should, so I started looking into my java version. I first downloaded the latest java updater from Apple "Java 2Platform Standard Edition (J2SE) 5.0 Release 4 (PPC)" from "http://www.apple.com/support/downloads/j2se50release4ppc.html". I installed that and restarted. If I open a terminal window and enter "java -version", I get the following:
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
    Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
    So it looks like I have the latest version that Apple offers and the OS knows about it.
    But when I go to Java.com (http://www.java.com/en/download/help/testvm.xml) and try to test my java using Safari or Camino, I get the following:
    You are using an older version of Java
    Your Java configuration is:
    Vendor: Apple Computer, Inc.
    Version: 1.5.0_06
    Operating System: Mac OS X
    OS Version: 10.4.7
    Also, the animation on the page does not work. I do have java and javascript enabled in Safari and Camino. I also tried changing the order of java versions using the "Java Preferences.app" and it does not fix the problem with either order of "J2SE 5.0" or "J2SE 1.4.2" coming first.
    So, some questions:
    1. Is this the latest java for OSX?
    2. Is there some other configuration step I have missed?
    3. What is the best URL to try for testing web-page-java and javascripts?
    4. What should I try next to get java working correctly in Safari and Camino?
    Thanks
    Paul
      Mac OS X (10.4.7)  

    Paul, I think you have the latest. You can also test your Java and JavaScript here. As far as the "You are using an older version of Java" comment, that has always said that whenever I tested Java on that page you linked no matter what version so I wouldn't put too much stock in that.

  • How do I show use poplist in uix pages?

    Ok here is my problem which I will try to relate it in HR schema example.
    I got a uix page showing departments and employees(one-many) master detail.
    I got another edit uix used to edit old employees or create new employees.
    In this edit/create uix I don't want the user to see the id's like DepartmentId, ManagerId, JobId etc...instead I want them to see the corresponnding Names.
    How do I achieve this? Could some one give me a walk through or some sort of hint?

    Hi,
    Have you checked out the "Oracle ADF UIX How-To's" at http://www.oracle.com/technology/products/jdev/howtos/index.html?

Maybe you are looking for