« July 2008 | Main | September 2008 »

August 2008 Archives

August 10, 2008

Installed Windows Server 2008 x64


Installed Windows Server 2008 x64

 

I was thinking to upgrade my 32 bit Windows Server 2008 to 64 bit Windows Server 2008. I want to retain all the applications and settings that I have installed in my 32 bit Windows 2008 so instead of fresh installation I intended to upgrade.

 

The good parts are I can initial the installation of Visual Studio 2008, Symantec Endpoint v11 32 bit runs and JDeveloper runs without giving any problem till now.

 

The bad parts, perhaps need the effort of both, are Oracle 10g 64 bit keep complaining the Operating System is neither NT 5.0 nor NT 5.1 but NT 6.0 so it cannot install in it. Well, that I think Oracle part need to get it solve.  

 

I will post more and more 64 bit stuffs because of 64 bit question is getting more in ODP.NET forum as well as others like C# General forum

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.

About August 2008

This page contains all entries posted to Ming Man Chan's Blog in August 2008. They are listed from oldest to newest.

July 2008 is the previous archive.

September 2008 is the next archive.

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

Powered by
Movable Type and Oracle