How to validate in ADF Swing application

I created an app using ADF Swing:Holiday. My table is Holiday has: HolidayID, Holiday, Reason, Desc. I only want to show Holiday, Reason, Desc. Holiday is Date type. Now I want to validate if user type an ilegal format date?

Are you using application express?
For ADF try the JDev discussion forum.
JDeveloper and ADF

Similar Messages

  • Problem with "find" mode in adf/swing application

    Hi all,
    I'm working on ADF Swing application which uses MS SQL Server 2005 (JDeveloper 10g 10.1.3)
    I think that my issue might be well-known…sorry if it has been already discussed somewhere else…
    I have a problem with the “find” mode for a detail panel in a master-detail form…(To make it clear the “find” mode is switched on when clicking on the special button on a navigation panel).
    So this mode works well in a master panel, but it demonstrates strange behavior on a detail panel, i.e. it takes me two attempts to find the necessary child object and it doesn’t switch back in a simple way from this mode to the normal mode….say if we are in the department 10 (Dept is a master form) we can’t simply find KING employee (Emp is a detail form)…is there any workaround for this?
    Thanks in advance. Alex.

    Hi Frank, please look this issue

  • ADF BC  in ADF Swing application(global datasource connection)

    Hi all!
    I have ADF-Swing based application.
    I have a standalone Weblogic server and global datasource (for example, name of datasource hrGlobal)
    I want to use this datasource(hrGlobal) in my application module. All my entities and views must connect into the database, using this datasource.
    The question is, how can I declare this remote connection in connections.xml, for using him in Application Module?
    In forum or in documentation a can't find the answer for this question. So, any help is welcome:)
    Thank you all for responses.
    PS. JDeveloper version is 11.1.1.3
    WLS version is 10.3.3

    Thank you for links. Also, I found very useful link http://suns1988.blogspot.com/2011/02/adf-desktop-application.html
    So, I had deployed application on WLS. Ear size is 95 MB with folder adfjars, that includes many jar libraries.
    Now I'm trying to run WebStart file, but get an error "com.sun.deploy.net.JARSigningException: Found unsigned entry in resource: http://myurl:myport/testWebStart/adfjars/xmlparserv2.jar".
    Can you help me, please?
    And the 2-d question is about libraries in folder "adfjars": Can I share this libraries on WLS, than not to deploy each time in Ear archive?
    Edited by: Stanislav on 01.05.2011 7:17

  • Deploying a BC4/ADF Swing Application to a JAR File

    Hello,
    what do I exactly have to do, to deploy an ADF/Swing/Business Components-
    Project-Application to a JAR File. I can not start it outside the JDevloper IDE,
    but I created a deployment profile and deployed it to a JAR.
    There is always the error "Could not find the main class", when starting the
    JAR. In the JDeveloper IDE the application is running, and I also defined a "main class" there.
    Could anybody help me please?
    Greetings.

    You need the ADF runtime libraries in your classpath or as part of your JAR.
    Have a look at the command that JDeveloper is using to run your project (it is in the log window) and copy the classpath defenition provided there to the command line you use.

  • How to use MVC in Swing application

    Hi,
    I'm creating an application using Java Swing. I want to use Model View Controller (MVC) architecture to design by application. I want to use MVC to seperate by business logic functionality from the control and presentation logic that uses this logic.
    I need your help to get this done successfully. Please send me a SAMPLE JAVA SWING APPLICATION where they have applied MVC, it will be helpful to me.
    Thank you,
    Regards
    kumar

    Would this be a basic example of an application that uses MVC?
    //MODEL
    public class Model {
         public void showMessage() {
              System.out.println("You clicked me!");
    //VIEW
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class View extends JPanel {
         private JButton buttonSave;
         public View() {
              super();
              initUI();
         public void initUI() {
              buttonSave = new JButton("Save");
              buttonSave.addActionListener(new Controller());
              add(buttonSave);
    //CONTROLLER
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Controller implements ActionListener {
         private Model m;
         public Controller() {
              m = new Model();
         public void actionPerformed(ActionEvent e) {
              m.showMessage();
    }Is this a correct implementation of MVC? I am trying to learn it, and use it in an example.
    Thanks for your help/input.

  • How to implement Help in Swing Application

    Hi..
    In my Swing Application I want to put �Help� for Every field..
    Ex: After Username field ��� if I press �Whatisthis�. I will explain abt the user name field .in a popup text Area
    Thanks
    Cheers
    Mallik

    this may help you...
    http://java.sun.com/products/javahelp/
    regards
    Aniruddha

  • How to deploy an ADF RC application to any OC4J that running on Linux?

    I developed an application with the latest Jdev 11gTP3. The team has a linux server that I want to install an OC4J and deploy my application.
    I tried the following:
    1. OC4J standalone 11g. Followed the installation instruction, with the command:
    $ORACLE_HOME/bin/oc4j -start
    I can initiate a server connection from Jdev, even passed test. But when deployment failed, I even tried to install ADF runtime library by following an Oracle official document. However, I can't get it work.
    2. I tried to start the Jdev embedded OC4J with command:
    java -jar oc4j.jar
    I believe something has to be set before the application can work on this OC4J
    Has anyone ever made it? Can you please share the steps of accomplishing it?
    Many thanks in advance.

    Thanks Frank for your reply
    This can not be done with TP1 OC4J even with proper configuration and amendment?
    How about WebSphere and Weblogic servers?
    So at this stage, a TP3 ADF application could only run on JDev Embedded OC4J?
    Regards,
    William

  • ADF/Swing/JClient application migration problem from 10.1.3.5 to 11.1.1.3

    Hi,
    I am migrating an application from JDev 10.1.3.5 to 11.1.1.3 in order to deploy it to a java 1.6 JVM which is only certified with JDev 11.1.1.3
    No matter what I do the DataBindings.cpx file content is emptied by the IDE, the migration was successful => no errors displayed.
    I tried to solve the problem by doing the following but the file stays empty:
    1) the removing the project from the application and adding it again, migration is done again => FILE EMPTY
    2) adding manually the content in the source file then running XML validation => no errors, I close the file, reopen it and EMPTY AGAIN!
    Your is needed and will be appreciated!
    Thanks
    Fred
    Content of file DataBindings.cpx:
    <?xml version='1.0' encoding='UTF-8' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" version="10.1.2.18.73" SeparateXMLFiles="false"
    ClientType="JClient">
    <pageMap/>
    <pageDefinitionUsages>
    <page id="PanelWeventEditParamVO1UIModel"
    path="com.xxx.view.web.PanelWeventEditParamVO1UIModel"/>
    <page id="TogglePanelPrintSizeDpiUIModel"
    path="com.xxx.view.lab.TogglePanelPrintSizeDpiUIModel"/>
    <page id="PanelPhotographerLabROfPhotolabVO1UIModel"
    path="com.xxx.view.web.PanelPhotographerLabROfPhotolabVO1UIModel"/>
    <page id="PanelWeventEditStatusVO1UIModel"
    path="com.xxx.view.web.PanelWeventEditStatusVO1UIModel"/>
    <page id="MDDPhotographerGalleryWelcomeUIModel"
    path="com.xxx.view.web.MDDPhotographerGalleryWelcomeUIModel"/>
    <page id="PanelTranslationCountryRegionLangTableVO1UIModel"
    path="com.xxx.view.system.PanelTranslationCountryRegionLangTableVO1UIModel"/>
    <page id="PanelDestGroupDestRTableVO1UIModel"
    path="com.xxx.view.system.PanelDestGroupDestRTableVO1UIModel"/>
    <page id="PanelWeventEditPackageVO1UIModel"
    path="com.xxx.view.web.PanelWeventEditPackageVO1UIModel"/>
    <page id="PanelSiteTariffPaymentTableVO1UIModel"
    path="com.xxx.view.system.PanelSiteTariffPaymentTableVO1UIModel"/>
    <page id="PanelPhotolabClobFreePage1L1VO1UIModel"
    path="com.xxx.view.web.PanelPhotolabClobFreePage1L1VO1UIModel"/>
    <page id="PhotoWebshopDesktopUIModel"
    path="com.xxx.view.start.PhotoWebshopDesktopUIModel"/>
    <page id="PanelItemGiftKitItemGiftTableVO1UIModel"
    path="com.xxx.view.lab.PanelItemGiftKitItemGiftTableVO1UIModel"/>
    <page id="TabbedFormUIModel"
    path="com.xxx.view.system.TabbedFormUIModel"/>
    <page id="PanelEntityPhotolabVO1UIModel"
    path="com.xxx.view.system.PanelEntityPhotolabVO1UIModel"/>
    <page id="PanelAddressVO1UIModel"
    path="com.xxx.view.web.PanelAddressVO1UIModel"/>
    <page id="SiteEventTypesAndTariffsFormUIModel"
    path="com.xxx.view.start.SiteEventTypesAndTariffsFormUIModel"/>
    <page id="PanelSiteVO1UIModel"
    path="com.xxx.view.system.PanelSiteVO1UIModel"/>
    <page id="PanelSiteBonusTypeVO1UIModel"
    path="com.xxx.view.system.PanelSiteBonusTypeVO1UIModel"/>
    <page id="PanelWeventAccountFileUploaderUIModel"
    path="com.xxx.view.web.PanelWeventAccountFileUploaderUIModel"/>
    <page id="PanelLabelWhereVO1UIModel"
    path="com.xxx.view.system.PanelLabelWhereVO1UIModel"/>
    <page id="PanelLabelWhatVO1UIModel"
    path="com.xxx.view.system.PanelLabelWhatVO1UIModel"/>
    <page id="PanelLabelWhoVO1UIModel"
    path="com.xxx.view.system.PanelLabelWhoVO1UIModel"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="BaseTablesAMLocal"
    Package="com.xxx.model.system"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="BaseTablesAMDataControl"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    syncMode="Immediate">
    <Parameters>
    <Parameter name="FactoryClass"
    value="oracle.adf.model.bc4j.DataControlFactoryImpl"/>
    <Parameter name="SupportsFindMode" value="true"/>
    <Parameter name="Configuration" value="BaseTablesAMLocal"/>
    <Parameter name="SupportsTransactions" value="true"/>
    <Parameter name="Package" value="com.xxx.model.system"/>
    <Parameter name="SubType" value="DCBC4J"/>
    <Parameter name="Name" value="BaseTablesAMDataControl"/>
    <Parameter name="id" value="BaseTablesAMDataControl"/>
    </Parameters>
    </BC4JDataControl>
    <BC4JDataControl Configuration="SiteTablesAMLocal"
    Package="com.xxx.model.system"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="SiteTablesAMDataControl"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    syncMode="Immediate">
    <Parameters>
    <Parameter name="FactoryClass"
    value="oracle.adf.model.bc4j.DataControlFactoryImpl"/>
    <Parameter name="SupportsFindMode" value="true"/>
    <Parameter name="Configuration" value="SiteTablesAMLocal"/>
    <Parameter name="SupportsTransactions" value="true"/>
    <Parameter name="Package" value="com.xxx.model.system"/>
    <Parameter name="SubType" value="DCBC4J"/>
    <Parameter name="Name" value="SiteTablesAMDataControl"/>
    <Parameter name="id" value="SiteTablesAMDataControl"/>
    </Parameters>
    </BC4JDataControl>
    <BC4JDataControl Configuration="SystemViewAMLocal"
    Package="com.xxx.model.system"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="SystemViewAMDataControl"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    syncMode="Immediate">
    <Parameters>
    <Parameter name="FactoryClass"
    value="oracle.adf.model.bc4j.DataControlFactoryImpl"/>
    <Parameter name="SupportsFindMode" value="true"/>
    <Parameter name="Configuration" value="SystemViewAMLocal"/>
    <Parameter name="SupportsTransactions" value="true"/>
    <Parameter name="Package" value="com.xxx.model.system"/>
    <Parameter name="SubType" value="DCBC4J"/>
    <Parameter name="Name" value="SystemViewAMDataControl"/>
    <Parameter name="id" value="SystemViewAMDataControl"/>
    </Parameters>
    </BC4JDataControl>
    <BC4JDataControl Configuration="PhotolabSetupAMLocal"
    Package="com.xxx.model.lab"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="PhotolabSetupAMDataControl"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    syncMode="Immediate">
    <Parameters>
    <Parameter name="FactoryClass"
    value="oracle.adf.model.bc4j.DataControlFactoryImpl"/>
    <Parameter name="Configuration" value="PhotolabSetupAMLocal"/>
    <Parameter name="SupportsFindMode" value="true"/>
    <Parameter name="SupportsTransactions" value="true"/>
    <Parameter name="Name" value="PhotolabSetupAMDataControl"/>
    <Parameter name="SubType" value="DCBC4J"/>
    <Parameter name="Package" value="com.xxx.model.lab"/>
    <Parameter name="id" value="PhotolabSetupAMDataControl"/>
    </Parameters>
    </BC4JDataControl>
    <BC4JDataControl Configuration="PhotolabWebAMLocal"
    Package="com.xxx.model.web"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="PhotolabWebAMDataControl"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    syncMode="Immediate">
    <Parameters>
    <Parameter name="FactoryClass"
    value="oracle.adf.model.bc4j.DataControlFactoryImpl"/>
    <Parameter name="Configuration" value="PhotolabWebAMLocal"/>
    <Parameter name="SupportsFindMode" value="true"/>
    <Parameter name="SupportsTransactions" value="true"/>
    <Parameter name="Name" value="PhotolabWebAMDataControl"/>
    <Parameter name="SubType" value="DCBC4J"/>
    <Parameter name="Package" value="com.xxx.model.web"/>
    <Parameter name="id" value="PhotolabWebAMDataControl"/>
    </Parameters>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>

    Ok it seems I have resolved my problem see end of thread
    Still have following relevant question for an Oracle team member:
    Why is my <pageMap/> empty in my migrated application cpx file?
    => when I create a new ADF Swing application this tag is not empty:
    in new file:
    <pageMap>
    <page path="view.PanelPhotolabVO1" usageId="view_PanelPhotolabVO1PageDef"/>
    </pageMap>
    <pageDefinitionUsages>
    <page id="view_PanelPhotolabVO1PageDef"
    path="view.pageDefs.PanelPhotolabVO1PageDef"/>
    in migrated file:
    <pageMap/>
    <pageDefinitionUsages>
    <page id="PanelWeventEditParamVO1UIModel"
    path="com.photoswing.view.web.PanelWeventEditParamVO1UIModel"/>
    Solution to empty migrated cpx file:
    It seems the migration utility couldn't cope with the BC4JDataControl definitions, so I edited them manually.
    Example of 10.1.3... syntax:
    <dataControlUsages>
    <BC4JDataControl Configuration="BaseTablesAMLocal"
    Package="com.xxx.model.system"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="BaseTablesAMDataControl"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    syncMode="Immediate">
    <Parameters>
    <Parameter name="FactoryClass"
    value="oracle.adf.model.bc4j.DataControlFactoryImpl"/>
    <Parameter name="SupportsFindMode" value="true"/>
    <Parameter name="Configuration" value="BaseTablesAMLocal"/>
    <Parameter name="SupportsTransactions" value="true"/>
    <Parameter name="Package" value="com.photoswing.model.system"/>
    <Parameter name="SubType" value="DCBC4J"/>
    <Parameter name="Name" value="BaseTablesAMDataControl"/>
    <Parameter name="id" value="BaseTablesAMDataControl"/>
    </Parameters>
    </BC4JDataControl>
    New syntax:
    <BC4JDataControl id="BaseTablesAMDataControl"
    Package="com.xxx.model.system"
    FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
    SupportsTransactions="true" SupportsFindMode="true"
    SupportsRangesize="true" SupportsResetState="true"
    SupportsSortCollection="true"
    Configuration="BaseTablesAMLocal" syncMode="Immediate"
    ExceptionMode="Immediate"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
    Tip:
    Do this editing outside JDev with ide closed to avoid crashing it.
    Regards
    Fred

  • ADF Swing with POJO Business Service - How To?

    Does anyone have or know of any sample code demonstrating an ADF Swing Application
    with a Master-Detail on a Business Service implemented through POJOs (not Toplink, but
    generic JavaBeans)? Please note that I am not looking for an ADF BC example!
    I need to connect to a legacy backend which does not provide a JCA
    conforming interface, so using Toplink is out of the question. I will use
    vendor-specific technology to retrieve data and put these data into
    simple JavaBeans to represent my business layer. On top of this (i. e.
    in a 2-tier architecture) I would like to implement a Swing client using
    ADF data controls and ADF data bindings.
    Thanks for your help,
    Sebastian Millies

    Hi,
    thanks for the (partial) answer. Which blog would that be, by the way?
    An additional thought: Chapter 31 of the "Developer’s Guide For Forms/4GL Developers"
    10g Release 3 (10.1.3.0), B25947-01 mentions data control adapters as an alternative to
    Java Beans to represent the data source. Why is it alternative?
    It seems that a data control adapter provides a way to specify available ui controls,
    access data source meta data and invoke operations. Couldn't this also be used in the
    scenario that I described? Would it be possible to provide the metadata to the
    adapter in the form of a BeanInfo class, or an xsd-file generated from a JavaBean?
    Perhaps I'm totally off-track here ...
    -- Sebastian

  • Adf swing form login problem (Frank, look at this please)

    Hi All. I'm using JDeveloper 10.1.3
    Can anybody please give me a clue on how to create a simple stand alone adf swing form with a login dialog and the oracle jaas authentication?
    For me this kind af appllications works well only in design time :(. When i try to launch my generated .jar application the login dialog does appear but the authentication
    doesn't work "incorrect username or password".
    So i think i followed all the instructions from jDeveloper online help concerned with generating a login dialog... but my application still doesn't work properly after deployment.
    Please somebody look at what i've done and tell what is wrong.
    1. I created an adf swing form with a login dialog.
    2. I set the jbo.security.enforce property for my application module to Must.
    3. I added to my application a dialog for adding, removing and modifying application users via oracle.security.jazn api.
    4 I tested my appllication in Jdeveloper. It works great! I even added a number of application specific default users via my application.
    5. I assured myself that the oc4j security library has been added into the adf/swing project as well as into the deployment profile.
    6. I deployed my apllication to a .jar file.
    7. I created "config" folder inside the directory where the.jar file has been dropped. I copied there the following files: jazn.xml and system-jazn-data.xml (the last one file includes all my previously created principals) from /jdev_home/j2ee/home/config.
    8. Now when i start the application the login dialog appears as i've mentioned but authentication doesn't work.
    I found only one similar topic over the whole forum:
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=665430
    but what i've done seems to meet all Frank's advices.....
    Oracle staff please dont ignore my post.
    Thanks in advance.
    Edited by: Timin on Jun 22, 2009 11:58 PM

    Hi, rob nice to learn that i'm not the only one stumbled over this issue.
    Hope that this question will be finally answered...
    ...just a few additional comments.
    1. It appears that the position of the jazn.xml and jazn-data.xml files pointed in the documentation (config subfolder of the root .jar's folder) is right for if i rename or delete the jazn.xml it runs into the error: jazn configuration file not found, but nevertheless it works strange, it looks like it doesn't use the mentioned files at all....given the fact the i've already spent a number of days experimenting and looking for a solution i learned that after a first startup the files mentioned above (jazn.xml and jazn-data.xml) are modified in some way that prevents using them on another oc4j server instance (if i have i.e. another jdeveloper instance, i cant run and go through authentication in my application by simply coping the old jazn.xml and system-jazn-data.xml files into the /jdev_home/j2ee/home/config
    folder...instead i need to copy a pure "initial" jazn.xml file from the initial jdeveloper archive) ... something like the thing mentioned here:
    http://radio.weblogs.com/0118231/stories/2007/05/08/jdeveloperadf11gTechnicalPreviewTipsAndTricks.html
    also i noticed that if there is no system-jazn-data.xml file in the config folder it is created automatically after a first startup...so when i tried to delete the system-jazn-data.xml file from my deployed application's folder it would't create a new one though it saw the jazn.xml file (since no "jazn configuration file not found" error had ever appeared)...i also tried to place "pure" copies of jazn configuration files in my config subfolder but of course it would give no effect.
    2. i also changed the login.module.provider as well as the auth.policy.provider properties in the java.security file as documentation sais - no effect.
    So it would be great if Frank gave us a direct link to the white paper he was working on (and i hope had finished :) few years ago....or even better gave me the simpliest example of a finished adf swing application with authentication implemented.
    [email protected]
    ps. we know it's really really time consuming answering all questions but considering the lack of documentation on adf swing technology i hope we can rely on your help here.
    thanks.

  • Adf/swing binding problem

    Hi all,
    Friends i need your help.
    I was a bit confused as i started developing an adf/swing application. I know that this project is not supported any more but i honestly believe that there are a lot of people still using it.
    I've already faced with a number of problems and successfully solved them but the one is really strange.
    Before describing it let me ask one preliminary question. It’s very important for me, but if it is too much …. skip the first question since the second one is the most important.
    1. I’m creating a multiframe application where I have one main window (with a desktop pane) which does not include any bindings and is used for invoking internal frames only which in their turn have been created by dragging and dropping data controls.
    Since JDeveloper only allows generating skeletons for stand-alone frames and there is lack of information concerned with adf/swing developing I’m trying to fit the automatically generated code for my purpose by myself.
    I obsessively ask some GURU to check my strategy and say whether I’m doing it right.
    First I create the BindingContext object in the main frame:
    BindContext ctx = newBindingContext();
    public MainFrame() {…………      
    try {
    JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
    JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
    mgr.setJClientDefFactory(null);
    ctx.put(DataControlFactory.APP_PARAM_ENV_INFO, new JUEnvInfoProvider());
    ctx.setLocaleContext(new DefLocaleContext(null));
    HashMap map = new HashMap(4);
    map.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT, ctx);
    mgr.loadCpx("minit.org.view.DataBindings.cpx" , map);
    DCDataControl app = (DCDataControl)ctx.get("AppModule1DataControl");
    app.setClientApp(DCDataControl.JCLIENT);
    } catch (Exception ex) {
    JUMetaObjectManager.reportException(null, ex, true);
    System.exit(1);
    Then I pass the BindingContext object into the internal frames constructors, i.e.
    private void jMenuUnitVoc_actionPerformed(ActionEvent e) {
    this.getJMenuUnitVoc().setEnabled(false);
    FormCreateUnitView1 unitVoc = new FormCreateUnitView1 (ctx);
    unitVoc.setVisible (true);
    this.deskTopPane.add (unitVoc);
    Then I setup the panel binding for a particular JinternalFrame instance through the automatically generated setBindingContext() method:
    public FormCreateUnitView1(BindingContext ctx) {
    try {
    this.setBindingContext(ctx);
    } catch (Exception ex) {
    JUMetaObjectManager.reportException(null, ex, true);
    System.exit(1);
    This predefined setBindingContext () method looks like this:
    public void setBindingContext(BindingContext bindCtx) {
    if (panelBinding.getPanel() == null) {
    panelBinding = panelBinding.setup(bindCtx, this);
    registerProjectGlobalVariables(bindCtx);
    panelBinding.refreshControl();
    try {
    jbInit();
    panelBinding.refreshControl();
    } catch (Exception ex) {
    panelBinding.reportException(ex);
    panelBinding instance variable is declared by default as
    private JUPanelBinding panelBinding = new JUPanelBinding("FormCreateUnitView1PageDef");
    when the internal frame is getting closed the panel binding is released:
    public void doDefaultCloseAction() {
    _popupTransactionDialog();
    panelBinding.releaseDataControl(); statusBar.release();
    MainFrame myFrame = (MainFrame)this.getDesktopPane().getParent().getParent().getParent().getParent();
    myFrame.getJMenuUnitVoc().setEnabled(true);
    super.doDefaultCloseAction();
    Why I’m asking about this is because I met another syntax which is known to be commonly used:
    Something like this:
    this is the code I use to (re)create the panel,
    the setBindingContext method.
    public void setBindingContext(BindingContext bindCtx)
    String detail2BCName = "myName";
    if (bindCtx.get(detail2BCName) == null)
    DCBindingContainerDef bcdef = (DCBindingContainerDef) JUMetaObjectManager.getJUMom() .findLoadedObject("mypackage." + detail2BCName);
    DCBindingContainer bc = bcdef.createBindingContainer(bindCtx);
    bc.setName(detail2BCName);
    bindCtx.put(detail2BCName, bc);
    // ... then calls to jbInit etc.
    this is the code I use to release the binding when
    the window is closed
    getPanelBinding.release();
    getPanelBinding.getBindingContext().remove(superPanelBinding.getName());
    …but this syntax is badly documented, so I’m a bit confused about which is right… my code works pretty fine (all master and detail frames are synchronized and all that…) except for one issue I’m going to describe.
    I’m waiting for your opinions….please help make it clear.
    THE MAIN PROBLEM
    2. I’ve got a master/detail internal frame. When I make any changes in it and then commit them through a navigation bar I get the following exception as I try to close it later through the standard close icon:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at oracle.jbo.uicli.jui.JUSVUpdateableFocusAdapter.focusLost(JUSVUpdateableFocusAdapter.java:71)
         at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:172)
         at java.awt.Component.processFocusEvent(Component.java:5380)
         at java.awt.Component.processEvent(Component.java:5244)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:840)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:530)
         at java.awt.Component.dispatchEventImpl(Component.java:3841)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    … few things
    -1. If I commit a transaction through the popup dialog the exception doesn’t emerge.
    -2. If I remove the “panelBinding.releaseDataControl(); statusBar.release();” from doDefaultCloseAction() method the exception doesn’t emerge but then I get another well-known exception as I try to reopen the internal frame.
    -3. If I debug doDefaultCloseAction() method step by step the exception doesn’t emerge.
    -4. Finally…. the exception doesn’t suspend the application it just goes on as if nothing has happened (the stack is only displayed on the console).
    I learned about one similar problem here:
    JClient Threading Bug in JUCtrlAttrsBinding?
    but the bug described has been fixed in ver 10.1.3.3.
    I'm using Jdeveloper 10.1.3.3
    So, please ...please…please help me overcome it.
    Best regards. Alex.
    Edited by: Timin on Mar 31, 2009 1:52 PM

    Sorry for being a bit annoying...
    But .... no one has answered my question yet......though you promised...
    Eventually I’ve somehow solved the trouble by replacing the “ panelBinding.releaseDataControl ” with
    “ panelBinding.release(DCDataControl.REL_VIEW_REFS)
    panelBinding.getBindingContext().remove(panelBinding.getName());”
    In the doDefaultCloseAction() method
    it seems like it works good now.
    I reconstructed a bit my code
    Now I’m invoking the internal frames this way:
    private void jMenuDeptVoc_actionPerformed(ActionEvent e) {
    FormCreateDeptView deptVoc = new FormCreateDeptView();
    this.getJMenuDeptVoc().setEnabled(false);
    deptVoc.setBindingContext(panelBinding.getBindingContext());
    this.deskTopPane.add(deptVoc);
    I looked through the following how to:
    http://www.oracle.com/technology/products/jdev/howtos/10g/jcmultiform/index.html
    there is an additional method there, which is invoked before creating a new frame where the binding container for the panel binding is created:
    private void createDetailBinding()
    String detailBCName = "DetailFormUIModel";
    if (panelBinding.getBindingContext().get(detailBCName) == null)
    DCBindingContainerDef bcdef = (DCBindingContainerDef)JUMetaObjectManager.getJUMom().findLoadedObject("sample.DetailFormUIModel");
    DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
    bc.setName(detailBCName);
    panelBinding.getBindingContext().put(detailBCName, bc);
    But since createBindingContainer(BindingContext) method has been deprecated in 10.1.3 i skipped this step.
    Nevertheless my program is working now I still wonder if the way I’m doing it is right.
    Thanks. Alex.
    Edited by: Timin on Apr 2, 2009 8:28 AM

  • ADF Swing Deployment problem

    Hi,
    I have an ADF Swing project completed.
    I can run my application from Jdeveloper 10.1.3.3 successfully.
    Now we are ready to go to production.
    I want to generate a simple JAR file which can be called like - java -jar MyApp.jar
    To generate MyApp.jar:
    1) I have created a new group in the deployment profile file and specify to add the Manifest.
    2) I added all the jars found in my application log file (the logs when jdev run my app.).
    3) I Specify the full path to my MainForm.class
    4) I have added all my classes
    5) Finally I generated to JAR from jdeveloper
    6) I copied the MyApp.jar into the JDK\bin folder of my Jdeveloper (to avoid potential java version conflict)
    Problem: When I try to run my app from the JDK\bin folder with java -jar MyApp.jar, I got the error Exception in thread "main" java.lang.NoClassDefFoundError: .....
    My question is : Does anybody either successed in deploying an ADF Swing application using Jdeveloper. If yes, how?
    I have read dozen of articles from this forum, nobody seemed to successed deploying ADF Swing application.
    Thanks.
    houevoton.

    Gentlmen, thank very much.
    I have made a big progress.
    First, I have deploy a simple form based on Steve's scenario. It works fine. I learn from this the role of each type of File Group in a deployment profile.
    I also read and dowload the following show case http://verveja.footsteps.be/~verveja/files/oracle/JarStuffThread615655-v0.01.zip
    It works fine. I get how to include an external jar in my deployment file.
    However, I am still having a small problem with my generated JAR.
    In fact my workspace has 3 projects.
    1- AppUtils.jpr contains my utility classes (date utilities, system constants, etc.)
    2- Model.jpr contains BC entities, views objects and the AppModule.
    3- View.jpr where my forms and panels are.
    All those 3 projects are in the same workspace, which is slightly diffrent from the example of the show case above.
    I created a deployment profile and add two File Groups:
    - The first group is simple "Packaging" group and I check all utilities classes required in my application.
    - The second one is a "Dependency Analysis" group following process described by Steve.
    When I generate and run MyApp.jar, I get error [b]JBO-30003: The application pool (full.path.AppModuleLocal) failed to checkout an application.
    Since yesterday I was struggling with this. I am not able to understand why this message.
    My AppModule is well configured with credentials to connect to the target database. I tested it and it is ok.
    I can run the application from within Jdeveloper without trouble.
    Once again, I need your help.
    Thank in advance.
    houevoton.

  • JDeveloper 10.1.3.3 ADF Swing - Images not rendering after deployment

    Hi,
    I have deployed my ADF Swing application in production in very simple 2 tiers architecture.
    One executal jar on my desktop and
    The database running on a Linux server.
    When I run MyApp.jar from my desktop, none of my images is rendered and LOV buttons do NOT work.
    The same application runs against the same dabase from Jedev environment shows images and LOVs work fine.
    Thank for your your help.

    I suppose that you use Java WebStart to deploy your application.
    The issue might be that you're using absolute path to load images into the application (c:\something\something.jpg). When you start your app in webstart, it doesn't allow the application the acces to the disk using absolute path. Even if it did, you wouldn't find your images in the same folder as they are on your disk.
    You should load images like this:
    ImageIcon icon=new ImageIcon(this.getClass().getResource("images/something.jpg"));
    This presumes that you store all your images in "images" package (folder).
    You can read more here:
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/development.html#retrieving

  • BC4J with Swing Application

    Is there possible to use Business Components for Java in Java/Swing applications without using any kind of application server?

    Yes. You just deploy your business components as a simple archive (JAR file). Your business components JAR file is then deployed to the client along with your ADF Swing JAR file. You will also have to deploy the ADF Runtime libraries to the client as well. The easiest way to deploy the standalone application is using Java Webstart. JDeveloper supports Webstart as a deployment method for ADF Swing applications. Unfortunately, there are some manual things that you have to do to package Oracle's ADF runtime libraries to do this, however. You can find the steps in this document: http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfjclientbcwebstart.pdf
    Hopefully, Oracle will simplify this process in a future version of JDeveloper.
    Hope this helps.

  • 10.1.3 ADF Swing New Features Question

    One of the 4 new features for ADF Swing in JDeveloper 10.1.3 is stated as:
    "ADF Swing
    In the past, deploying an ADF Swing application entailed deploying the ADF runtime libraries, 
    and then packaging and deploying your application class files.
    This process has been simplified so that you no longer need to deploy the ADF runtime libraries
    as a separate step; instead, they are automatically packaged with your application files."Can someone tell me if this is configurable? For instance, you would rarely want the above to occur if deploying using Java Webstart since it would guarantee a FULL download every time you made a small change to any class. This would basically eliminate versioned or incremental downloads of jar files.
    Thanks
    Erik

    Thanks Frank, but your answer is just more confusing.
    Here is what the new features document states:
    "This process has been simplified so that you no longer need to deploy the ADF runtime libraries
    as a separate step; instead, they are automatically packaged with your application files."
    Notice the statement in bold.
    I would expect that statement to mean that ALL of the ADF classes that are normally contained in their respective jar files will now be "automatically packaged" into MY application jar file, so that I have 1 jar file.
    Now looking at your answer:
    "If the application class files changed, then only those class files will be jarred and signed. ADF jar files are not signed again."
    The statement in bold indicates that the ADF classes will still be contained in their respective jar files. Therefore, can you tell us what "automatically packaged" means in this conext? Normally, I would think it meant packaged inside a jar file, but from your answer, that cannot be correct.
    Thanks
    Erik

Maybe you are looking for

  • LR4.1--Is there a way to speed up 1:1 "zoom?"

    I use Canon 7D dng files.  When I zoom to 1:1, it takes about 7 seconds to render the view.  When going through 200-300 images to check focus, obviously this adds greatly to the time.  I use one 24" monitor @ 1920x1200, and if I make the image displa

  • Urg: Not able to import data from DB in OBIEE 11g : Connection has failed.

    Hi Team Recently while working in OBIEE 11g , I was trying to import tables from the data-base but I am getting an error " Connection has failed " . I have put the tnsora file in the network admin folder and the C:\OracleBIHome\Network\admin \OracleB

  • HT201210 ipod touch frozen on connect usb  and will not sync

    my ipod touch has frozen on connect usb and will not sync

  • Library sharing 10.6.2 to 10.5.8 (iTunes 9.02)

    I upgraded my MBP to 10.6.2, and for whatever reason, I am unable to share my iTunes library with a Mac running 10.5.8. It worked fine before the update. Both macs are running iTunes 9.02 - so it isn't a version problem. Neither mac has a firewall tu

  • Start IC WebClient with URL Parameters

    Hi, we are currently implementing IC WebClient 5.0. One of the customer needs is it, to start the IC WebClient with a service order ID, so that the order is displayed immediately without searching and confirming an account. Is it possible to start th