Category Archives: Programming

Joining Java Streams

Java 8 introduced some impressive new features. Lambdas in conjunction with Streams finally support a functional style of programming. But, unlike LINQ of the .NET world, there is no operator to join streams. Thus, I tried to join streams manually. … Continue reading

Posted in NetBeans, Programming | 2 Comments

Tutorial web development (with JSF) XV – Security with JDBCRealm

Ok, we secured our JSF web application by using a JSF form. The user information is still stored in a flat text file. But as stated before, your application server provides more. This lesson, we move forward to GlassFish’s JDBCRealm, … Continue reading

Posted in NetBeans, Programming, Tutorial, Web development | Leave a comment

CDI issue using GlassFish 4

Within a web application, you often need a state to create a session lifecycle. You may create a CDI named been with session scope, to keep track of some user data. Suppose, you have a JSF application. Assigned to your … Continue reading

Posted in NetBeans, Programming, Web development | Tagged , | 2 Comments

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 … Continue reading

Posted in NetBeans, Programming, Tutorial, Web development | Tagged , , , , , , | Leave a comment

Tutorial web development (with JSF) XIII – Security Part II

In this part of the security trail, we start with Basic Authentication and fileRealm. For some basic background information, please refer to the former part. To secure the TinyCalutor, we need to add a security constraint to web.xml.

Posted in NetBeans, Programming, Tutorial, Web development | Leave a comment