You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by rm...@apache.org on 2011/01/07 19:59:32 UTC

svn commit: r1056456 - /incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableCell.java

Author: rmatthews
Date: Fri Jan  7 18:59:32 2011
New Revision: 1056456

URL: http://svn.apache.org/viewvc?rev=1056456&view=rev
Log:
Class in table cell is now settable

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

Modified: incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableCell.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableCell.java?rev=1056456&r1=1056455&r2=1056456&view=diff
==============================================================================
--- incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableCell.java (original)
+++ incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/display/TableCell.java Fri Jan  7 18:59:32 2011
@@ -36,7 +36,7 @@ public class TableCell extends AbstractE
         String id = request.getOptionalProperty(OBJECT);
         String fieldName = request.getRequiredProperty(FIELD);
         String className = request.getOptionalProperty(CLASS);
-        className = className == null ? "cell" : className;
+        className = className == null ? "" : " class=\"" + className + "\"";
         ObjectAdapter object = request.getContext().getMappedObjectOrVariable(id, ELEMENT);
         ObjectAssociation field = object.getSpecification().getAssociation(fieldName);
         if (field == null) {
@@ -45,7 +45,7 @@ public class TableCell extends AbstractE
         if (field.isVisible(IsisContext.getAuthenticationSession(), object).isVetoed()) {
             throw new ForbiddenException("Field " + fieldName + " in " + object + " is not visible");
         }
-        request.appendHtml("<td " + className + ">");
+        request.appendHtml("<td" + className + ">");
         ObjectAdapter fieldReference = field.get(object);
         String source = fieldReference == null ? "" : request.getContext().mapObject(fieldReference, Scope.REQUEST);
         String name = request.getOptionalProperty(RESULT_NAME, fieldName);