Home Struts Struts2 Struts2uitags Struts 2 Tags (UI Tags) Examples
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Struts 2 Tags (UI Tags) Examples

Advertisement
In this section, we are going to describe the autocompleter tag. The autocompleter tag always displays a dropdown list with the options that have at least a partial match with entered text in the textbox. If the user clicks on the dropdown button then all

Struts 2 Tags (UI Tags) Examples

     

  1. Form Tags
     
    1. Auto Completer Example
      In this section, we are going to describe the autocompleter tag. The autocompleter tag always displays a dropdown list with the options that have at least a partial match with entered text in the textbox. If the user clicks on the dropdown button then all options shown in the dropdown list.
        
    2. Checkbox Tag (Form Tag) Example
      In this section, we are going to describe the checkbox tag. The checkbox tag is a UI tag that is used to render an HTML input element of type checkbox, populated by the specified property from the ValueStack.
        
    3. Checkboxlist Tag (Form Tag) Example
      In this section, we are going to describe the checkboxlist tag. The checkboxlist tag is a UI tag that creates a series of checkboxes from a list. Setup is like <s:select /> or <s:radio />, but creates checkbox tags.
        
    4. Combobox Tag (Form Tag) Example
      In this section, we are going to describe the combobox tag. The combo box is basically an HTML INPUT of type text and HTML SELECT grouped together to give you a combo box functionality.
       
    5. Datetimepicker Tag (Form Tag) Example
      In this section, we are going to describe the datetimepicker tag. The datetimepicker tag is a UI tag that is used to render a date/time picker in a dropdown container.
       
    6. Doubleselect Tag (Form Tag) Example
      In this section, we are going to describe the doubleselect tag. The doubleselect tag is a UI tag that renders two HTML select elements with second one changing displayed values depending on selected entry of first one.
        
    7. File Tag (Form Tag) Example
      In this section, we are going to describe the file tag. The file tag is a UI tag that renders
      an HTML file input element achieved through browsing.
       
    8. Form Tag Example
      In this section, we are going to describe the form tag. The form tag is a UI tag that renders HTML an input form.
       
    9. Label Tag (Form Tag) Example
      In this section, we are going to describe the label tag. The label tag is a UI tag that is used to render an HTML LABEL that allow to output label:name type of combinations that has the same format treatment as the rest of UI controls.
       
    10. Optiontransferselect Tag (Form Tag) Example
      In this section, we are going to describe the Optiontransferselect tag. The Optiontransferselect tag is a UI tag that create an option transfer select component.
        
    11. Optgroup Tag (Form Tag) Example
      In this section, we are going to describe the optgroup tag. The optgroup tag is a UI tag that creates an optgroup component which needs to resides within a select tag <s:select>.
       
    12. Password Tag (Form Tag) Example
      In this section, we are going to describe the password tag. The password tag is a UI tag that renders an HTML input tag of type password.
       
    13. Radio Tag (Form Tag) Example
      In this section, we are going to describe the radio tag. The radio tag is a UI tag that renders a radio button input field.
       
    14. Reset Tag (Form Tag) Example
      In this section, we are going to describe the reset tag. The reset tag is a UI tag that  is used together with the form tag to provide form resetting.
        
    15. Select Tag (Form Tag) Example
      In this section, we are going to describe the select tag. The select tag is a UI tag that is used to render a HTML input tag of type select.
       
    16. Submit Tag (Form Tag) Example
      In this section, we are going to describe the submit tag. The submit tag is a UI tag that is used to render a submit button. The submit tag is used together with the form tag to provide asynchronous form submissions.
        
    17. Textarea Tag (Form Tag) Example
      In this section, we are going to describe the textarea tag. The textarea tag is a UI tag that is used to render HTML textarea.
       
    18. Textfield Tag (Form Tag) Example
      In this section, we are going to describe the textfield tag. The textfield tag is a UI tag that is used to render an HTML input field of type text.
       
    19. Updownselect Tag (Form Tag) Example
      In this section, we are going to describe the updownselect tag. The updownselect tag is a UI tag that creates a select component with buttons to move up and down the elements in the select component.
       
  2. Non-Form UI Tags
     
    1. Actionerror and Actionmessage Tags (Non-Form UI Tags) Example
      In this section, we are going to describe the actionerror and actionmessage tags. The actionerror tag is a UI tag that renders action errors(in the jsp pages.) if they exists while the actionmessage tag renders action messages if they exists.
       
    2. Fielderror Tag (Non-Form UI Tags) Example
      In this section, we are going to describe the fielderror tags. The fielderror tag is a UI tag that renders field errors if they exists.
        
    3. TabbedPanel (Ajax Tag) Example
      In this section, you will learn about the tabbedPanel tag. This is an Ajax component, where each tab is either a local content or a remote content (refreshed each time when  user selects that tab).

    4. tree and treenode (Ajax Tag) tags Example
      In this section, you will learn about the tree and treenode tags. These both work with the Ajax support.
        
    5. Div (Ajax Tag) tag Example
      In this section, you will learn about the div tag. The div tag is an Ajax component that is used with Ajax refreshes the contents of a particular section without refreshing the entire page.

     

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 18, 2008

Related Tutorials

Ask Questions?    Discuss: Struts 2 Tags (UI Tags) Examples   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com