AMIS Oracle and Java Blog » Leon van Tegelen https://technology.amis.nl Friends of Oracle and Java Sun, 05 Jul 2015 19:26:49 +0000 en-US hourly 1 http://wordpress.org/?v=4.2.2 Bring in the decorators – SiteMesh! https://technology.amis.nl/2005/03/07/bring-the-decorators-in-sitemesh/ https://technology.amis.nl/2005/03/07/bring-the-decorators-in-sitemesh/#comments Sun, 06 Mar 2005 22:14:58 +0000 /?p=449 Share this on .. There are several approaches to keep a consistent look and feel for your web application. Lots of times the site will contain a navigation bar, a heading maybe a footer. Of course you can do this using frames or jsp includes. Well frames are probably a thing of the past. And [...]

The post Bring in the decorators – SiteMesh! appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

There are several approaches to keep a consistent look and feel for your web application. Lots of times the site will contain a navigation bar, a heading maybe a footer. Of course you can do this using frames or jsp includes. Well frames are probably a thing of the past. And using includes is not very flexible and easy to maintain.
In one of the projects I was involved in we used JSP includes to add a menu on the left of every screen. And then the person responsible for the UI (non-programmer) decided it should be a menu on top of the page using javascript pulldowns. That meant we had to redo every single JSP. Lovely.
Of course you are thinking tiles now. And indeed if we had used tiles it would have been a lot easier.
But this weekend I stumbled upon SiteMesh

SiteMesh is a web-page layout and decoration framework and web- application integration framework to aid in creating large sites consisting of many pages for which a consistent look/feel, navigation and layout scheme is required.

SiteMesh intercepts requests to any static or dynamically generated HTML page requested through the web-server, parses the page, obtains properties and data from the content and generates an appropriate final page with modifications to the original. This is based upon the well-known GangOfFour Decorator design pattern.

Well I tried it and I like it very much. It is very easy to set up (less than 5 minutes) and works like a charm. It is non-invasive very flexible and extendable. I think it is easier to use than tiles.

One of the standard mappers allows you to specify a separate decorator for different browser. Again using it is a snap.
Next web-app I’m involved with will use SiteMesh for sure

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Bring in the decorators – SiteMesh! appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/03/07/bring-the-decorators-in-sitemesh/feed/ 0
XmlHttpRequest – blast from the past or future https://technology.amis.nl/2005/03/05/xmlhttprequest-blast-from-the-past-or-future/ https://technology.amis.nl/2005/03/05/xmlhttprequest-blast-from-the-past-or-future/#comments Sat, 05 Mar 2005 00:18:20 +0000 /?p=448 Share this on .. In several places XMLHttpRequest sprung up this week. XmlHttpRequest is a JavaScript object allowing browser clients to communicate with a server without refreshing the current page. This object originated from Microsoft, implemented as an ActiveX object. But other browser including mozilla are also supporting it now. Amis already built an application [...]

The post XmlHttpRequest – blast from the past or future appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

In several places XMLHttpRequest sprung up this week. XmlHttpRequest is a JavaScript object allowing browser clients to communicate with a server without refreshing the current page. This object originated from Microsoft, implemented as an ActiveX object. But other browser including mozilla are also supporting it now. Amis already built an application using this technology way back in 1999. The guys who developed that system have proven to be quite visionary. The way they built is exactly what Duncan Mills describes in his commentary on a TSSS presentation.

the use of XmlHttpRequest to communicate with the server asynchronously in the background, and populating the page by manipulating the DOM tree. So the page can be updated without refreshing the whole page, giving you things like instant validation and really dynamic screens..

They took it even a step further in creating a behavior (htc file) which they attached to HTML tables. In this way the tables act like multi record blocks in Oracle Forms. The table remains in place and only data change, complete with scrolling. Really cool. Changes in data are cached in an XML object clientside until the save button is pressed. The records are then posted to the server again using the XMLHttpRequest. There the posted XML is handled by a generic “XML to Table data converter”.

