abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r634486 - /incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
Date Fri, 07 Mar 2008 00:53:20 GMT
Author: dandiep
Date: Thu Mar  6 16:53:17 2008
New Revision: 634486

URL: http://svn.apache.org/viewvc?rev=634486&view=rev
Log:
Make the content be just the employee name.

Modified:
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java?rev=634486&r1=634485&r2=634486&view=diff
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
Thu Mar  6 16:53:17 2008
@@ -91,11 +91,8 @@
   }
 
   public Object getContent(Employee entry, RequestContext request) {
-    Content content = factory.newContent();
-    Element employeeEl = factory.newElement(new QName("div"));
-    employeeEl.setAttributeValue(new QName("name"), entry.getName());
-   
-    content.setValueElement(employeeEl);
+    Content content = factory.newContent(Content.Type.TEXT);
+    content.setText(entry.getName());
     return content;
   }
   // END SNIPPET: entryMetadata



Mime
View raw message