Products
About Guided Tour Online Demo Trial Version Requirements
Resources
Documents Configuration examples TagLib Reference Useful Links
Customer Support
Updates Forums Contact Services
Sales
Licensing Sales FAQ Buy Online
 
 
 
buy online   |   about us   |   german version  

» Configuration examples ListControl

Examples: 1 | 2 | 3 | 4

Configuration example 4

Configuration:

  • Refresh-button.
  • Authorization-dependent display of the Add-button. In the example, the user does not have any rights. Therefore, the button is not enabled.
  • Display of maximum 10 lines per page.
  • Use of an ImageMap in the first column.
  • Image column with assigned ImageMap.
  • Two text columns.
  • Drilldown column (for going to the detail view of the data record).
  • Authorization-dependent display of the edit column (for editing the data record) In the example, the user does not have any rights. Therefore, the functionality is not offered.
  • Authorization-dependent display of the Delete column (for deleting the data record). In the example, the user does not have any rights. Therefore, the functionality is not offered.

<util:imagemap
        name="im_user">

        <util:imagemapping
                rule="user"
                src="images/user.gif"/>

        <util:imagemapping
                rule="admin"
                src="images/administrator.gif"/>

        <util:imagemapping
                rule="manager"
                src="images/manager.gif"/>

        <util:imagemapping
                rule="controller"
                src="images/controller.gif"/>

</util:imagemap>

<ctrl:list
        id="userlist1"
        action="sample103/userRoleBrowse"
        name="users"
        title="User Roles"
        width="500"
        rows="10"
        refreshButton="true"
        createButton="#admin">

        <ctrl:columnimage
                title=""
                property="roleImg"
                width="25"
                imagemap="im_user"
                align="center"/>

        <ctrl:columntext
                title="Role"
                property="role.value"
                width="150"/>

        <ctrl:columntext
                title="Name"
                property="name"
                width="350"/>

        <ctrl:columndrilldown
                title="Id"
                property="userId"
                width="65"/>

        <ctrl:columnedit
                title="Edit"
                permission="#adim"/>

        <ctrl:columndelete
                title="Delete"
                permission="#adim, #manager"/>
</ctrl:list>

Impressum | This product includes software developed by the Java Apache Project
Configuration examples ListControl TreeControl TreeListControl TabSetControl Forms