Now that it has become mainstream I can see a lot of good uses for it. Indeed validation, dynamic screens but also for example coordinated select list and “smart forms” (completion of entered values). An excellent little example and great introductory tutorial on XmlServletRequest can be found here
It shows how based on a zip code, city and state are filled in in the onblur event of the zip code textfield
Javascript is much more powerfull this way, it can call webservice, query a database etcetera. It’s is not tied in with any serverside language. You can use any language you want, PHP,CGI,Java.

Interestingly enough the response to an XmlHttpRequest does not have to be XML …

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post XmlHttpRequest – blast from the past or future appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/03/05/xmlhttprequest-blast-from-the-past-or-future/feed/ 8
new JHeadstart Team blog Announces production release https://technology.amis.nl/2005/02/19/new-jheadstart-team-blog-announces-production-release/ https://technology.amis.nl/2005/02/19/new-jheadstart-team-blog-announces-production-release/#comments Sat, 19 Feb 2005 15:33:56 +0000 /?p=418 Share this on .. Oracle’s JHeadstart team does a double whammy, not only do they release the production version of ADF JHeadstart but they announce it on their brand new weblog. As already mentioned in earlier posts on our blog the new and improved JHeadstart builds on the ADF runtime. For a customer we allready [...]

The post new JHeadstart Team blog Announces production release appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

Oracle’s JHeadstart team does a double whammy, not only do they release the production version of ADF JHeadstart but they announce it on their brand new weblog.

As already mentioned in earlier posts on our blog the new and improved JHeadstart builds on the ADF runtime. For a customer we allready have working with several beta builds. So far it is looking really good. The application (20 master- detail multirecord UIX screens) already meets the specs for about 80 – 90%. When I complied the project last week using an Ant script I noticed the following line ” compiled 2 classes “. Yes, we only coded two java classes to that point, a special LoginAction (10 lines of code) and a BaseAction class. The rest is provided by the ADF framework and JHeadstart extensions on ADF. 2 javaclasses and a big bunch of xml files and the application is working 10 days after we started on the project…..

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post new JHeadstart Team blog Announces production release appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/02/19/new-jheadstart-team-blog-announces-production-release/feed/ 2
JDeveloper 10.1.2 bug and release schedule https://technology.amis.nl/2005/02/19/jdeveloper-1012-bug-and-release-schedule/ https://technology.amis.nl/2005/02/19/jdeveloper-1012-bug-and-release-schedule/#comments Fri, 18 Feb 2005 22:32:35 +0000 /?p=417 Share this on .. Recently I ran into a bug in JDeveloper 10.1.2 or actually in the ADF Business Components version supplied with it. Calling getAttributesNames() on a viewobject resulted in a nasty npe. After spending 20 minutes confirming it wasn’t some programming glitch I introduced I checked Google and the otn forums (Yes, in [...]

The post JDeveloper 10.1.2 bug and release schedule appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

Recently I ran into a bug in JDeveloper 10.1.2 or actually in the ADF Business Components version supplied with it. Calling getAttributesNames() on a viewobject resulted in a nasty npe. After spending 20 minutes confirming it wasn’t some programming glitch I introduced I checked Google and the otn forums (Yes, in that order) and I found a forum entry where Steve Muench indeed aknowledged it is a 10.1.2 bug. The workaround I my case was quite easy , I made a small utitlity method mimicking the original getAttributeNames.

<code>    public static String[] getAttributes(ViewObject vo) {
    AttributeDef[] defs =  vo.getAttributeDefs();
    String[] names = new String[defs.length ];
    for (int p = 0 ; p < defs.length ; p++) {
      names[p]=  defs[p].getName();
    }
    return names;
  }
</code></code>

As such this doesn’t really merit a post, the bug is not a biggie. But what has been bugging me for some time know is that I can’t get a grip on Oracles release schedule. For example, this bug when will it be fixed? Will there be any maintenance releases before the big 10.1.3 release? Speaking of 10.1.3, when will it come ( April, summer I’ve heard different rumours ). I don’t know. Neither do I know what will be actually in it. True there is a (very good) preview available, but for example ADF is not yet in it. Scanning different blogs and for example the developer poll on the Jdev home page you can get a global view.

