Red Hat Web Application Framework 6.1 Manuale Utente

Pagina di 230
Appendix A.
Bebop Tag Library Reference
A.1. Bebop/JSP
Tag
Description
.
show:all/
/
Simplifies showing all the components of a
page. One such directive is the equivalent of
including a
.
show:component
/
directive for
each component you have defined for your page
.
show:page [pageClass=...]
[pmClass=...] [master=...]
/
...
.
/show:page
/
Sets up a Bebop page for use in the JSP. Page is
specified by class name
(pageClass)
. The
pageClass
option is omitted if the page is set
up in the same JSP (by including a
page-definition JSP) or within a master page.
The resulting XML produced by the JSP is then
displayed by the presentation manager class
specified by
pmClass
(default
BasePresentationManager
).
.
show:component name=... /
/
Shows a component from the Bebop page in the
JSP. There is no need for more specific tags for
each component here. The component is
displayed with default global styling.
.
show:form name=...
/
...
.
/show:form
/
Shows a form from the Bebop page in the JSP. If
the form tag contains a body, it is not displayed
with the default global styling though the
0
form
1
tag and page state (input
type=hidden...) will be preserved. If the tag
body is empty, though, the entire form will be
displayed with default styling.
.
show:list name=...
/
...
.
show:listItem/
/
...
.
/show:list
/
Shows the contents of a model-backed List from
Bebop page in the JSP. The body of the tag will
be displayed for each item of the list, so this tag
is effectively a loop. The list itself is not
displayed with the default global styling though
the individual list items contained within will be
where indicated by
0
show:listItem/
1
. Like
with show:form, if the tag body is empty, the
entire list will be displayed with default styling.
.
show:slave/
/
Includes the contents of the slave page into this
point in the master page.
Table A-1. Tags available for displaying Bebop components