incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r960463 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/StreamMgr.scala
Date Mon, 05 Jul 2010 07:11:34 GMT
Author: rhirsch
Date: Mon Jul  5 07:11:34 2010
New Revision: 960463

URL: http://svn.apache.org/viewvc?rev=960463&view=rev
Log:
[ESME-238] Sort pool drop alphabetically 
Patch by Imtiaz Ahmed Hajee Esmail 

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/StreamMgr.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/StreamMgr.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/StreamMgr.scala?rev=960463&r1=960462&r2=960463&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/StreamMgr.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/StreamMgr.scala Mon Jul
 5 07:11:34 2010
@@ -130,6 +130,8 @@ object StreamMgr {
   }
 
   def streamFilters(in: NodeSeq): NodeSeq = {
+    import org.apache.esme.model.AccessPool
+    import net.liftweb.common.Empty
     val redisplayStream = updateStream.is
     val resenderInput = "resender_input"
     val poolInput = "pool_input"
@@ -163,6 +165,7 @@ object StreamMgr {
       redisplayStream()
     }
 
+    /*
     bind("main", in,
          "resent" -> ajaxSelect(following,
                                 Empty,
@@ -183,7 +186,31 @@ object StreamMgr {
                                        redisplay()},
                                        "id" -> filterPoolsInput)
     )
-    
+    */
+
+    import org.apache.esme.liftwebext.SHtml._ 
+    bind("main", in,
+         "resent" -> ajaxSortedSelect(following,
+                                true,
+                                Empty,
+                                u => {resender = u.toLong
+                                      redisplay()},
+                                "id" -> resenderInput),
+         "pools" -> ajaxSortedSelect(pools,
+                               true,
+                               Empty,
+                               p => {pool = p.toLong
+                                     redisplay()},
+                               "id" -> poolInput),
+         "filterResent" -> ajaxCheckbox(false,
+                                        r_? => {filterResent = r_?
+                                                 redisplay()},
+                                        "id" -> filterResentInput),
+         "filterPools" -> ajaxCheckbox(false,
+                                       p_? => {filterPools = p_?
+                                       redisplay()},
+                                       "id" -> filterPoolsInput)
+    )
   }
 
 }



Mime
View raw message