BC4J+UIX:Is it a bug?

There is a strange problem:
I use a null event to init a vo,as following:
<?xml version="1.0" encoding="GBK"?>
<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"
xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j">
<bc4j:registryDef>
<bc4j:rootAppModuleDef name="VTbReceiveListView1AppModule"
definition="Project.PropakModule"
releaseMode="stateful">
<bc4j:viewObjectDef name="VTbReceiveListView1" rangeSize="20" />
</bc4j:rootAppModuleDef>
</bc4j:registryDef>
<content>
<event name="null">
<bc4j:findRootAppModule name="VTbReceiveListView1AppModule">
<method class="propackage.ReceiveListAffirm" method="initReceiveList"/>
</bc4j:findRootAppModule>
</event>
and the event is :
public static EventResult initReceiveList(
BajaContext context,
Page page,
PageEvent event) throws Throwable
String sWhere="";
double dAmountGross=0,dAmountVat=0,dAmount=0;
ApplicationModule amThis = ServletBindingUtils.getApplicationModule(context);
HttpSession session = context.getServletRequest().getSession(true);
sWhere = "VALIDATED_MARK = 'N' AND "+ session.getAttribute("GuoSessionWhere").toString();
voThis.setWhereClause(sWhere);
voThis.executeQuery();
int length = voThis.getFetchedRowCount();
EventResult result = new EventResult(page);
return result;
the value of length is 0 when i first run the page.
However,when i refresh(F5) this page,it is 9(the right number).
Who can tell me the reason?

This post is the same as the post on the JDeveloper forum at:
UIX+BC4J BUG: Is it a bug?
Please keep all followups to the other thread.
-brian
Team UIX
PS: Please do not post the same question to the JDev and UIX forums, as they are monitored by the same people.

