JSF composite components

Let’s assume, we use JSF to write an application which offers a simple registration form. This form queries the user for his first name, last name, and email. The page definition might be similar to the one following, but can’t we avoid the repetition of code? Continue reading “JSF composite components”

Multi carets editing

NetBeans 8.2 is scheduled to be released end of summer 2016. One popular feature is called pin watches. During a debug session you may define several watches in the variable window to view the current content of a variable or value expression. With pin watches you may pin such a watch directly to the source code. Amongst others Geertjan described this amazing feature in his blog [1].

Today I’m going to describe another upcoming feature, which is yet available if you download a nightly build [2]: Editor Multicarets. Continue reading “Multi carets editing”

Interactive Java with jshell

So far we used Nashorn to emulate a Read-Eval-Print-Loop (REPL) for Java. But Java 9 can do better. This version includes a real REPL – the command line tool jshell. Although the Early Access (EA) version is not intended for production, you still can use it for interactively working with Java. Continue reading “Interactive Java with jshell”

Interactive Java using Nashorn (part II)

In my last blog [1] I showed you how to invoke Nashorn, how to add a Java class and how to invoke a method on it. Now, we want to perform some queries on a bigger amount of data. You can find a description of this data structure on the free sample pages of my book “Java Lambdas and (parallel) Streams” [2]. You may download the sources of the data generator from source section of the associated web site [3]. Continue reading “Interactive Java using Nashorn (part II)”

Interactive Java using Nashorn (part I)

Have you ever needed to evaluate a Java class, or just perform some quick tests to see how a statement is working? Writing a full Java program just to test a single command might be a solution. A better one would be to use a REPL (Read Eval Print Loop) tool for an interactive test of Java constructs.

I’m going to write about the upcoming REPL tool of Java 9 soon. But before, I like to show how to perform this task with the recent Java 8   version. Continue reading “Interactive Java using Nashorn (part I)”

JavaLand 2015 & Java aktuell

Last week I visited JavaLand 2015. This great software conference [1] with lot of community activities resides in my home town Brühl [2].

Beside attending lots of tracks I had the opportunity to meet a couple of people face-to-face like Ed Burns (JSF Spec Lead), Geertjan Wielenga (NetBeans product manager), Arun Gupta (Java EE evangelist) and more, especial lot of JUG members from all over Germany. Read an article about my impressions [3].

Most slides are available for download now [4].

And I had the chance, to attend the celebration of 5 years Java aktuell, the Java magazine by the iJUG [5]. Great!

[1] javaland.eu
[2] bruehl.de
[3] heise.de/developer/artikel/developer_artikel_2591380.html
[4] javaland.eu/programm/vortragsunterlagen-zum-download.html
[5] doag.org/index.php?id=1230

Conversation Scope

Our next task is to create a new book entry or to edit an existing one. The book editor shall consist of a tab panel offering one page for the books meta data like title, author, publisher, and one page for each language, where you can edit a review. It must be possible to switch between these pages without loosing data. Not very hard to imagine, that we need a backing bean living longer than just one request. Continue reading “Conversation Scope”

NetBeans 8.1

NetBeans 8.1 is scheduled for the mid of 2015. By now, most enhancements are included for the frontend (browser) development, like JavaScript frameworks, JavaScript editor, debugging facilities and more. Also support for the server side is enhanced, especial for Node and PHP. Since Java EE offers everything you need for server side programming, I hope there will be remarkable enhancements for this technology too. By now, support for remote WebLogic is integrated. Continue reading “NetBeans 8.1”