incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmatth...@apache.org
Subject svn commit: r1364577 - /incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableView.java
Date Mon, 23 Jul 2012 10:59:08 GMT
Author: rmatthews
Date: Mon Jul 23 10:59:08 2012
New Revision: 1364577

URL: http://svn.apache.org/viewvc?rev=1364577&view=rev
Log:
ISIS-162 - Making the delete option available for default table views.

Modified:
    incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableView.java

Modified: incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableView.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableView.java?rev=1364577&r1=1364576&r2=1364577&view=diff
==============================================================================
--- incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableView.java
(original)
+++ incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableView.java
Mon Jul 23 10:59:08 2012
@@ -200,7 +200,7 @@ public class TableView extends AbstractT
             if (showDeleteOption && parent != null) {
                 String view = request.getViewPath();
                 view = context.fullFilePath(view == null ? context.getResourceFile() : view);
-                RemoveElement.write(request, context.getMappedObject(parent), fieldName,
element, null, view, view, "delete", "element-delete");
+                RemoveElement.write(request, context.getMappedObject(parent), fieldName,
element, null, view, view, "delete", "action in-line element-delete confirm");
             }
 
             request.appendHtml("</td>");
@@ -312,7 +312,7 @@ public class TableView extends AbstractT
         }
         
         final RequestContext context = request.getContext();
-        final TableContentWriter rowBuilder = rowBuilder(request, context, null, context.mapObject(object,
Scope.REQUEST), field.getId(), fields, 
+        final TableContentWriter rowBuilder = rowBuilder(request, context, null, context.mapObject(object,
Scope.REQUEST), field.getIdentifier().getMemberName(), fields, 
                 showIconByDefault);
         write(request, collection, summary, rowBuilder, null, null, null);
     }



Mime
View raw message