Main

Java Archives

August 22, 2008

Getting start using JDeveloper


Getting start using JDeveloper

This short article is based on South East Asia midsize region.

Many people in this region do not like Java because the developers feel Java code has no IDE (Integrated Development Environment) or the IDE does not run on their programming code. The question should ask here is “Why is this type of thinking emerge?” One of the obvious reason to this is the students never get to learn IDE tool from the school. Yet, do the lecturers themselves ever use any of these IDE tools? That will pretty much let the students think that the most powerful programming tool in the world is called Notepad.

There are several IDE tools for Java development in the market. I will only get start with JDeveloper in this article. JDeveloper is a tool that covers the complete development life cycle; Design -> Code -> Debug and Test -> Analyze -> Tune -> Deploy -> Versioning. To see the complete development life cycle demo click on the link: http://www.oracle.com/technology/products/jdev/viewlets/1013/JDev_complete_viewlet_swf.html

To get start with JDeveloper, try the Introduction to the JDeveloper IDE: http://www.oracle.com/technology/obe/obe1013jdev/10131/introide/introjdevide.htm

There are two good tutorials the developer should go through. The first tutorial is the J2EE Tutorial:  http://www.oracle.com/technology/obe/JavaEE_tutorial_10131/index.htm. The second tutorial is ADF tutorial: http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm

After the demo and tutorials the developers are able to put into production environment.

Online demos:


http://www.oracle.com/technology/products/jdev/viewlets/viewlet.html


August 31, 2008

The simplest 1 InputText and 1 CommandButton ADF (Application Development Framework) sample


The simplest 1 InputText and 1 CommandButton ADF (Application Development Framework) sample

It is a simple Java Server Page with ADF but it is not easy to find in the Internet. So, I created one here.

I have only one InputText and One Commandbutton on my page, all the properties are by default. I have a jspx page named OneButton.jspx and managed bean named OneButton.java.

Here is the XML representation in OneButton.jspx:

<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces"
          xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
  <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
  <jsp:directive.page contentType="text/html;charset=windows-1252"/>
  <f:view>
    <afh:html binding="#{backing_OneButton.html1}" id="html1">
      <afh:head title="OneButton" binding="#{backing_OneButton.head1}"
                id="head1">
        <meta http-equiv="Content-Type"
              content="text/html; charset=windows-1252"/>
      </afh:head>
      <afh:body binding="#{backing_OneButton.body1}" id="body1">
        <h:form binding="#{backing_OneButton.form1}" id="form1">
          <af:inputText label="Label 1"
                        binding="#{backing_OneButton.inputText1}"
                        id="inputText1"/>
          <af:commandButton text="commandButton 1"
                            binding="#{backing_OneButton.commandButton1}"
                            id="commandButton1"
                            action="#{backing_OneButton.commandButton1_action}"/>
        </h:form>
      </afh:body>
    </afh:html>
  </f:view>
  <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_OneButton-->
</jsp:root>

My InputText named inputText1 and CommandButton commandButton1. I have the following code in the managed bean:

    public void setInputText1(CoreInputText inputText1) {


        this.inputText1 = inputText1;


    }

    public CoreInputText getInputText1() {


        return inputText1;


    }

    public void setCommandButton1(CoreCommandButton commandButton1) {


        this.commandButton1 = commandButton1;


    }

    public CoreCommandButton getCommandButton1() {


        return commandButton1;


    }

    public String commandButton1_action() {


        // Add event code here...


        String name = "Hello";


        inputText1.setValue(name);


        return null;


}

Download the sample file from http://skydrive.live.com. The sample file name is JustAButton.zip. My MSN ID is chanmmn@hotmail.com

Download JDeveloper here: http://www.oracle.com/technology/products/jdev/index.html, unzip JDeveloper. Open the JDeveloper application file with jws extension.

September 11, 2008

Build an End-to-End Web Application with ADF Faces and Oracle TopLink (End product)

Just make this one of the shorter blog article I have. If you are trying the tutorial from the link:
http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_adftoplink/master-detail-edit_page_adf_toplink.htm

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is MDToplink.zip. My MSN ID is chanmmn@hotmail.com

September 14, 2008

Developing Business Services with ADF Business Components (end product)

Another lazy job ;-). If you are trying the tutorial from the link: http://www.oracle.com/technology/obe/obe1013jdev/10131/bslayer/bslayer.htm

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is OrderEntry.zip. My MSN ID is chanmmn@hotmail.com

Do feedback to me if the end product does not run for you.

September 15, 2008

Introduction to JavaServer Faces using JDeveloper (end product)

This one I did it back in May and should be fine. If you are trying the tutorial from the link: http://www.oracle.com/technology/obe/obe1013jdev/10131/jsfintro/jsfintro.htm

This tutorial is the good one to pick up Java Server Face (jsf). The fact is most of the developers build web pages in Java technology will use jsf.

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is JSFIntro.zip. My MSN ID is chanmmn@hotmail.com

Do feedback to me if the end product does not run for you. Have fun.

September 16, 2008

Build a Web Application with JDeveloper 10g Using EJB, JPA, and JavaServer Faces (end product)

If you are trying the tutorial from the link: http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm

Another short blog, tomorrow I will go for end product of viewlet instead of tutorial. If you are the one not too sure what viewlet is then please visit: http://www.oracle.com/technology/products/jdev/viewlets/viewlet.html.

After this tutorial you will realize you have not been doing much code by yourself, cool stuffs.

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is HR_EJB_App.zip. My MSN ID is chanmmn@hotmail.com

Do feedback to me if the end product does not run for you. Good day

September 20, 2008

Using ADF Business Components with Oracle ADF (end product)

ADF Business Component can test like a Windows Form application and pretty easy to build. The developer can deploy it for product too.

This is the end product of a demo instead of tutorial. If you are watching the viewlet Using ADF Business Components with Oracle ADF as the link http://www.oracle.com/technology/products/jdev/viewlets/1013/ADF_Business_Components_viewlet_swf.html and intend to have a complete sample to play with.

Download the sample file from http://skydrive.live.com. The sample file name is ADFBusinessComponent .zip. My MSN ID is chanmmn@hotmail.com

About Java

This page contains an archive of all entries posted to Ming Man Chan's Blog in the Java category. They are listed from oldest to newest.

Database is the previous category.

Windows Operating System is the next category.

Many more can be found on the main index page or by looking through the archives.

Top Tags

Powered by
Movable Type and Oracle