O'Reilly logo

Java EE Development with Eclipse by Deepak Vohra

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

Adding Trinidad components

In this section we shall add Trinidad components to the index.jsp, create.jsp, find.jsp, and catalogentry.jsp pages. We shall use the panel form layout component tr:panelFormLayout, which is suitable for input form components because it aligns the labels and fields vertically. First, create index.jsp, which has the command links for create.jsp and find.jsp. In index.jsp the root element is an f:view element, which provides a container component for all JSF and Trinidad components. Add the taglib declaration for the Trinidad tag library, as follows:

<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>

First, add the tr:document tag, which represents the CoreDocument class and adds root elements for an HTML ...

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