GET Parameter in JSF
You can read GET parameters with the RequestParameterMap as follows: final String id = FacesContext.getCurrentInstance() .getExternalContext().getRequestParameterMap().get(“id”);
GET Parameter in JSF Read More »
You can read GET parameters with the RequestParameterMap as follows: final String id = FacesContext.getCurrentInstance() .getExternalContext().getRequestParameterMap().get(“id”);
GET Parameter in JSF Read More »
$ brctl addbr br0 add bridge failed: Package not installed $ grep BRIDGE /usr/src/linux-3.2.2/.config # CONFIG_BRIDGE is not set really not the best error message for a missing kernel feature.
Kernel 3.2.2 and Bridging Read More »
Download Tomcat. Create /etc/init.d/tomcat as listed below and change properties in it as needed. Execute the following commands as root. cd /opt tar -xf apache-tomcat-7.0.25.tar.gz ln -s apache-tomcat-7.0.25 tomcat groupadd tomcat useradd -g tomcat -d /opt/tomcat tomcat usermod -G www-data tomcat chown tomcat:tomcat /opt/apache-tomcat-7.0.25 -R chmod +x /etc/init.d/tomcat update-rc.d tomcat defaults /etc/init.d/tomcat #!/bin/sh CATALINA_HOME=/opt/tomcat export
Install Tomcat under Debian Read More »
OpenJDK sometimes makes problems, so I still prefer the Oracle version. Here is how to install it manually under debian/ubuntu: Download binary installer from Oracle’s download page and save it to /opt. Execute the following commands cd /opt chmod +x jdk-6u25-linux-x64.bin ./jdk-6u25-linux-x64.bin update-alternatives –install /usr/bin/java java /opt/jdk1.6.0_25/bin/java 2000
Oracle JDK under Debian Read More »
if you use JAAS to login to your application, you are able to get the active user(name) the following way: final Principal principal = FacesContext.getCurrentInstance() .getExternalContext().getUserPrincipal(); if (null == principal) { return null; } return principal.getName();
JBoss AS7, JSF, Get Logged in User Read More »
MODULE ip_tables not found as the last posts show I’m compiling and configuring my own kernel. As I want iptables to work, I opened my .config and enabled all flags under “IP: Netfilter Configuration” by changing the comment from “#… is not set” to “…=y”. Then I answered all questions as needed during the next
linux 3.2.2 and iptables Read More »
* Unable to find the QT4 tool qmake. Trying to use QT3 * * Unable to find any QT installation. Please make sure that * the QT4 or QT3 development package is correctly installed and * either qmake can be found or install pkg-config or set * the QTDIR environment variable to the correct location.
* Unable to find the GTK+ installation. Please make sure that * the GTK+ 2.0 development package is correctly installed… * You need gtk+-2.0, glib-2.0 and libglade-2.0. for configuring your kernel with make gconfig, you need to install the following packages: libgtk.2.0-0 libgtk2.0-dev libglade2-0 libglade2-dev glib2.0-0 libglib2.0-de
*** Unable to find the ncurses libraries or the *** required header files. *** ‘make menuconfig’ requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. if you want to make changes to your kernel configuration under ubuntu 11.10 you have to install libncurses5-dev to be able to run make menuconfig.
Since kernel version 3.2 my network driver doesn’t compile anymore. I downloaded the latest version from Realtek and made the following change in r8168_n.c: addr = ((void *) page_address(frag->page)) + frag->page_offset; to addr = ((void *) page_address(&frag->page)) + frag->page_offset; After this change the driver compiled and worked again.
Realtek 8168 with kernel 3.2.* Read More »