As stated before, Books is an application, maintained by just one author, who should know about the expected data. Thus, there is no user interface with immediate response after each input or lots of hints. Of course, those features are essential for an application for potentially “unknown” users. Later on, when developing Alumni, we will cover those features in detail. However, a validation is useful to prevent the user from entering data which might not fit the database. Continue reading “Web Development with Java and JSF: Bean Validation”
Tag: Programming
NetBeans 8.0.1 translated
Looking for a French, Spanish, German or other translation? Just a few days after its release, NetBeans 8.0.1 is available for a couple of different languages [1].
Using Lambda expressions with JSF 2.2
JSF 2.2 comes in conjunction with EL 3.0. This version of the expression language offers a rarely known highlight: It is capable of using lambda expressions and streams. Even thought defined withing the Jave EE 7 spec (and not Java 8), you can still use these cool features! Continue reading “Using Lambda expressions with JSF 2.2”
Tutorial web development (with JSF) XIV – Security Part III
Now, after we’ve addressed basic log-in with simple file realm, I want to move on by exchanging the authentication method. Remember, this tutorial is about web development with JavaServer Faces. All I showed for container based security so far, is technology entirely independent from JSF. Same applies to simple form log-in. But, it’s possible to embed this into some JSF techniques. And, further on, using programmatic log-in, this is done by the use of JSF. Continue reading “Tutorial web development (with JSF) XIV – Security Part III”
NetBeans enhancements
I suggested some NetBeans enhancements. If you like such features too, please vote for them:
- Test code usually is separated from productive code, e.g. by usage of two folders like java/main and java/test. It is common to place test in the same packages as the code under test. In NetBeans, project tree, there are two branches, Source Packages and Test Packages. By a common convention, tests are named like the class to be tested with a postfix of Test, e. g. MyClass and MyClassTest The suggestion is to display a third branch Logical Packages, which is a merged view. Thus, a test are displayed next to the classes to be tested. [Task #239800]
- When renaming a class, NetBeans offers the option to rename the test too. The suggestion is to offer a similar feature whilst renaming a package. [Task #240025]
- When you write java code and refer a non-existent method, NetBeans offers a create method feature. When you edit a JSF page, NetBeans alerts missing property or missing method. I recommended to offer a create feature too. [Task #239818]
Tutorial web development (with JSF) XII – Security Part I
Sometimes it is crucial to protect an application or data against unauthorized access. Although there is no need to secure my tiny calculator, I’m going to demonstrate the principals of container based security by using this small app. For a description of the project, please refer to Tutorial web development (with JSF) III: Basic arithmetics.
Container provided security is not specific to JSF. It’s part of the HTTP handling and might be used by a simple servlet too. But later on, I’m going to show you, how to integrate this into a JSF application by using programmatic access. But, first of all, some background. Continue reading “Tutorial web development (with JSF) XII – Security Part I”
GlassFish 4 and UTF-8
Do you build web applications with JSF and GlassFish? And do you need to process inputs with characters which are coded with multi-bytes using UTF-8, e.g. German Umlauts? You might have recognized a strange behavior if you use GlassFish 4.
Now, let’s check for the problem by building a simple application. With NetBeans, simply choose New Project, Java Web, Web Application. Add JSF as framework. If you need detailed information how to create a web application with NetBeans, please take a look into my JSF tutorial. Continue reading “GlassFish 4 and UTF-8”
NetBeans Java EE7
By now, GlassFish 4 is still not bundled to NetBeans daily builds. You have to install it separate as I described in an former article [1].
Do you want to know about the upcoming Java EE 7 support? A bunch of tasks and features is decribed in the the NetBeans wiki [2].
[1] http://blog.mueller-bruehl.de/netbeans/set-up-netbeans-for-java-ee7/
[2] http://wiki.netbeans.org/JavaEE7
Set up NetBeans for Java EE7
NetBeans 7.3 is almost ready. I guess, it takes just a few day until it is available. Even though this version offers new great features [1], one thing is still missing: Support for Java EE7. You may wait for an update – or try the development version. This article describes, how to setup NetBeans with GlassFish 4 for use as early Java EE7 environment. Continue reading “Set up NetBeans for Java EE7”
NetBeans proposal: Unified method to create projects
During the current NetCAT game, I pointed out that division of projects into categories is not logical. While Ant based Java project resides under Java > Java Application (category > concrete project type), the Maven based one can be found under Maven > Java Application (Maven > concrete project type). I suggested to join both wizards and let user choose the build system in a new wizard step.
Jiřà Kovalský (NetBeans quality manager) requested me to file an issue. I just did it. Issue #224999 [1]
If you want to second this, please feel free to vote for it.
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=224999