But would’t it be nice if there were a dedicated page on OTN keeping us up to date on short term and long term release plans and dates. I would also like to see more frequent (for example monthly) maintenance releases. The 10.1.2 maintenance release contained over a 1000 bug fixes, but we had to wait a considerable time for them.

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post JDeveloper 10.1.2 bug and release schedule appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/02/19/jdeveloper-1012-bug-and-release-schedule/feed/ 2
Templates in Oracle JDeveloper https://technology.amis.nl/2005/02/02/templates-in-oracle-jdeveloper/ https://technology.amis.nl/2005/02/02/templates-in-oracle-jdeveloper/#comments Wed, 02 Feb 2005 10:44:32 +0000 /?p=378 Share this on .. Chris Schalk has posted a very interesting blog on web templates in JDeveloper 10.1.2 (production) and JDeveloper 10.1.3 (preview). This how-to is only published on the Chris Schalk’s blog This will surely increase your productivity, when working with custom designs Share this on ..

The post Templates in Oracle JDeveloper appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

Chris Schalk has posted a very interesting blog on web templates in JDeveloper 10.1.2 (production) and JDeveloper 10.1.3 (preview). This how-to is only published on the Chris Schalk’s blog

This will surely increase your productivity, when working with custom designs

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Templates in Oracle JDeveloper appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/02/02/templates-in-oracle-jdeveloper/feed/ 3
ADF Faces JHeadstart ? https://technology.amis.nl/2005/01/21/adf-faces-jheadstart/ https://technology.amis.nl/2005/01/21/adf-faces-jheadstart/#comments Fri, 21 Jan 2005 14:07:20 +0000 /?p=353 Share this on .. Andrej Koelewijn spotted a Jason Jacobi post on OTN regarding an upcoming utility for migration of UIX pages to ADF Faces/JSP pages. The upcoming JHeadstart release will support ADF but not ADF Faces (JSF). This utility makes you think it could be a way to extend ADF Jheadstart to ADF Faces [...]

The post ADF Faces JHeadstart ? appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

Andrej Koelewijn spotted a Jason Jacobi post on OTN regarding an upcoming utility for migration of UIX pages to ADF Faces/JSP pages.

The upcoming JHeadstart release will support ADF but not ADF Faces (JSF). This utility makes you think it could be a way to extend ADF Jheadstart to ADF Faces JHeadstart

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post ADF Faces JHeadstart ? appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/01/21/adf-faces-jheadstart/feed/ 0
Locking colums in HTML table (IE only) https://technology.amis.nl/2005/01/13/locking-colums-in-html-table-ie-only/ https://technology.amis.nl/2005/01/13/locking-colums-in-html-table-ie-only/#comments Thu, 13 Jan 2005 10:17:31 +0000 /?p=335 Share this on .. In a project I’m working on we have a HTML table with many columns for editing certain records. The users requested the possibility to lock the first column so that when scrolling they could see the context, like they can in for example Excel. In HTML this is not a trivial [...]

The post Locking colums in HTML table (IE only) appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

In a project I’m working on we have a HTML table with many columns for editing certain records. The users requested the possibility to lock the first column so that when scrolling they could see the context, like they can in for example Excel. In HTML this is not a trivial task.
I found Brett Merkey’s excellent website showing a very simple way to achieving this feature with Cascading Stylesheets. There is one caveat though, it only works for Internet Explorer 5+. In our case that is not an issue luckily.

To speed up the performance considerably with tables with many rows, I made a simple function caching the DIV container . It also encapsulates the div container name on the page instead of the stylesheet.

var container;
function find() {
  return (container != null?container:document.getElementById('tbl-container'));
}

