Jan
17
2010

Table of contents
Technorati Tags: annotation, boilerplate code, eclipse, field, generate, generators, gwt 2.0, Java, label, labelfieldgenerator, printwriter, textbox, textfieldgenerator
Tags: annotation, boilerplate code, eclipse, field, generate, generators, gwt 2.0, Java, label, labelfieldgenerator, printwriter, textbox, textfieldgenerator
Okt
15
2009

The problem
Just imagine you run into a case where two objects are dependent on each other. The following picture and code snippet shows one such relationship.
Technorati Tags: circular reference dependencies, google guice, Java, Spring
Tags: circular reference dependencies, google guice, Java, Spring
Jan
30
2009



In this Blog i will show you how to develop Adobe Flex Applications with the NetBeans 6.5 IDE. The used plugin FlexBean is still under development by Arnaud Vincent . Many features are missing in the Version 1.0.1 used in this Blog, for example syntax highlighting and a GUI-Designer.
Please note:
I have contributed this blog to the NetBeans Community.
Table of contents
Technorati Tags: adobe, flex, flexbean, Java, NetBeans, servlet
Tags: adobe, flex, flexbean, Java, NetBeans, servlet
Okt
22
2008

On my stressful way learning how to be a great SAP NetWeaver Developer, i am reading many books and online-tutorials. In this blog i want to show you some good books which i recommend. All books are available in German too.
Technorati Tags: abap, adobe flex, books, Java, netweaver, nwds, portal, SAP, sap press, visual composer, web dynpro, xapps
Tags: abap, adobe flex, books, Java, netweaver, nwds, portal, SAP, sap press, visual composer, web dynpro, xapps
Jul
22
2008




In this blog you can read how to create a Web Application with NetBeans 6.1 and the GlassFish 2 Application Server. This Web Application is using Facelets, MyFaces 1.2 and the Spring 2 technologies.
Please note:
I have contributed this blog to the NetBeans Community.
Prerequisites
First update your NetBeans 6.1 to the newest version (currently it is Build 200804211638).

Install the Facelets Support Modules and restart NetBeans.
Create a new Web Application
Create a new Web Application, name it “Spring_and_Facelets“.

Choose GlassFish v2 as Server and click next.

In the last step, activate the Facelets-Framework.

Open the Project Properties and remove all libraries.

Download and add my special MyFaces and Facelets Libraries Collection to the project.

Build and run the application. You should see this in your browser:

Adding some Facelets functionality
It is now time to add some specific Facelets functionality to this small Web Application. First we create a new facelets file, name it “header“.


Insert this HTML code into the file:
header.xhtml
Technorati Tags: Facelets, GlassFish, Java, MyFaces, NetBeans, Spring
Tags: Facelets, GlassFish, Java, MyFaces, NetBeans, Spring
Jul
06
2008

In this blog i will show you a short hint how you can access your Spring-ApplicationContext from everywhere in your Application.
Imagine you have an application (e.g. a web or swing-application) which you now want to be Spring-enabled. Ok you add the Spring libraries and the Configuration-file and create your Spring-beans. But there are still some old class-files which you can’t use in this way. These files still need access to the Spring-Honeypot where all the goodies exists and you don’t want to redesign your application.
First create the class “ApplicationContextProvider“. This class implements the ApplicationContextAware. A bean which implements the ApplicationContextAware-interface and is deployed into the context, will be called back on creation of the bean, using the interface’s setApplicationContext(…) method, and provided with a reference to the context, which may be stored for later interaction with the context.
ApplicationContextProvider.java
Technorati Tags: ApplicationContext, Java, Spring
Tags: ApplicationContext, Java, Spring
Jun
29
2008




This short blog entry will show you how easily you can integrate JAX-WS into a Spring 2 Project. The example sourcecode is depending on my previous blog How to modify JAX-WS SOAP-Messages and i am using NetBeans 6.1.
Prerequisites
Download the JAX-WS commons and XBean.
Transform the SOAP Web Services Project into a Spring Project
First open the Non-Spring-Project “How to modify JAX-WS SOAP-Messages“, switch to the project-properties and add the XBean, JAX-WS commons and Spring Framework 2.5 JAR-files.

You can see in this picture which JAR-files have to be included in the project:

Now you have to create the Spring Configuration file. Create the new XML-file: /WEB-INF/applicationContext.xml. If you are using NetBeans 6.1, navigate to File->New File->Spring Framework->Spring XML Configuration File.

Replace the content with this:
applicationContext.xml
Technorati Tags: Java, jax-ws, NetBeans, soap, soaphandler, Spring, web services
Tags: Java, jax-ws, NetBeans, soap, soaphandler, Spring, web services
Mai
23
2008

I have build manually the Facelets Support Modules for NetBeans 6.1. You can download them here: faceletssupport_for_netbeans6.1.zip
To install the Modules, navigate in NetBeans to Tools -> Plugins -> Downloaded, hit Add Plugins and choose the modules. Click on Install to start the installation.

Technorati Tags: facelets support, Java, NetBeans
Tags: facelets support, Java, NetBeans
Mai
14
2008

In this blog i will show how easy and fast you can create Database-Mashups with full CRUD support, using Naked Objects.
Naked Objects is an open source Java-based application development platform which can use a transient (fake) or a real existing database. Support for Hibernate is included, so you can connect to every supported database.
Naked Objects also generates HTML and Window(DND) -Interfaces which are both
customizable.
Note:
Download-links to all files are available at the end of this blog-entry.
Prerequisites
Download the Naked Objects Framework http://www.nakedobjects.org/downloads/index.shtml and extract the included JAR-files from the directory “/lib“.

Create the prototype
Create a new simple Java Application, name it “NakedObjectsDNDapp” and disable
the field “Create Main Class“. Naked Objects is using a specific class.

Open the project-properties and add the extracted JAR-files to the project.

Switch to the category “run” and write in the field “Main Class“:
Technorati Tags: CRUD, HSQLDB, Java, Mashup, Naked Objects, NetBeans
Tags: CRUD, HSQLDB, Java, Mashup, Naked Objects, NetBeans
Apr
09
2008

This blog was submitted to the NetBeans IDE 6.1 Beta Blogging Contest.
In this blog you can read how to create a (very simple) reverse Ajax Web-Application, using NetBeans 6.1 BETA and running on GlassFish v2 (YES – i like new technologies!). This example is also working with previous NetBeans versions and Apache Tomcat 6.
Note:
Download-links to all files are available at the end of this blog-entry.
Prerequisites
To work with this example you need an installed NetBeans 6.1 BETA (as above mentioned, older versions are working too) with included GlassFish v2 and the DWR-Jar’s (included in the Example-archive). If you don’t want to create this example from scratch, you can open it with NetBeans and run it immediately. You can read in my other blog how to open an existing NetBeans project.
Introduction
There are many reverse Ajax Frameworks like COMETd and Pushlets which have the ability to push data from the Web Server to the Client (Browser). This effect is similar to applications using traditional Ajax with polling to detect new information on the server.
DWR, or Direct Web Remoting, is a Java open source library which helps developers write web sites that include Ajax technology. It allows code in a web browser to use Java functions running on a web server as if those functions were within the browser.

DWR consists of two main parts:
Technorati Tags: Ajax, dwr, GlassFish, Java, NetBeans
Tags: Ajax, dwr, GlassFish, Java, NetBeans