Package org.apache.velocity.tools.generic

Examples of org.apache.velocity.tools.generic.SortTool


    context.put("esc", new MyEscTool());
    context.put("link", new LinkTool());
    context.put("list", new ListTool());
    context.put("number", new NumberTool());
    context.put("render", new RenderTool());
    context.put("sorter", new SortTool());
    context.put("math", new MathTool());
    context.put("alternator", new AlternatorTool());
    context.put("comparisonDate", new ComparisonDateTool());
    context.put("iterator", new IteratorTool());
    context.put("parser", new ValueParser());
View Full Code Here


          }
        }

        try
        {
          SortTool sortTool = new SortTool();
          users = (List<User>) sortTool.sort(users.toArray(),"firstName");

        }
        catch(Exception ex)
        {
          Logger.info(UserAjax.class,"couldn't sort the users by first name" + ex.getMessage());
        }

        try
        {
          SortTool sortTool = new SortTool();
          roles = (List<Role>) sortTool.sort(roles.toArray(),"name");

        }
        catch(Exception ex)
        {
          Logger.info(UserAjax.class,"couldn't sort the roles by name" + ex.getMessage());
View Full Code Here

          }
        }

        try
        {
          SortTool sortTool = new SortTool();


        }
        catch(Exception ex)
        {
          Logger.info(UserAjax.class,"couldn't sort the users by first name" + ex.getMessage());
        }

        try
        {
          SortTool sortTool = new SortTool();
          roles = (List<Role>) sortTool.sort(roles.toArray(),"name");

        }
        catch(Exception ex)
        {
          Logger.info(UserAjax.class,"couldn't sort the roles by name" + ex.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.velocity.tools.generic.SortTool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.