Similar Messages

  • BC4J UIX How To set the cursor in a field

    Hi,
    when i display an bc4j uix edit form, i would like to set the cursor in a field and highlight the entry.
    how con i do that
    Thanks
    Achim

    Hi Adam,
    sorry but ist is not working. i get an errormessage "Object doesn't support this property or method".
    What is wrong?
    here my sourcecode
    <HTML>
    <HEAD>
    <TITLE>MBO Signon Page</TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY onload="form1.username.focus(); form1.username.select()">
    <uix:pageLayout>
    <%-- some code here --%>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header text="Login to Mentoring Back Office" >
    <uix:styledText text="Enter your user name and your password to login." />
    </uix:header>
    <uix:spacer width="20" height="10" ></uix:spacer>
    <uix:form name="form1" method="POST" destination="login.jsp">
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
         <uix:styledText text="Indicates Required Field" />
         <uix:spacer width="1" height="20" ></uix:spacer>
         <uix:tableLayout cellSpacing="5" cellPadding="5" >
         <uix:rowLayout hAlign="left" >
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="User Name:" />
              <uix:textInput
    id="username"
    name="username"
    text="jonte"
    required="yes" >
    </uix:textInput>
         <uix:formValue name="username" valueBinding="username" />
    <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="left" width="25">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="Password:" />
              <uix:textInput
    name="password"
    text="jonte"
    required="yes"
    columns="20"
    secret="true" >
    </uix:textInput>
         <uix:formValue name="password" valueBinding="password" />
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="center">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:submitButton name="Login" text="Login" formName="form1" />
         <uix:resetButton text="Cancel" formName="from1" />
         </uix:rowLayout>
         </uix:tableLayout>
    </uix:form>
    </uix:contents>
    </uix:pageLayout>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources releasemode="Stateful" />
    Thanks
    Achim

  • Search/Query Form bc4j-uix-jsp

    Hi:
    Are there any samples of Search/Query jsps using
    bc4j -uix jsps?
    There are some on OTN using html.
    I want to set up a search page that users can select one or more(AND) from about 5 attributes
    of a view and then display approx 6-8 different attributes of that same view.
    Any input would be appreciated.
    Thanks.

    Once you create the Query-by-Form datawebbean, you can modify the templates in the templates\webapp directory by changing all usages of the FindForm bean to use your new DWB. You can also create a new webapp template by copying the existing file and creating a new directory. You can add you new template by modifying the templates\apptemplates.xml. The current entries are:
    <?xml version="1.0"?>
    <APPTEMPLATES>
    <TEMPLATE NAME="default" DIRECTORY="templates/webapp/" USETHEMESELECTION="YES">
    </TEMPLATE>
    <TEMPLATE NAME="Oracle" USEFORMSELECTION="NO" DIRECTORY="templates/cabowebapp/" THEMEDIR="/webapp/jsimages" THEMECSS="/webapp/cabo/images/cabo_styles.css" USETHEMESELECTION="NO" TOOLBARCLASS="oracle.jbo.html.databeans.JSNavigatorBar">
    </TEMPLATE>
    </APPTEMPLATES>

  • BC4J UIX Application deploy

    Hi,
    I'm using JDeveloper 9.0.3 and I deployed a BC4J UIX Application on Oracle9iAS 9.0.3 J2EE Containers (Standalone) on NT.
    When I'm accessing to the application module page, I have the following error
    JBO-33001: Cannot find the configuration file Module1\common\bc4j.xcfg in the classpath
    I will appreciate any help
    Thanks,
    Fernando

    I have found the problem , and now its working!!!
    The problem was that the java.exe that was running on the server was not the correct.
    Thanks anyway,
    Till next
    Fernando

  • Jdev 9iRC: deployment of BC4J-UIX components to OC4J !2.0! does not work

    in different threads the problem of deployment of BC4J UIX components to OC4J 1.2.2.x is addressed (see http://forums.oracle.com/forums/message.jsp?id=679060 for example). contrary to the sayings of different members of the jdev-team i face the same problem with OC4J 2.0 (java lang nullpointer exception).
    i'm using jdev9iRC and 9iASWE v2 beta which comes with OC4J 2.0.
    i followed the recommendations of the thread mentioned above, no result. i followed the recommendations of steve muench in thread HELP! Loading Java Classes into Oracle ERROR result is the same error but now already when calling the main.uix. next try was also on recommendation of steve muench somewhere else: i installed the complete jdev 9iRC on my application server and tried to deploy to this "embedded" OC4J. result: uncomplete deployment because of denied access to the files server.xml and http-website-xml:
    Beginning to deploy to Oracle9i Application Server...
    Wrote WAR file to C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.war
    Wrote web EAR file to C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.ear
    Invoking Oracle9iAS admin tool...
    C:\Programme\oracle\jdeveloper\jdk1.3\jre\bin\javaw.exe -jar C:\Programme\oracle\jdeveloper\j2ee\home\admin.jar ormi://bajor.skypages.net admin **** -deploy -file C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.ear -deploymentName F1Administration-F1StammdatenUIX-app
    Auto-unpacking E:\ORACLE\jdev9iRC\j2ee\home\applications\_F1StammdatenUIX.ear... done.
    Auto-unpacking E:\ORACLE\jdev9iRC\j2ee\home\applications\_F1StammdatenUIX\F1StammdatenUIX.war... done.
    java.io.FileNotFoundException: E:\ORACLE\jdev9iRC\j2ee\home\config\server.xml (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.evermind.xml.XMLConfig.storeToURL(XMLConfig.java:433)
    at com.evermind.xml.XMLConfig.store(XMLConfig.java:420)
    at com.evermind.server.ServerComponent.store(ServerComponent.java:756)
    at com.evermind.server.ServerComponent.store(ServerComponent.java:728)
    at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:466)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:79)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Exit status of Oracle9iAS admin tool (-deploy): 0
    C:\Programme\oracle\jdeveloper\jdk1.3\jre\bin\javaw.exe -jar C:\Programme\oracle\jdeveloper\j2ee\home\admin.jar ormi://bajor.skypages.net admin **** -bindWebApp F1Administration-F1StammdatenUIX-app F1StammdatenUIX http-web-site /F1Administration-F1StammdatenUIX-context-root
    Communication error: E:\ORACLE\jdev9iRC\j2ee\home\config\http-web-site.xml (Access is denied)
    Exit status of Oracle9iAS admin tool (-bindWebApp): 1
    ---- Deployment finished. ---- 12.02.2002 12:53:02
    what am i supposed to do? is there a solution?
    please help
    TIA, trevi

    Yes, I can create a new as3 file, but I can't "fill it with
    sensible content". Neither my As3-codes are recognized nor simple
    components are displayed to me in a proper way when testing the
    movieclip.
    Now, I have just reinstalled my CS4 on another computer and
    there it works with AS3. Really strange. Does CS4 need to
    communicate with some internet services while executing a simple
    fla-file or something like that?

  • Documentation for BC4J/UIX

    Hi,
    I am looking for some documentation for BC4J UIX . I went to this link http://envoy.us.oracle.com:8888/uix/documentation.uix?event=doc where i found
    http://bali.us.oracle.com:8888/bc4j/welcomebc4j.uix.
    But the above gives a 404 error. Please point me to some place which has the documentation for BC4J UIX.
    Thanks,
    Gaurav Singh

    Hi,
    these are internal server URLs that are no exposed to the Internet.
    Frank

  • 9iAS WE v2 Beta: which adapter to use for BC4J-UIX-XML components?

    hi,
    through official TAR i still have no answer after 3 weeks, so maybe someone here can help me out.
    using Jdveloper 9i RC i create a BC4J-based client project (BC4J-UIX-XML components) which i want to use for wireless services. the only thing i know is that oracle recommends this framework. together with WE v2 we got more than 1000 pages of documentation, but nothing about the new adapters (the most important thing i believe, what else am i supposed to do as official beta tester?!!).
    any piece of information about the new adapters (especially the oc4j-adapter) or any kind of examples are really appreciated.
    TIA, trevi

    automatic mode is just for quick demos. You cannot internationalize your application while using automatic mode.
    You will need to turn off automatic mode, and have bc4j:column beans in your table and databind the data to come from your resource bundles.

  • BC4J/UIX Multi Entity insert/update

    Hi!
    Problem
    Is it possible to insert simultaneously both master and detail BC4J row with single UIX page? I would like to use standard UIX if possible with minimal java, but examples with java would be also helpful.
    Example
    This seems to be a very simple situation. Has anybody solved it?
    In my case I have one generic Document table and additional attributes tables for different kinds of documents like for instance LicenseDocument. Those tables are connected with Document table with 1 to 0..1 relationship and their foreign key to the Document table is also their primary key.
    I like the way that BC4J Tester works and I don't know how to make UIX work the same way.
    When I use BC4J Tester it assigns the Document table inserted but not yet committed rows primary key (DBSequence) column temporary negative values and I can insert child records that are associated with it. After commit the Document primary key is fetched from the database sequence and all the foreign keys in other tables get updated accordingly.
    When I use UIX I don't get those temporary IDs and so I can't create child records before the master record is committed. This is not good as I can't roll back the whole creation of the LicenceDocument.
    References
    I started by posting this topic to UIX forum (BC4J Multi Entity insert/update but maybe someone here knows the solution.
    Thanks in advance!
    Mihkel N�ges
    [email protected]

    I managed to workaround the issue in UIX by not using DBSequence type but fetching the sequence value in EntityImpl create method (as in Steve Muench's Techiniques demo project http://radio.weblogs.com/0118231/stories/2003/07/11/codeSampleIllustratingVariousBc4jProgrammingTechniques.html ):
    DocumentImpl.java:
    protected void create(AttributeList attributeList)
         super.create(attributeList);
         // Do this last so we don't waste any sequence numbers unnecessarily
         SequenceImpl seq = new SequenceImpl("DOCUMENT_ID_SEQ",getDBTransaction());
         setId(seq.getSequenceNumber());
    For some reason the sequence gets asked twice for every row creation. Thats not a big problem, but in the SequenceImpl javadoc this is discussed and as I understand it should not happen.

  • BC4J/UIX: Multiple Application Modules / Database Connections

    My UIX application must have access to two databases. One is the main database for the application and the other contains lookup information. The lookup database is shared by many applications of different types. I need to display values in the UIX page and also create a composite view from tables in each database.
    My understanding of this is that a UIX page requires a root Application Module which can have nested application modules allowing construction of a complex application. It appears that a UIX page must be tied to the root Application Module and then the nested modules can be referenced and used later in the UIX page.
    Can I create a root Application Module that contains a nested application module that connects to a different database? If so, are there limitations in building associations between the AM's that use different databases?
    If this is possible, how do I do it? I have created separate projects: one for each of the databases I mentioned and one for the main application module in a separate project. I try to create a "New Business Components Package" and "EJB Entity Facades for existing Entity Beans". The two application modules do not appear. (I created jar files for each of them and referenced these as libraries in the root module project.) Is this the correct approach? I have not found documentation that shows me how to do this yet so I admit I could be completely off base.

    Okay, I figured out that I have to build all of the BC4J packages under the same project and that the EJB Entity Facades is not what I should be working with.
    Maybe I will figure out the rest before too long.

  • BC4J/UIX: How to implement session timeout and logout?

    Hi,
    I need to implement logout function in my UIX application. We use JAZN basic authentication. So several things need to be done when user clicks 'logout'
    1. Any pending transaction is rolled-back.
    2. App Module - what to do with it?
    3. Browser closes or redirects to other page. Any attempts to go BACK will show either 'session expired' or will redirect to login page.
    Also I need a mechanism where if user is idle for say, 10 minutes, that he/she will be automatically logout (maybe after some warning message). How to do this?
    Thanks
    Rade

    Well if you search long enough, you will find your own answers. After months of not having this solved, I found the solution, in a piece of sample code from oracle that is distro with the OC4J stuff.
    if (request.getRemoteUser() != null) {
         // notes that the application is responsible for cleanup
         //invalidate the HttpSession
         HttpSession session = request.getSession();
         session.invalidate();
         String url=null;
         oracle.security.jazn.oc4j.WebSSOUtil.globalLogout(response,url);
         } else      out.println("You are not logged in!");
         out.println("</BODY>");
         out.println("</HTML>");
    This is the piece I was looking for, a way to kill off the SSO session. Now when I click logoff, the user is actually logged off the application and their HTTP session is killed off as well.
    Kelly

  • 3.2, BC4J, outer joins, insert, lookup, bug

    I have a table voyage that has a foreign key to routes. This relation is not mandatory.
    I created a frame that shows the voyage. I use an outer join to show the route name if there is a route
    SELECT voyage.ID
    ,voyage.Name
    , voyage.routeID
    , route.ID
    , route.Name
    WHERE voyage.routeID = route.ID(+)
    FROM voyage, route
    This works fine for selecting rows. But when I insert a new voyage and try to commit it, I get an error message that route.ID is not allowed to be NULL.
    Any suggestions?
    TIA

    Hello Folks!
    I would like to bring this topic up again!
    We have problems using view objects with outer joins, too.
    In JDev 3.1 we finally managed to handle things a bit. All worked fine except of deleting a record! No chance here!
    So we prayed for better behaviour in JDev 3.2.2. But as it seems it's getting even worse. I just checked our application.
    Here are the results:
    - In the Business Component Tester everything works fine. No errors.
    - As generated business component data form in applet I can't insert a record. The joke is that deleting now is possible!!! The error I get is:
    "AttributeInfo: cannot insert null into..". When I remove all AttributeInfos named by the error messages all works fine. But that's no solution cause we need these information!
    thanks for any help on this.
    null

  • UIX Bug - bc4j:setAttribute

    The context:
    We have a UIX form used to edit a view row. The 'save' event is executing a chain of bc4j:setAttribute events.
    The bug:
    The row contains an attribute having a null value. The corresponding text field into the form remains unchanged (empty). This means that on submit, the browser sends to the server a 'null' value. Unexpectedly, the setAttribute method for this attribute is invoked for the current ViewRowImpl. Since the value of the attribute is not changed, I am expecting a different behavior i.e. not invoking this method.
    thanks

    Hi,
    This is a bug, which has been filed.
    Thanks,
    Gabrielle

  • Oracle Strategy for the UIX & BC4J in the new JDeveloper version

    What is Oracle Strategy for the UIX & BC4J in the new JDeveloper version:
    - Like DataBinding
    - BC4J Integration
    - UIX controller
    - Internationalization
    - Supporting for Palm,phone and pager.

    Hi,
    Are these questions all BC4J specific?
    General databinding info is discussed here:
    What's the developement direction of UIX?
    For BC4J/UIX integration, in 9.0.5 we will continue to support our existing api's, but you can also use uix as the view and bc4j as the model in adf, which is described here:
    http://otn.oracle.com/products/jdev/htdocs/905/sod_otn.html#adf
    Aside from bug fixes, I don't think there are major changes in the controller/internationization. Did you have specific questions about the controller and internationalization?
    We are planning to support Palm web browser 2.0, but due to the timing of the release of a platform that supports it and our own schedules, I don't think it will be officially supported in the 9.0.5 release. We won't have phone or pager support in 9.0.5.

  • How can I add new event handler in BC4J event flow in UIX?

    How can I declarativly add extension to existing event handleres in BC4J+UIX page?
    I generate through wizards UIX+BC4J pages and I want extend some actions in eventhandlers section. Can I do it in some way like <event name=".." method=".." class=".."> like in any regular event handlers?

    you can use the <method ..> event handler inside the BC4J event handlers, like:
    <bc4j:findRootAppModule name="EmpAppModule" >
    <bc4j:findViewObject name="CurrentDeptEmpsVO" >
    <method class="myPackage.myClass" method="doOperation"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>

  • UIX-JSP vs. BC4J-JSP wizard based question

    In BC4J-UIX wizard based forms there exists a button to Insert new rows. In the UIX-JSP wizard based forms there is not. Is this an option I overlooked somewhere or does this need to be hand coded? Detailed instructions on how to implemnt the Insert row capability in UIX-JSP are appreciated.
    Ed.

    In BC4J-UIX wizard based forms there exists a button to Insert new rows. In the UIX-JSP wizard based forms there is not. Is this an option I overlooked somewhere or does this need to be hand coded? Detailed instructions on how to implemnt the Insert row capability in UIX-JSP are appreciated.
    Ed. Ed -
    I'm a bit confused by your reference to the BC4J-UIX and UIX-JSP wizards. There is a 'new' link in wizard-generated
    BC4J JSPs and a 'Create' button in wizard-generated UIX JSP browse/edit forms. Is this what you mean?
    Regards,
    Lynn
    Java Tools Team

Maybe you are looking for

  • Macbook Pro 15" USB PORT DOESN'T RECOGNIZE ANY DEVICE.

    I got my macbook pro 15" for about 1 year and 2 weeks ago, when I turned on my macbook and put my mouse ( Death Adder) into the USB PORT, my macbook DOESN'T RECOGNIZE IT. There are 2 usb ports on my macbook, I tried both port and there was only one p

  • Reg: Business system

    Hi All, Abap program will write the IDOC information into a flat file and this flat file will be put into the same SAP R/3 App server. XI Interface has to pick this flat file which is located in the R/3 App Server and send to the File server in the s

  • Resource Controls on Oracle Systems

    The normal resource controls for the oracle user are pretty straight forward -- per the Oracle documentation even though it is hugely Solaris 10 deficient. (we are deploying on solaris 10 u8) We are deploying a new data center with 2 and 3-node SFRAC

  • I want to have special icons on my shortcuts at the bottom of teh side like Internet Explorer have

    When I paste shortcuts on the Start-meny at the bottom of the side in Internet Explorer, I get the special icons. But with Firefox there's only Firefox icons. Why?

  • How to remove Dublicate values in Variable Filter screen?

    Hi All, I have Master data Object, ABC, XYZ and XYZ Description, and below i have given the data for the same Ex  ABC    XYZ      Description        A        1           Abc        A        2           Bbc        A        3           Ccd        B