In the stylesheet I then use the following expression

     left: expression(find().scrollLeft);)
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Locking colums in HTML table (IE only) appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/01/13/locking-colums-in-html-table-ie-only/feed/ 1
(Pre)-compiling JSP for Tomcat with Jasper https://technology.amis.nl/2005/01/05/precompiling-jsp-for-tomcat-with-jasper/ https://technology.amis.nl/2005/01/05/precompiling-jsp-for-tomcat-with-jasper/#comments Wed, 05 Jan 2005 15:03:02 +0000 /?p=318 Share this on .. When working on a project I like to precompile my JSPs just to test if haven’t made any (syntax) errors or forgot any resources, without having to deploy them on the appserver and testing them one by one. In a project we are working using Tomcat we use Ant to build [...]

The post (Pre)-compiling JSP for Tomcat with Jasper appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

When working on a project I like to precompile my JSPs just to test if haven’t made any (syntax) errors or forgot any resources, without having to deploy them on the appserver and testing them one by one.
In a project we are working using Tomcat we use Ant to build the application and package it in war, which is subsequently deployed on the Tomcat server.
This ant build copies all necessary resources to a build directory and starts compilition and war building from there.
I added an extra target to precompile the JSP as follows following the instructions found here.

&lt;target name="jspc" depends="init,copy-and-filter-web-content,copy-meta,make-lib-dir"&gt;
  &lt;taskdef classname="org.apache.jasper.JspC" name="jasper2"&gt;
    &lt;classpath id="jspc.classpath"&gt;
      &lt;pathelement location="${java.home}/../lib/tools.jar" /&gt;
      &lt;fileset dir="${env.CATALINA_HOME}/bin"&gt;
        &lt;include name="*.jar" /&gt;
      &lt;/fileset&gt;
      &lt;fileset dir="${env.CATALINA_HOME}/server/lib"&gt;
        &lt;include name="*.jar" /&gt;
      &lt;/fileset&gt;
      &lt;fileset dir="${env.CATALINA_HOME}/common/lib"&gt;
        &lt;include name="*.jar" /&gt;
      &lt;/fileset&gt;
    &lt;/classpath&gt;
  &lt;/taskdef&gt;
  &lt;jasper2 validateXml="false"
            uriroot="${build.dir}"
            outputDir="${build.dir.precompiledJSP}" /&gt;
&lt;/target&gt;

In this case I do not deploy the compiled JSPs on the server, I just compile them to test them. So the outputDir is just there for temporary storage.

If I for example put the following line in my JSP:

   &lt;html:img page="/img/struts-power.gif" alt="Powered by Struts"&gt;

The build will fail with the following error:

BUILD FAILED: C:developmentPROJECTSAmisHoursbuild.xml:85: org.apache.jasper.JasperException:
file:C:/development/PROJECTS/AmisHours/build/web/index.jsp(38,0) According to TLD, tag html:img must be empty, but is not

Which is easily repaired

   &lt;html:img page="/img/struts-power.gif" alt="Powered by Struts"/&gt;

If you follow the instructions in the document mentioned above, you can also deploy the compiled JSP to the tomcat.
But I think the solution with mapping the individual jsp patterns to classes in the web.xml might be somewhat confusing.

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post (Pre)-compiling JSP for Tomcat with Jasper appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/01/05/precompiling-jsp-for-tomcat-with-jasper/feed/ 2
JHeadStart ADF beta https://technology.amis.nl/2005/01/04/jheadstart-adf-beta/ https://technology.amis.nl/2005/01/04/jheadstart-adf-beta/#comments Tue, 04 Jan 2005 13:15:29 +0000 /?p=316 Share this on .. For some time now there have been some excellent viewlets on OTN on the functionallity of the next generation JHeadStart version which will work with Oracle Application Development Framework (ADF). Because of our special relationship with Oracle Consulting we were able to obtain a beta version of the JHeadstart ADF release. [...]

The post JHeadStart ADF beta appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

