ICEFaces installation for NetBeans IDE

ICEFaces is a Java Server Faces component library. To integrate ICEFaces into the NetBeans IDE and the Visual Web Pack the following steps are necessary. Download of ICEFaces components The following downloads from the ICEFaces website are needed: ICEfaces-<version>-libs-NetBeans.zip ICEfaces-NetBeans-IDE-<version>.zip ICEfaces-<version>-complib-NetBeans.zip Installation of ICEFaces runtime library Unpack the file ICEfaces-<version>-libs-NetBeans.zip and import the included com-icesoft-ide-netbeans-libs-module.nbm module with the NetBeans Update Manager. Installation of ICEFaces IDE integration Unpack the file ICEfaces-NetBeans-IDE-<version>.zip and install the module com-icesoft-faces-vwp-ide.nbm. This module must also be installed with the NetBeans Update Manager. Installation of ICEFaces component library Unpack file icefaces-webui.complib from ICEfaces-<version>-complib-NetBeans.zip and copy it to[…]

Read more

Using Jasper Reports with Visual Web Pack

This tutorial illustrates the use of Jasper Reports with a Visual Web Pack application. Register Jasper Reports library Use the NetBeans Library Manager to create a library for the Jasper Reports class libraries. You need at least the following files from the distribution: dist/jasperreports-<version>.jar lib/commons-beanutils-1.7.jar lib/commons-collections-2.1.jar lib/commons-digester-1.7.jar lib/commons-logging-1.0.2.jar lib/itext-1.3.1.jar Register Jasper Reports image servlet The image servlet is needed if you want html rendered reports (also without any graphical elements, because report placeholders uses images from this servlet). So you must register it in the web.xml configuration file. You can use the NetBeans web.xml editor to do so. Servlet name[…]

Read more

NetBeans CVS access with SSH

If your ssh key is secured with a password you need to run a ssh agent (e.g. PuTTY agent) on your client machine, because NetBeans has no support for ssh passwords. Enter your CVS_ROOT in the following syntax: :ext:<user>@<host>:<path-to-cvsroot> You must use external shell command to execute ssh, e.g. for Putty under windows environment: C:\Program files\Putty\plink.exe -ssh -i <path-to-ssh-keyfile>

Read more

Postfix setup for SSL and TLS

To use SSL and TLS with the postfix mailer daemon you must change settings in the /etc/postfix/main.cf configuration file: # tls config smtp_use_tls = yes smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_CAfile = /etc/postfix/ssl/demoCA/cacert.pem smtpd_tls_cert_file = /etc/postfix/ssl/server-crt.pem smtpd_tls_key_file = /etc/postfix/ssl/server-key.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom tls_random_prng_update_period = 3600s You also need a SSL certificate for your mail server. Create it with the following commands: mkdir /etc/postfix/ssl cd /etc/postfix/ssl/ # Create new local certification authority (if not already present) /usr/share/ssl/misc/CA.pl -newca # Create RSA certificate openssl req -new -nodes -keyout server-key.pem -out server-req.pem -days[…]

Read more

Center VWP components

There isn’t any standard function in the Visual Web Pack to center components on the page. You can only use absolute or flow layout. If you want center your components horizontally or vertically, you need CSS. This is done with the style setting of your component. position: absolute; left: 50%; top: 50%; This setting would center the left upper corner of your component on the page, but not the whole component. To center the whole component you must adjust the margins. The margins can be negative, so substract the half of the vertical and horizontal size from the corresponding margin.[…]

Read more