Forms 6i JavaBeans

Hi all ,
iam using java beans on 10g , but i wonder does 6i supports java beans the same way 10g do , and what configuration needed since iam running client/server application and i don't have AS niether OC4J ?
Thanks

Have you looked at the 6i forms developer help for java beans?
Also this whitepaper also discusses them in a 6i environment
http://www.oracle.com/technology/products/forms/pdf/269054.pdf

Similar Messages

  • Can anyone tell me how to manipulate Oracle9i Forms Builder JavaBeans

    Hi,
    I tried to include LWMenuBar java class as a javabean in a form. I found problems adding menus and menuitems in runtime to this javabean.
    If someone knows how to complete this task please help me.
    Bye

    Hi,
    Currently, you cannot rename the link to your fillable form to a custom name or the name of the form.
    You may want to use third party url utility, such as tinyurl.com to construct an alternate URL to post on facebook comments/notes.
    Thanks,
    Lucia

  • Run form with javabean

    I tried to take one of demo forms which have javabean and run it.
    The form is calendarpjc and the jar file is calendar.jar.
    1- I put the calendar.jar in e:\devsuitehome_1\forms\java
    2- I appended the formsweb.cfg with the following:
    [CalendarPJC]
    pageTitle=OracleAS Forms Services - Calendar PJC Demo
    IE=jinitiator
    baseHTMLJInitiator=demobasejini.html
    archive_jini=f90all_jinit.jar,calendar.jar
    form=calendarpjc90.fmx
    width=675
    height=480
    separateFrame=false
    splashScreen=no
    lookAndFeel=oracle
    colorScheme=blue
    background=/formsdemo/images/blue.gif
    3- Now I am trying to run the form from formbuilder I find error when open canvas:
    ' Can not find javabean with name oracle.forms.demos.calendar.CalendarWidgetWrapper'
    4- when runing the form and press date button nothing happens .
    where is the problem????

    Just right click on 'My Computer' icon,choose 'properties' menu option,choose 'Advanced' tab,click on 'Environment variables' button,in the system variables,you will find 'CLASSPATH' (one word) envrionment variable in the 'System Variables' section,you will find 'CLASSPATH',if you didn't find it,define one and put in it the path to your jar files.
    For me,every jar I add to my applications,I add its path to this variable.
    If you are going run on three tier,you should do the same on the middle tier.
    Good Luck.

  • Wierd SQL problem when calling StoredProc from Forms's JavaBean

    Hello,
    I have a Oracle Forms form and it contains JavaBean that uses Oracle DB via JDBC. Wierd thing is that sometimes I get following error in Oracle Forms.
    Error: ORA-06550 line, column 13: PLS-00201: identifier 'F1' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored.
    What in earth this means? Sometimes I don't get it put after a while it starts appearing again.
    F1 is a following function in DB:
    CREATE OR REPLACE FUNCTION F1 ( PN$Param IN NUMBER )
    RETURN VARCHAR2
    IS
    BEGIN
    DBMS_LOCK.Sleep( PN$Param ) ;
    RETURN ('Function ended at ' || To_Char(SYSDATE,'HH24:MI:SS') );
    END;
    My Oracle Forms Pushbutton code is following: (WHEN-BTN-PRESSED)
    Declare
         LC$Res Varchar2(32000) ;
    Begin     
    Set_Custom_Property( 'EMP.BEAN',
    1, 'INITCONN', 'jdbc:oracle:thin:@localhost:1521:demo') ;
    Set_Custom_Property( 'EMP.BEAN', 1, 'INITUSER', 'scott' ) ;
    Set_Custom_Property( 'EMP.BEAN', 1, 'INITPWD' , 'tiger' ) ;           
    Set_Custom_Property( 'EMP.BEAN', 1, 'INITFUNC',
    'begin ? := ' || 'F1(10);' || ' end;' ) ;
    Message('Command sent'); synchronize;      
    End ;
    And JavaBean just fetch data using JDBC code below:
    CallableStatement function = conn.prepareCall (sQuery);
    function.registerOutParameter(1, Types.CHAR);
    function.execute ();
    sValue = function.getString (1) ;
    function.close();
    The purpose is to wait 10 seconds and then return time after that.
    I have put JavaBeans code in jar file, signed it and declated it to Oracle Forms.
    When I have created F1 I have granted execute public access:
    grant execute on F1 to public;
    Have anyone any ideas what could cause this kind of error?
    Cheers!

    Do they give support to their sample snippets?
    Yep, StoredProc+PLSQL is taken from French site's sample to this sample
    but that is the real issue of samples. Or do you disagree?
    But I and my collague have same problems with same kind of thing.
    One thing was that taking time from DB might charge more user rights... but I'm not sure. So, please tell if you know something. Quite mnny seems to have problems with that SP.

  • Using JavaBean in custom form for Oracle Apps

    Dear All,
    i had build a custom form contains JavaBean that enable user to open file dailog . i had built the java class and test it locally on another form it worked fine, but when run the form from the oracle apps nothing happens
    anyone can advise,plz?
    your notes will be appreciated ...
    thanks in advance...
    Moath Abusirdaneh

    Going forward we want to use this form to send information regarding any patches needs to be applied on any of our instances.If some other user select a patch which is already installed on that instance this form will pop up a message saying it's already installed.The purpose of this form is to monitor instance refreshing details.But this is already provided by Oracle through OAM or by querying AD_BUGS table. So, you could create a custom responsibility which contains the patching part only from OAM but this still require a login to the application.
    I do not think you can achieve the above (creating a custom form) without logging to the application -- You may log a SR to confirm this with Oracle support.
    Thanks,
    Hussein

  • Features of forms 9i & 10g compare to 6i

    Hi all,
    I would like to know the feature of forms 9i and 10 g compare to forms 6i. Please let me know any websites where I can get the same.
    Thanks in advance for you help.

    this was my presentation at German User Group 2002 :
    New Features Forms 9i
    - Translation Hub
    - Browser Language Detection
    - Character Semantic in Forms
    - Timezone Support
    - Forms runs directly in the local browser with an OC4J
    - use PJCs
    - N-Tier Debugger in Forms
    - Enhanced JavaBean Support (FBEAN-package) + Java 1.3
    - cancel your LOV's at runtime
    - JDAPI
    - mark many items and assign them property classes at one time
    - XML representation
    - One Time Where Clause
    - Read the Forms-Version-Number at runtime
    and more...
    Gerd

  • Problems using Enhanced JavaBean Support

    I'm extremely new to extending Forms using JavaBeans, and clearly am doing something wrong. I've created a fairly simple class that exposes a single method. The class performs as expected, when run from my IDE, but I've had no luck extending a form with it. Here it is:
      package test;
      import oracle.forms.ui.VBean;
      import com.jacob.activeX.ActiveXComponent;
      public class MailMerge extends VBean {
        ActiveXComponent word;
        public MailMerge() {
        public void launchWord() {
          word = new ActiveXComponent("Word.Application");
          word.setProperty("Visible", true);
      }I have created a JAR containing this class, signed it, and placed it in <ORA10G_HOME>\forms\java. I created a simple form, with a single button and a bean area. Here is my code:
    WHEN_NEW_FORM_INSTANCE
      FBEAN.REGISTER_BEAN('MERGE_BEAN', 1, 'test.MailMerge');
    WHEN_BUTTON_PRESSED
      BEGIN
        FBEAN.INVOKE('MERGE_BEAN', 1, 'launchWord');
      END;The form loads without errors, but when I press the button, nothing happens. Part of my confusion is owing to the fact that my bean is intended to present no graphic output. For this reason, I did not implement the IView interface -- I've merely extended VBean (which implements IView, albeit presumably with stubs.)
    I've appended the JAR to the CLASSPATH entry in DEFAULT.ENV, and also tried appending MailMerge.jar to the ARCHIVE_JINI entry in FORMSWEB.CFG. I am left to conclude that I'm missing something more fundamental, despite having read what's available in Form Builder's Online Help. Most of the other relevant instructional information I've found is locked up in viewlets that seem always to crash (if they run at all.)
    Could anyone spare a clue, because I'm obviously clueless on this occasion!
    Eric Adamson
    Lansing, Michigan

    I've found some information that looks helpful, in the form of a blog entry found at:
    http://forms.pjc.bean.over-blog.com/article-3234108.html
    The entry mentions that the bean cannot be registered immediately within the WHEN_NEW_FORM_INSTANCE trigger, and shows how to delay this slightly using a timer.
    Special thanks to Francois Degrelle for the blog entry linked above, and to Frank Nimphius, for the blog entry that pointed me there! :)
    Eric Adamson
    Lansing, Michigan

  • LOVs again!  How to return multiple fields to calling form

    Hi
    Newbie question, any help GREATLY appreciated :)
    Is there a simple and easy way to return more than one field from a LOV.
    I need this as I have a composite fk comprised of 2 fields, and as such need to return 2 fields from the LOV to the calling form.
    (My environment: JDeveloper 9.0.5.2 build 1618)
    CM

    Thanks, you put me on the right track here. Further investigations show the following sample provided by OTN shows how to use both the session request/response values or a JavaBean to do this:
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_UIX_UserInput.zip
    As such I post my solution to my original post. Hopefully it's useful to someone beside myself. I have to write up my notes anyhow so it's no fuss to submit them to the forum. I must admit I'm a newbie and slightly demented Forms programmer so such solutions aren't so obvious to me. With this in mind please include the "standard disclaimer" here, with the addition "mileage may vary" warranty.
    For these notes I've used the "HR" demo Oracle schema. In particular the tables departments and employees. As you know there is a master-detail relationship between these 2 tables, where each department may have one or more employees.
    We have the requirement on a webpage to:
    1) Provide an input-form-with-navigation to edit the employees.
    2) Display the relating department_name field, rather than just showing the department_id which is meaningless to the user. For example if the employees.department_id = 40, we wish to show the department name "Human Resources" on the employees record.
    3) Provide a LOV for the department ID field to allow the user to change the underlying department_id to a different master departments record.
    4) Update 2) given a change via 3).
    To do this do the following:
    Entity Objects
    1) Create default EO/VOs on both tables.
    2) In the employees EO, create a new field "DepartmentName" to represent the derived department name field.
    3) Set the new EO attribute's selected-in-query field.
    4) In the query-column-expression field, enter a query to derive the department name field for each record in the detail-employees-EO.
    eg. (SELECT dpt.department_name FROM departments dpt WHERE dpt.department_id = employees.department_id)
    Ensure to include the brackets.
    5) Apply the changes and accept the warning to create default data-type settings for the new attribute.
    View Object
    6) In the employees VO, include the new field DepartmentName as a selected attribute from the EO.
    7) Apply the changes and accept the warning to create default data-type settings for the new attribute.
    8) Test the model by running the ADF BC tester. Once running select the employees VO and step through the records, making sure the DepartmentName field has a value and changes appropriately according to the relating parent department_id.
    UIX input-only-form
    9) Create a new UIX web page employeesEdit.
    10) From the data-control pallete, drag in the employees VO as an input-form-with-navigation.
    11) For testing purposes it is also useful to have a create, delete, commit and rollback button, so includes these too.
    12) Within the employees VO data-control, also drag across a messageLovInput for the DepartmentId. Position it under the existing DepartmentId messageTextInput within the UIX page. We'll remove the existing messageTextInput later, but it's useful to leave it in for testing purposes initially when the LOV returns values.
    UIX LOV
    13) Navigate to the default LOV page that has just been created for you.
    14) Within the data-control pallete, expand the departments VO, select department ID then LOV-table from the drop-down, and drag this item onto the LOV page.
    15) Save your changes.
    16) Run your application. For an existing employee, invoke the department LOV and select an alternative department. Note on returning to the employees page the DepartmentID (both the messageTextInput and messageLovInput fields) are updated, but the DepartmentName is not. To do this we need to create a JavaBean to return multiple fields from the LOV to the original form.
    JavaBean
    17) Within your ViewController project, expand the ApplicationSources-View node.
    18) Select the new button, and create a standard JavaBean.
    19) Name the bean DepartmentsLov.
    20) Via the class editor, add 2 private scope fields DepartmentId and DepartmentName with String data-types, ensuring the create get/set method checkboxes are checked.
    21) Make and save your changes.
    22) From the navigator drag the newly created java file into the data-control palette.
    UIX LOV
    23) Return to the LOV webpage.
    24) Your LOV page will have a lovSelect event handler something like the following:
    <event name="lovSelect">
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.employeesEdit.DepartmentId}"/>
    25) Change the lovSelect as follows:
    <event name="lovSelect">
    <compound>
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.employeesEdit.DepartmentId}"/>
    <set value="${bindings.DepartmentId.inputValue}"
    property="inputValue"
    target="${bindings.JavaBeanDepartmentId}"/>
    <set value="${bindings.DepartmentName.inputValue}"
    property="inputValue"
    target="${bindings.JavaBeanDepartmentName}"/>
    </compound>
    26) Within the UI model navigator, right-click on the top node, then create-binding, input, text field.
    27) Select the AppModuleDataControl, then DepartmentView, then the DepartmentName field, and then the ok button.
    28) In the UI model select the new field, then in the structure pane rename the field to DepartmentName.
    29) Within the UI model navigator, right-click on the top node, then create-binding, data, iterator.
    30) Select the DepartmentsLovDataControl and name the new iterator DepartmentsJavaBeanIterator.
    31) Again in the UI model navigator, right-click on the top node, then create-binding, input, text field.
    32) Select the DepartmentsLovDataControl then departmentId field, then the ok button.
    33) In the UI model select the new field, then in the structure pane rename the field to JavaBeanDepartmentId.
    34) Again in the UI model navigator, right-click on the top node, then create-binding, input, text field.
    35) Select the DepartmentsLovDataControl then departmentName field, then the ok button.
    36) In the UI model select the new field, then in the structure pane rename the field to JavaBeanDepartmentName.
    UIX input-only-form
    37) Return to the main employeesEdit UIX form.
    38) Your UIX page will have a lovUpdate event handler something like the following:
    <event name="lovUpdate">
    <null/>
    39) Change the lovUpdate as follows:
    <event name="lovUpdate">
    <compound>
    <set value="${bindings.JavaBeanDepartmentId.inputValue}"
    property="inputValue"
    target="${bindings.DepartmentId}"/>
    <set value="${bindings.JavaBeanDepartmentName.inputValue}"
    property="inputValue"
    target="${bindings.DepartmentName}"/>
    </compound>
    </event>
    40) Repeat steps 29 through 36 for this page.
    41) Within the UIX page find the entries for the departmentId LOV, and the DepartmentName. They should look something like the following:
    <messageLovInput id="${bindings.DepartmentId.path}"
    model="${bindings.DepartmentId}"
    destination="lovWindow1.uix"/>
    <messageTextInput model="${bindings.DepartmentName}"
    columns="10"/>
    42) Modify these 2 entries as follows:
    <messageLovInput id="DepartmentId"
    model="${bindings.DepartmentId}"
    destination="lovWindow1.uix"
    partialRenderMode="multiple"
    partialTargets="DepartmentId DepartmentName"/>
    <messageTextInput id="DepartmentName"
    model="${bindings.DepartmentName}"
    columns="10"/>
    43) Finally delete the original DepartmentId messageTextInput field, leaving the DepartmentId messageLovInput.
    Testing
    44) Open your UIX input-only-form.
    45) Call the LOV and change the department for an existing employee record.
    46) Return to the employees page and note that the department ID and name have changed.
    47) Commit your changes.
    48) With your favourite data inspection tool (a'la Toad), check that the employee record's department ID has been appropriately saved to the database.
    <The End>
    Phew!

  • Problem in getting an object in JSP page.

    Hi experts,
    I am forming a javabean object in the controller(servlet) and passing the object to a JSP page by setting that object as an attribute. But in that jsp page, when i compile, its not able to locate the class. At the beginning itself while typecasting the attribute as that bean object, i get an error. All the servlet, bean files are in the default package only.
    This is how i used..
    <%
    String m = (String) request.getAttribute("mode");
    //My bean object below.
    adjuster_bean res=(adjuster_bean)request.getAttribute("data");
    %>
    And i am using like, calling the bean object's get method to set values of the text boxes in the JSP page. I need help please....

    Vigsen wrote:
    Hi experts,
    I am forming a javabean object in the controller(servlet) and passing the object to a JSP page by setting that object as an attribute. But in that jsp page, when i compile, its not able to locate the class. At the beginning itself while typecasting the attribute as that bean object, i get an error. All the servlet, bean files are in the default package only.
    This is how i used..
    <%
    String m = (String) request.getAttribute("mode");
    //My bean object below.
    adjuster_bean res=(adjuster_bean)request.getAttribute("data");
    %>
    And i am using like, calling the bean object's get method to set values of the text boxes in the JSP page. I need help please....Are you importing the bean class in your jsp? Something like this...
    <%@ page import="java.util.*, yourpackage.YourBeanClass" %> Secondly, I see standards not followed in your code...
    a) Firstly, as someone else pointed out in this same post. Avoid as much as possible using java scriplets in JSPs. Instead try use JSTL and EL expressions.
    b) A java class name should always start with capital letter for every word in the class name and with no underscores. Your bean class name (adjuster_bean) should be changed to something like AdjusterBean
    If you want to become a good Java programmer then standards are essential. But, again, it is totally up to you to follow.

  • Using an EJB as a source for a Model

    Hi,
    Before starting with this post content it might be helpful to give you the desired output of what I am trying to do. Basically I need to have an HTML table that is populated from an EJB.
    The current proposed solution is as follows: the Model that is associated with a TiledView will be used as client for the EJB. The Model will make use of the methods in the EJB to get different java.util.Collection objects for different Helper classes based on the find criteria.
    For example, if the EJB represent a book and there is a home method to retrieve a list of books based of the book category. In this case the Model will act as a client of the EJB, retrieve the list of books and use the different methods in the Model, such as insert and retrieve, to get the list of books and to add a book up on request.
    I know that my post might not be clear. But as I said, all that is needed is to have a TiledView that displays books information, which are retrieved from an EJB, and allow a user to select a book to display its information.
    My suggested solution could be completely wrong, not visible and reflect a bad design. Please if any one went through such a situation give me a hint.
    Regards,
    Basil Mahdi

    Basil,
    This is some material I snipped from an internal Sun forum I posted to regarding a simple EJB Jato integration example.
    I hate to give just any EJB JATO example because frankly there are so many different use cases with EJBs that no one example will match up against your needs. You can use an EJB
    - in a Custom Model Operation you can encapsulate an EJB Method invocation
    - in a Custom Command you can encapsulate any arbitrary code include calling an EJB
    - as the backingstore for a CustomModel
    - use a BeanAdapterModel to adapt to the value/transfer beans which are uses as parameters or return values of EJB methods
    - use an ObjectAdapterModel to adapt an EJB directly by assigning the EJB reference in setObject() in the constructor of the OAM
    As you can see, an EJB is just another business object API...its just that you acquire the reference with a few lines of ugly JDNI and Home interface APIs.
    Nevertheless, here is some guidance. I would like to reinforce that there is no direct solution for adapting an EJB from BAM; EJBs are not JavaBeans. What is a solution is to have the parameters or return values of your EJBs use value/transfer object patterns in the form of JavaBeans. The BAM may be used to adapt to these parameters or return value of the EJB.
    In short, when using BAM in a tileview to work with an EJB, there is little difference than using BAM at any other time, you the developer, must manage/code the placement of the EJB parameters directly into the BAM or in a scoped attribute to be used by the BAM.
    In another example, you may have a SLSB which models an employee called EmployeeSupport. You may have a transfer object (JavaBean) of type EmployeeRecord. You may have operations on the EJB including:
    public EmployeeRecord findEmployee(String employeeID);
    public EmployeeRecord[] findEmployees(String location);
    public void updateEmployee(EmployeeRecord);
    One could create a BAM in the studio called EmployeeModel
    You would set the JavaBean class to EmployeeRecord
    You would run the Design Action to bootstrap the properties of EmployeeRecord as fields on the model
    Now you have a model which is ready to adapt to EmployeeRecord bean.
    Feel free to add material to the EmployeeModel to make a richer API; for instance you could encapsulate some EJB'ish code in their to act as a service locator for a EmployeeSupprt SLSB.
    protected static EmployeeSupport support;
    static {
    javax.naming.Context context = new javax.naming.InitialContext();
    Object objref = context.lookup("ejb/EmployeeSupport");
    EmployeeSupportHome home = (EmployeeSupportHome)
    javax.rmi.PortableRemoteObject.narrow(objref,EmployeeSupportHome .class);
    support = home.create();
    public static EmployeeSupport getEmployeeSupport() {
    return support;
    If you really wanted to hide the EJB'ishness of the EmployeeSupport you could even wrap the behavior and handle exceptions, etc.
    public static EmployeeRecord findEmployee(String employeeID) {
    return getEmployeeSupport().findEmployee(employeeID);
    public static EmployeeRecord[] findEmployees(String location) {
    return getEmployeeSupport().findEmployees(location);
    public static void updateEmployee(EmployeeRecord record) {
    return getEmployeeSupport().updateEmployee(record);
    You could even help the view developer latch EJB transfer objects into the model for adaption; saving them from the effort
    public void adaptEmployee(String employeeID) {
    setBean(findEmployee(employeeID));
    public void adaptLocation(String location) {
    setBean(findEmployees(location));
    public void save() {
    updateEmployee((EmployeeRecord)getBean());
    Create a search ViewBean, place a text field on it for an EmployeeID and button labeled Find. Leave the EmployeeID model binding default (to use a DefaultModel memory model). Open the handle request event method on the viewbean for the Find button.
    public void handleFindRequest....{
    EmployeeModel model = .....;
    model.adaptEmployee(getEmployeeIDChild().getValue());
    // display Edit page which has fields for editing the employee record
    Create an edit ViewBean, with editable fields bound to the EmployeeModel; add an button labeled update
    public void handleUdpateRequest....{
    EmployeeModel model = .....;
    model.save();
    // do whatever is next ....
    Notice that the we are jumping across request boundaries in this example. Using just default model reference configurations, the EmployeeModel will be created brand new during the Update request and there will be no bean currently adapted. Most likely, you would want to have the model (and hence its adapted bean) stored in HttpSession across at least these related requests. In this case the model reference used by the search ViewBean would have "store in session" true. and the model reference in the edit ViewBean would have "look in session" true.
    What we recommend is that someone who understands the business tier design take the responsibility to create a set of "business delegates" as JATO models. An advanced technique would be to encapsulate these models in a component library JAR which multiple web applications can reuse. As you can imagine, there are so many ways to do the same thing. You could just as easily make a CustomModel or SimpleCustomModel to adapt to your EJB. You can also, if your EJB uses primitives or JavaBeans (or graphs of JavaBeans) for all parameters, use the ObjectAdapterModel to directly connect to an EJB.

  • FBean.Register(classname) only succeeds the first time classname is used?!

    This is not a question, it is a futile cry of helplessness, such as a 9 month old might make when they strike their head on a rock.
    Consider:
    'BLOCKA'.WHEN-NEW-BLOCK-INSTANCE:
    FBean.Register_Bean('ITEMA', ALL_ROWS, 'my.TestBean');'BLOCKB'.WHEN-NEW-BLOCK-INSTANCE:
    FBean.Register_Bean('ITEMB', ALL_ROWS, 'my.TestBean');And what happens? If BLOCKA is 'first', ITEMA is populated with the TestBean, but BLOCKB's ITEMB is not. Conversely, if BLOCKB is first, ITEMB is populated with the TestBean, but BLOCKA's ITEMA is not.
    Happily, it doesn't matter to me today. But it would be fair to say that Forms and I are becoming estranged on a fairly brief aquiantance.

    Thanks Francois,
    I am certainly feeling a bit alone in the Oracle Forms enhanced JavaBeans world, trying to get a PROPERTY_CHANGED_EVENT to bubble up from my bean into my form. [This Google Query|http://www.google.com.au/search?q=FBEAN+PROPERTY_CHANGED_EVENT&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a] for "FBEAN PROPERTY_CHANGED_EVENT" (both of which would appear on the FBEAN.ENABLE_EVENTS line) finds only my poor posts from yesterday.
    I really, really dislike the legacy Forms JavaBeans approach. A JavaBean is all about properties and state. Something simple like 'background-color' is a good example. You should be able to simply:
    FBEAN.SET_PROPERTY('My_Bean_Area', 'background-color', '#FFFFF');
    which is equivalent to:
    bean.backgroundColor = "#FFFFFF";
    ... and the same bean class is usable in both Java and Oracle Forms.
    With the legacy Forms JavaBeans appraoch, you've got to write a wrapper class, AND you'd be forced to write something semantically nonsensical like:
    :success = GET_CUSTOM_PROPERTY('My_Bean_Area', 'SETBACKGROUNDCOLOR', '#FFFFFF');
    and the hapless monkey who's come to fix your broken code can't wrap his mind around why your'e using a getter to mutate the bean (or why you're returning a value from your setter, for that mattter).
    (PS. I do not accuse YOU of such crimes, but i have inherited a codebase which would shock you. and the legacy Forms JavaBeans approach is largely to blame).
    Anyhow. I guess I had better try to extract some sense from GET_CUSTOM_PROPERTY and friends instead of whining ...
    cheers,
    David.

  • Call webservice from PJC over https protocol

    Hello!
    I have problem calling webservice from PJC.
    The webservice is on https server so I must declare the keystore and truststore...
    I have generated java classes from wsdl file with SOPAUI and axis 1.0...
    Then I have made a code which integrate axis library, jsee ...
    On the client side all works fine (with jdk 1.3 compiler)
    When I deploy it on oracle forms server and call it from oracle form I get the error:
    java.net.MalformedURLException: unknown protocol: https
    in this way I register the certificate..
    private void registrirajCertifikat(String direktorij, String password,
            String keyStore, String trustStore) {
           System.out.println("keystore: " + direktorij + keyStore);
            System.out.println("trust: " + direktorij + trustStore);
            System.out.println("========================================");
            System.setProperty("javax.net.ssl.keyStore", direktorij + keyStore);
            System.setProperty("javax.net.ssl.keyStorePassword", password);
            System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
            System.setProperty("javax.net.ssl.trustStore", direktorij + trustStore);
            System.setProperty("javax.net.ssl.trustStorePassword",   password);
            System.setProperty("javax.net.ssl.trustStoreType", "jks");
            System.out.println("========================================");
            System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
            Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );     
        }I have my kestore and truststore located on http server..
    Every time the bean is initializzed I download the keystore and truststore to my java.tmp.dir
    The same code in Jdeveloper works fine.. also in cmd prompt.. but in oracle forms I can't get it to run..
    anybody can help me?
    this is my console output when running a form:
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\peterv.IN2SLO
    Proxy Configuration: no proxy
    JAR cache enabled
         Location: C:\Documents and Settings\peterv.IN2SLO\Oracle Jar Cache
         Maximum size: 50 MB
         Compression level: 0
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    q:   hide console
    s:   dump system properties
    t:   dump thread list
    x:   clear classloader cache
    0-5: set trace level to <n>
    Loading http://dekani:7777/forms/java/frmall_jinit.jar from JAR cache
    Loading http://dekani:7777/forms/java/images.jar from JAR cache
    Cached copy of http://dekani:7777/forms/java/in2kartica.jar
    ** DOKUMENTNI SISTEM   **
    ** PJC bean                     **
    zacetek
    http://10.1.2.235/in2/asarh.pfx
    Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    3794 byte(s) copied
    http://10.1.2.235/in2/arhaskeystore.jks
    Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    3800 byte(s) copied
    Registriramo nastavitve za SSL
    keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    ========================================
    po registraciji nastavitev za SSL
    ========================================
    https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
    --> napaka: *java.net.MalformedURLException: unknown protocol: https*
    java.net.MalformedURLException: unknown protocol: https
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at in2.mikrocop.Test.dokumenti(Test.java:94)
         at in2.mikrocop.Test.testiranje(Test.java:66)
         at in2.mikrocop.Test.<init>(Test.java:49)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.ui.VBean.instantiateBean(Unknown Source)
         at oracle.forms.ui.VBean.setProperty(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    I have tryed tu run my example with Jinitiator "java" like
    c:\java -jar c:\in2kartica.jar
    and all works fine..
    I don't know why the same example won't run inside oracle form as javabean?!?
    this is my cmd console
    C:\jdk\bin>java -jar c:\in2kartica.jar
    ** DOKUMENTNI SISTEM   **
    ** PJC bean            **
    keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
    trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
    ========================================
    po registraciji nastavitev za SSL
    ========================================
    https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
    unknown attr1.3.6.1.4.1.311.17.1
    Dolzina: 91  <------------ this is the result from webservice located on address above

  • Resizing the wrapped swing component inside the javafx stage

    I have a customized swing component & need to wrap it in javafx stage. But as & when the javafx scene resizes, I want to resize the swing component accordingly.
    One way of resizing this is to scale the swing component. But is there any other way or layout to do it efficiently.
    --Nitin Pokalwar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello
    <p>Let's have a look at this Forms PJC/JavaBean site</p>
    Francois

  • Applet with JTree

    I'd like to create Swing JTree in form of JavaBean and populate tree nodes
              dinamically from database and such a JavaBean use in some JSPs. Recent
              efforts in creating JTree inside applet resulted that I wasn't able to
              coonect to database because of applet's security restrictions, but in
              JavaBean it seems it could be solved. Where can I find similar code example?
              

    I have realized that is not just the applet! is anything graphical with java! I if run the java plug-in from control panel, I need to double click every thing to make it work... and even in this way, the window do not draw fine... so I think is not the browser, is something with the JVM of that Windows.
    I uninstalled all the JRE in the machine and installed a fresh copy of 1.4.1_X ... but the problem persists...
    Ideas?

  • Windows ME is killing ME!!

    Hi. I am encountering something very very bizarre.
    I am designing an online bookstore. I used Windows 98 and Apache Tomcat 4.0.1 for my development purposes. In fact, the web application ran and was tested, without a hitch on two different machines, both running on Windows 98.
    I adopted the MVC design pattern, calling the Controller to perform some service and then placing the results (in the form of JavaBeans) into the request object. The Jsp acted as the views, retrieving the Java Beans stored in request object.
    All this worked without a glitch till I ported the entire application onto Windows ME, the entire crashed! I mean the web application could only function well for ONE request and then the subsequent requests couldn't work anymore! All the request.getAttribute() returned null!
    Is there something wrong with Tomcat running on Windows ME ?
    I am very dumbfounded!

    I was using ME too !
    I give up, all sort of problem came...
    Now, i got two PC !
    One to do the server on Win2000 and MySQL
    The second, the workstation on WIN XP
    Never had a problem !

Maybe you are looking for

  • Different version between Indesign and Incopy?

    It ispossible to use different versions of both programs?? I have and use Indesign CS2 for windows for a newsletter and I have Incopy CS4 for mac for a printing facility Is this possible? Thank´s in advance

  • GRN issue against PO

    Hi, We are facing an issue while doing the GRN(goods receipt note) against PO as "NO Data available Message no WRF_CONS010". And for same case when we are trying to do the inward in other client, we are able to do inwarding. Kindly suggest what to do

  • Iphoto folders in finder, can i make them appear?

    I use iphoto and have created many folders within the application to organize my photos. My problem here is, for example when I want to send a file from Skype, I cant drag a photo from iphoto and drop into the skype (send to) function. I have to sele

  • Can Adobe Story be used for writing something other than a screenplay?  Say and article or short story?

    I have just downloaded Adobe Story and I am wondering if it can be used to write an Article or Novel.  Maybe in a short story?

  • Labview software incompatible for windows xp

    Hi.... i have experience of installing labview 2010 and when i try to open the Agilent ESG series example, it works on windows 7 professional. however when i transfer to another pc which is windows xp version 2002 service pack 3, it couldnt load the