For some time now there have been some excellent viewlets on OTN on the functionallity of the next generation JHeadStart version which will work with Oracle Application Development Framework (ADF).
Because of our special relationship with Oracle Consulting we were able to obtain a beta version of the JHeadstart ADF release. Last month I took it for a brief spin. I must say I really like the fact that it is built on top of ADF. This means JHeadstart can now use the “ADF API” to talk to the model, instead of using its own implementation with DataObjects en DataObjectHandlers. Using the ADF plumbing and extending it where needed the JHeadstart runtime could slim down. JHeadstart can now really focus on its main objective, giving you a headstart with “fast, reliable, and repeatable development of complex transactional systems”.

After some small difficulties were overcome I built a small application (JSP and Struts) based on three tables in an Oracle Database using JDeveloper 9.5.0.2 with the ADF JHeadstart plugin. After setting up the business components, I opened the Application Structure File and a default application already had been configured, I just had to generate and run and the application was working.
JDeveloper with ADF already promisses you “productivity with choice”. But still you have to handcraft each JSP and the application flow by hand. Even with the help of drag and drop and visual editors that will become a boring, time consuming repetitive task when you have a “standard” transactional application. That is were JHeadstart can provide you with an overdrive. It will generate the necessary JSPs , ADF metadata and the struts-config for you.
Besides JSP and Struts controller also the ADFc controller and UIX are supported.

I’m not going to give you a list of the new and deprecated features, just check out the viewlets for that, pictures say more than words.

Looking at the future I think it would be a good idea if JHeadstart would also support ADF Faces (Oracles Java Server Faces (JSF) implementation), as I think that 2005 could become the “Year of JSF”.
Another important question is if ADF (JDeveloper) will eventually provide some of the “application template” functionality JHeadstart offers.

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post JHeadStart ADF beta appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/01/04/jheadstart-adf-beta/feed/ 0
JDeveloper 10.1.2 has arrived https://technology.amis.nl/2005/01/04/jdeveloper-1012-has-arrived/ https://technology.amis.nl/2005/01/04/jdeveloper-1012-has-arrived/#comments Tue, 04 Jan 2005 12:03:55 +0000 /?p=314 Share this on .. JDeveloper release 10.1.2 is finally available for download (here). This is a maintenance release with some new features and over 1,000 bug fixes for JDeveloper 9.5.0.2. Share this on ..

The post JDeveloper 10.1.2 has arrived appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

JDeveloper release 10.1.2 is finally available for download (here). This is a maintenance release with some new features and over 1,000 bug fixes for JDeveloper 9.5.0.2.

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post JDeveloper 10.1.2 has arrived appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2005/01/04/jdeveloper-1012-has-arrived/feed/ 2
Steve Muench on improving ADF performance https://technology.amis.nl/2004/12/10/steve-muench-on-improving-adf-performance/ https://technology.amis.nl/2004/12/10/steve-muench-on-improving-adf-performance/#comments Thu, 09 Dec 2004 22:45:29 +0000 /?p=294 Share this on .. Yesterday we had a technical session at Amis on ADF. In one discussion a concern was raised on how all the ADF metadata and the abstractionlayers would affect performance. Quite coincidently Steve Muench posted a presentation on Improving ADF performance he gave at Oracle Open World yesterday. A very good read, [...]

The post Steve Muench on improving ADF performance appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

Yesterday we had a technical session at Amis on ADF. In one discussion a concern was raised on how all the ADF metadata and the abstractionlayers would affect performance. Quite coincidently Steve Muench posted a presentation on Improving ADF performance he gave at Oracle Open World yesterday. A very good read, not only for people working with ADF, but also for those only working with the business components.

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Steve Muench on improving ADF performance appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2004/12/10/steve-muench-on-improving-adf-performance/feed/ 0
Oracle JDeveloper 10.1.3 Developer Preview is here … https://technology.amis.nl/2004/12/06/oracle-jdeveloper-1013-developer-preview-is-here/ https://technology.amis.nl/2004/12/06/oracle-jdeveloper-1013-developer-preview-is-here/#comments Sun, 05 Dec 2004 23:37:59 +0000 /?p=285 Share this on .. The Oracle JDeveloper release 10.1.3 Developer preview release can be downloaded from OTN. See JDeveloper Homepage “The Oracle JDeveloper 10g (10.1.3) release adds many new features, including a new look and feel, a greatly improved coding environment, extensive refactoring options, J2EE 1.4/J2SE 5.0 support, and visual JSF development.” I took it [...]

