Author: jharting
Date: 2009-12-09 05:01:36 -0500 (Wed, 09 Dec 2009)
New Revision: 11802
Modified:
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/ResolvedTaskResourceQuery.java
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/UserResourceHome.java
branches/community/Seam_2_2/examples/tasks/view/template.xhtml
Log:
minor
Modified:
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/ResolvedTaskResourceQuery.java
===================================================================
---
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/ResolvedTaskResourceQuery.java 2009-12-09
09:40:45 UTC (rev 11801)
+++
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/ResolvedTaskResourceQuery.java 2009-12-09
10:01:36 UTC (rev 11802)
@@ -35,7 +35,6 @@
import org.jboss.resteasy.plugins.providers.atom.Feed;
import org.jboss.resteasy.plugins.providers.atom.Person;
import org.jboss.seam.annotations.Create;
-import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.example.tasks.ResourceNotFoundException;
import org.jboss.seam.example.tasks.entity.Task;
@@ -69,7 +68,7 @@
{
super.create();
List<String> restrictions = new ArrayList<String>();
- restrictions.add("category.owner.username = #{username} AND resolved =
true");
+ restrictions.add("category.owner.username =
#{resolvedTaskResourceQuery.username} AND resolved = true");
getEntityQuery().setRestrictionExpressionStrings(restrictions);
getEntityQuery().setOrderColumn("updated");
getEntityQuery().setOrderDirection("desc");
@@ -103,7 +102,6 @@
return feed;
}
- @Factory("username")
public String getUsername()
{
return username;
Modified:
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/UserResourceHome.java
===================================================================
---
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/UserResourceHome.java 2009-12-09
09:40:45 UTC (rev 11801)
+++
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/resource/UserResourceHome.java 2009-12-09
10:01:36 UTC (rev 11802)
@@ -49,7 +49,7 @@
setMediaTypes(new String[] { "application/xml",
"application/json", "application/fastinfoset" });
}
- @In()
+ @In
private EntityHome<User> userHome;
@Override
Modified: branches/community/Seam_2_2/examples/tasks/view/template.xhtml
===================================================================
--- branches/community/Seam_2_2/examples/tasks/view/template.xhtml 2009-12-09 09:40:45 UTC
(rev 11801)
+++ branches/community/Seam_2_2/examples/tasks/view/template.xhtml 2009-12-09 10:01:36 UTC
(rev 11802)
@@ -35,7 +35,7 @@
</div>
<div id="footer">
<hr/>
- <div>Powered by Seam 2.1, RESTEasy, Hibernate, Facelets and jQuery.
Find more at <span><a
href="http://seamframework.org">seamframework.org</a></span></div>
+ <div>Powered by Seam 2.2, RESTEasy, Hibernate, Facelets and jQuery.
Find more at <span><a
href="http://seamframework.org">seamframework.org</a></span></div>
</div>
</div>
</body>