menuItem
Menu item. Menu items will detect if the current url is the same they point to, and set their CSS accordingly. Forbidden URLs will also get a "unauthorized" CSS class automatically added.
| Tag Information | |
|---|---|
| Tag Class | org.loom.tags.menu.MenuItemTag | 
| Body Content | scriptless | 
| Dynamic Attributes | true | 
| Example | See menu  | 
                                    
Attributes
| Name | Description | Flags | 
|---|---|---|
| action | The action this link points to. Either this or href must be specified. | 
                                             rtexprvalue 
                                         | 
                                    
| aliases | A list of events that will mark this menu item as "selected", even if the target event is different | 
                                             rtexprvalue 
                                         | 
                                    
| class | HTML attribute | 
                                             rtexprvalue 
                                         | 
                                    
| event | The event this link points to. If action is specified but event is not, the default event will be assumed. If the action does not define a default event, an exception will be thrown. Either action/event or href must be set. | 
                                             rtexprvalue 
                                         | 
                                    
| hash | The hash (the fragment after '#') of the url | 
                                             rtexprvalue 
                                         | 
                                    
| href | The target url. Either this or the action / event pair must be set. | 
                                             rtexprvalue 
                                         | 
                                    
| i18n | Set to true to translate the item text, default true
                                             Deprecated. use translateLabel instead  | 
                                        
                                             rtexprvaluedeprecated 
                                         | 
                                    
| id | HTML attribute | 
                                             rtexprvalue 
                                         | 
                                    
| if | Set to false to skip tag execution. | 
                                             rtexprvalue 
                                         | 
                                    
| label | Sets the text to be shown in this menu item | 
                                             rtexprvalue 
                                         | 
                                    
| mapping | The mapping as action.event. This method is equivalent to 
                                            setting action and event separately.
                                         | 
                                        
                                             rtexprvalue 
                                         | 
                                    
| target | HTML attribute | 
                                             rtexprvalue 
                                         | 
                                    
| translateLabel | Set to true to translate the item text, default true | 
                                             rtexprvalue 
                                         | 
                                    
- button
 - cache
 - column
 - css
 - error
 - errors
 - exception
 - footer
 - form
 - formatDate
 - formatDuration
 - formatFileSize
 - img
 - inputCheckbox
 - inputFile
 - inputHidden
 - inputImage
 - inputPassword
 - inputRadio
 - inputSelect
 - inputText
 - inputTextArea
 - link
 - localeMenu
 - menu
 - menuItem
 - messages
 - option
 - out
 - outProperty
 - pagedList
 - pagedTable
 - param
 - redirect
 - script
 - tab
 - tabContainer
 - url
 - functions