O'Reilly logo

ICEfaces 1.8 by Rainer Eschen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic pull-down menu

There are a lot of similarities between static and dynamic menus. For example, they share the same data structure, but differ in its definition. Static menus can describe their structures completely in the xhtml file. Dynamic menus have a pretty short entry in the xhtml file, but a pretty long Java code in the corresponding backing bean.

The definition of the ICEfusion dynamic pull-down menu looks like this: (/src/main/webapp/icefusion/taglibs/commons/dynamicMenu.xhtml):

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required