The post Oracle JDeveloper 10.1.3 Developer Preview is here … appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The Oracle JDeveloper release 10.1.3 Developer preview release can be downloaded from OTN. See JDeveloper Homepage
“The Oracle JDeveloper 10g (10.1.3) release adds many new features, including a new look and feel, a greatly improved coding environment, extensive refactoring options, J2EE 1.4/J2SE 5.0 support, and visual JSF development.”

I took it for a very quick spin today. I must say I like the new look and feel. If you look at some of the new features such as the refactoring (thank you) , the cvs support and the easy maximizable editor tabs (double click on a title to get the editor fullscreen and vice versa) it is not hard to see were they get some of their inspiration.

Much to my surprise they have left ADF out. Makes you wonder. Is ADF undergoing major revisions? If yes where is the focus? Extension of the out-of-the-box support for dataproviders? New Wizards? Drag and drop Editable Tables in JSP ( :-) )? Drag and drop support for JSF and ADF Faces? Application templates?
We will have to wait until Oracles releases another preview including ADF as they plan somewhere in 2005.

As for Toplink this release does not contain the 10.1.3 Toplink Developers preview. You’ll have to download the standalone version if you want to testdrive the JAXB and O – XML mapping features. Again in this JDeveloper release it is not possible to export the project to Java source, you can in the standalone version. Seems like a small thing to me to get it in …..

Even the startup icon has been revamped. In my opinion it looks more like a cappucino now…

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Oracle JDeveloper 10.1.3 Developer Preview is here … appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2004/12/06/oracle-jdeveloper-1013-developer-preview-is-here/feed/ 9
Putting SPELs on ADF Code https://technology.amis.nl/2004/12/02/spelling-your-code-in-adf/ https://technology.amis.nl/2004/12/02/spelling-your-code-in-adf/#comments Thu, 02 Dec 2004 16:13:47 +0000 /?p=283 Share this on .. There is a simple way to use the Expression language you use in JSTL expressions in your JSP’s, in ADF’s DataAction. Actually anywhere you can get hold of a LifeCycleContext (or any subclass) you can use SPEL. What you need is the class oracle.adf.controller.lifecycle.Evaluator. You can obtain one like this . [...]

The post Putting SPELs on ADF Code appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

There is a simple way to use the Expression language you use in JSTL expressions in your JSP’s, in ADF’s DataAction. Actually anywhere you can get hold of a LifeCycleContext (or any subclass) you can use SPEL. What you need is the class oracle.adf.controller.lifecycle.Evaluator.
You can obtain one like this
.

Evaluator eval = Evaluator.getEvaluator(lifeCycleContext);

You can feed this baby EL expressions just like in a JSP. The following code snippets show examples of doing it the code way as opposed to doing it the EL way

Getting a request parameter

<code>
daContext.getHttpServletRequest().getParameter("name");
(String)eval.getValue("${param.name}")
</code>

Setting a Session Atribute

<code>
daContext.getHttpServletRequest().getSession().setAttribute("SORTMANAGERPROVIDER", prov);
eval.setValue("${sessionScope.SORTMANAGERPROVIDER}", prov);
</code>

Getting a ControlActionBinding

<code>
DCBindingContainer bc = daContext.getBindingContainer();
JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("sortAny");
JUCtrlActionBinding action = ( JUCtrlActionBinding ) eval.getValue("${bindings.sortAny}");
</code>

