After I’ve learned about the new Flash scope before a while, I was often f***** by “JSF1095: The response was already committed by the time we tried to set the outgoing cookie for the flash. Any values stored to the flash will not be available on the next request.“. After reading all (I think around …
Category Archive: Articles
Jun
26
Validate different validation groups depending on clicked button
One of the new features intruduced with JSF 2 is JSR-303 aka. Bean Validation. With bean validation the input’s are validated against built-in or user defined annotations, placed on the fields, methods or classes. I’m often in the situation, where I have to validate different values in the same form, depending on what action should …
Sep
26
Glassfish load balancing using mod_proxy_balancer
Overview In my previous article about configuring a glassfish load balancer, I’ve used the mod_jk connector for the apache webserver. These time I’m going to show, how to solve this using the mod proxy balancer plugin shipped with the most apache installations. (A “cleaner” way in my oppinion) A couple of times I’ve tried to …
Apr
20
Simple UUID Generator
Just for fun…I really often need a uuid for manually adding entries to different databases. 917c9d46-9fcd-439c-b000-60bd1a9eddb2
Apr
13
Designer friendly JSF using jsfc attribute
Have you ever tried to edit your jsf code using a visual designer like dreamweaver? Or do you get your html layout from a professional designer and have to “translate” it to jsf? In the first case, most times it will be look very strange, because the designer doesn’t understand the jsf tags and so …
Nov
01
Load balancing glassfish using apache
Overview After my articles about setting up a glassfish cluster and enable session replication, its now time to put a load balancer in front of it. A couple of times I’ve tried to get the Sun load balancing plugin working, but without success. This was because of some operating system issues or other problems. So …
Oct
31
Enable glassfish session replication
Overview One of the high availability methods provided by glassfish, is session replication. With session replication enabled, the server distributes session data across the cluster. If one cluster instances crashes, the session is still available on the other instances. Requirements A recent glassfish installation (versions prior to 2.1.1 had some bugs). A configured cluster (Look …
Oct
26
Glassfish cluster configuration
Overview After I looked around the web, I’ve found a few good howto’s about glassfish cluster configuration, but either they use only single machine clusters or they have some other disadvantages in my eyes. So I’ve decided to write my own article about this. This article will describes how to set up a two machine …