Introduction to webwork tag Library

Source: Internet
Author: User
Tags control label
 

 

The webwork tag library is divided into seven categories:
General tags: The most common and basic tags;
Componentized labels: Encourage componentization of views;
Process control Tag: Manage the control process on the JSP page;
Iteration Tag: iterates elements and operates iterable objects;
Ui Tag: generate HTML form fields and controls;
VUI labels: After webwork2.0, VUI labels have been removed from webwork because they have never been used in four years;
Support label for internationalization: provides support for internationalization views.
Common labels

<WW: property/>

Attribute Value of the result. If the value is not specified, the top value of the stack is returned.

<WW: Push/>

Push a value to the value stack.

<WW: Param/>

Set the parameters of the parent label. this parameter is only used inside other labels and used to set the values of some attributes of the parent label.

<WW: Set/>

Set the value of an object in the value stack to a scope (page, stack, application, session. if the value is not specified, the stack top value is used. if the scope is not specified, use the default scope of "webwork.

<WW: URL/>

Construct an encoded URL.

Componentized tag

<WW: Action/>

Execute an activity in the context of the tag library. The subject of the tag is used to display the result of the activity execution.

<WW: bean/>

Create a JavaBean, initialize its attributes, and put them into actioncontext for later use.

<WW: Include/>

Contains another page or activity.

Process control label
This if-else tag set is like the IF-else script.

<WW: If/>

Conditional execution path. In other words, if the Boolean condition is true, the subject content of the tag is calculated.

<WW: else/>

The reverse execution path of the IF tag. In other words, if the Boolean condition of the previous if tag is false, the subject content of the tag is calculated.

<WW: elseif/>

The reverse execution path of the IF tag. In other words, if the Boolean condition of the previous if tag is false and the Boolean condition of this tag is true, the subject content of the tag is calculated.

Iteration tag

<WW: iterator/>

Iteration on a collection.

<WW: Generator/>

Iterator ).

<WW: append/>

Add several iterators.

<WW: subset/>

Obtains a subset of an iterator.

<WW: Merge/>

Merge several iterators.

<WW: Sort/>

Sorts the iterator.

Ui tag
The UI tag encapsulates HTML controls for close integration with the core framework. these labels are designed to minimize the logical part of the code and use a template system to represent the final HTML Rendering. the UI tag tries to override the most common scenario (scenario) and provides a component tag to create custom components. ui labels also support embedded display

<WW: Form/>

All containers with other UI labels

<WW: textfield/>

Create a text box

<WW: Password/>

Create a password input box

<WW: textarea/>

Create a text input field

<WW: checkbox/>

Create a check box

<WW: Select/>

Create a drop-down list

<WW: Radio/>

Create a group of radio buttons

<WW: checkboxlist/>

Create a set of check boxes

<WW: Label/>

Create a tag

<WW: hidden/>

Create a hidden domain

<WW: doubleselect/>

Create a group of associated drop-down lists

<WW: ComboBox/>

Create a drop-down box (you can select the option in the drop-down box or enter your own content)

<WW: component/>

Create a custom control (using the velocity template information)

International tags

<WW: text/>

Output an internationalized string.

<WW: i18n/>

Place the international resource package (resource bundle) into the value stack and use it for the text tag.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.