There must be some overhead involved in the ExpressionEvaluator. In my simple method I didn’t measure any significant differences in performance.
But be sure to SPELL your expressions right to avoid runtime errors ..

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Putting SPELs on ADF Code appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2004/12/02/spelling-your-code-in-adf/feed/ 3
JDeveloper bug – ClassNotFound https://technology.amis.nl/2004/12/02/jdeveloper-bug-classnotfound/ https://technology.amis.nl/2004/12/02/jdeveloper-bug-classnotfound/#comments Thu, 02 Dec 2004 14:04:34 +0000 /?p=281 Share this on .. Every once in a while for no apparent reason a JDeveloper ADF/Struts project gets corrupted. When compiling the project I get an error that a certain class cannot be found. Most of the time it ‘s a struts HTML tag class. When I check my libraries and paths everything seems in [...]

The post JDeveloper bug – ClassNotFound appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

Every once in a while for no apparent reason a JDeveloper ADF/Struts project gets corrupted. When compiling the project I get an error that a certain class cannot be found. Most of the time it ‘s a struts HTML tag class. When I check my libraries and paths everything seems in perfect order. Very annoying.
One ( ) workaround is to disable automatic compiling before running the web-app. Compile the project by hand and run the web-app, ignoring the errors. But this does not really do the trick. There are other processes in JDeveloper which rely on successfull compilation (for example creating a DataControl).

On the OTN JDeveloper forum Steve Muench suggested backing up the JDEV_HOMEjdevsystem9.0.5.2.1618 directory and then removing it all together. This directory stores user preferences. Apparently something is corrupted there. The directory will be recreated automatically

I took this approach and all seem to be working OK again. Of course I had to re-add all my workspaces again to JDeveloper for them to appear in the navigator. I keep the old directory backed-up just in case

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post JDeveloper bug – ClassNotFound appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2004/12/02/jdeveloper-bug-classnotfound/feed/ 0
Toplink’s Object to XML mapping https://technology.amis.nl/2004/11/25/toplinks-object-to-xml-mapping/ https://technology.amis.nl/2004/11/25/toplinks-object-to-xml-mapping/#comments Thu, 25 Nov 2004 10:25:31 +0000 /?p=273 Share this on .. On OTN there is an excellent online seminar (replay) on the TopLink Object-to-XML support. This feature, which will be available in the upcoming 10.1.3 release, allows converting XML files into Java objects and vice versa. For those allready working with TopLink’s Object-relational mapping, the following will sound very familiar. It is [...]

The post Toplink’s Object to XML mapping appeared first on AMIS Oracle and Java Blog.

]]>
Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

On OTN there is an excellent online seminar (replay) on the TopLink Object-to-XML support.

This feature, which will be available in the upcoming 10.1.3 release, allows converting XML files into Java objects and vice versa. For those allready working with TopLink’s Object-relational mapping, the following will sound very familiar.

It is built on the JAX-B 1.0 specification. This is one one way of using the TopLink workbench, based on an XML schema the workbench can generate Java Classes using its built-in JAX-B compiler. Toplink also generates mapping metadata. These metadata provide a definition of how a certain XML element corresponds to a certain Java element. In this way a buffering layer is created between your object model and the XML-schema. Changes in a XML schema don’t not have to lead to changes in your object model. The changes will be done in the mapping metadata.
This also means you can connect your existing object model to an XML schema . Just import the classes into the mapping workbench, specify the schema and make the mappings. You can also specify transformation rules, for example in your XML-schema gender is represented as F and M , but in Java you want it to be Female and male.

In your application the TopLink runtime will use the metadata to marshall and unmarshall you XML documents.

There is a lot of extra info (and a Developer preview) on the TopLink product page on OTN

A nice sideline question is whether JDevelopers ADF will have out of the box support for O-X Toplink projects

Share this on .. Tweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Email this to someoneShare on TumblrBuffer this page

The post Toplink’s Object to XML mapping appeared first on AMIS Oracle and Java Blog.

]]>
https://technology.amis.nl/2004/11/25/toplinks-object-to-xml-mapping/feed/ 0