Uploaded image for project: 'Click'
  1. Click
  2. CLK-91

Table to support java,util.Map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • Table/Column control

    Description

      Often a domain object is unnecessary and java.util.Map is a generalized way to describe Table columns and rows.

      So a List of java.util.Map objects is a convenient generalized model resulting from a List Dao.getAll() type of methods.

      Currently one needs code like the one below for each Colum object of a Table control to us a List of Map objects.

      col = new Column("NAME");
      col.setHeaderTitle("name");
      table.addColumn(col);
      col.setDecorator(new Decorator() {
      public String render(Object row, Context context)

      { java.util.Map M = (java.util.Map) row; return M.get("NAME").toString(); }

      });

      Request. Provide support for a List of java.util.Map objects as a data source for the Table control.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            zarama J.F. Zarama
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: