12.07.2015 Views

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 11 ■ PAGES AND COMPONENTSThe preceding code doesn’t have any special graphical representation. Following is the HTMLrendering:The title of the bookA textA linkWelcome Paul. You have bought 5 itemsSelectionsSelection components (see Table 11-13), which are used to select one or more values out of a list, arerepresented by check boxes, radio buttons, lists, or combo boxes. They allow the user to choose betweena definite set of available options.Table 11-13. Select TagsTagDescriptionRenders one check box representing a single Boolean value. The checkbox will be rendered as checked or not based on the value of theproperty.Renders a list of check boxes.Renders a multiple-selection component where one or more options canbe selected.Renders an HTML element.Renders a single-selection component where only one available optioncan be selected.Renders a single-selection component where only one available optioncan be selected. It only shows a single available option at a time.Renders a list of radio buttons.The tags listed in this table have a graphical representation but require different tags to holdavailable options: or . These tags are nested inside the graphicalcomponents and create additional available options. To represent a combo box <strong>with</strong> a list of bookgenres, you should nest a set of tags in an tag.329

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!