The Search funktion in the GroupModule always returns only exact matches of the 
searchstring, ignoring the selected search method(Excat, Beginns with, Contains).

After looking in the code if found out that the search method sets the  wildcards only 
on default value. I think it should be inverse, add the wildcards when a string ist 
given.

Here the patch:
Index: GroupModule.java
  | ===================================================================
  | RCS file: 
/cvsroot/jboss/nukes/nukes/src/main/org/jboss/nukes/core/modules/group/GroupModule.java,v
  | retrieving revision 1.10
  | diff -u -r1.10 GroupModule.java
  | --- GroupModule.java        3 Mar 2004 12:04:43 -0000       1.10
  | +++ GroupModule.java        18 Jun 2004 10:23:32 -0000
  | @@ -594,7 +594,7 @@
  |           Integer id = page.getParameterAsInteger("id");
  |           String search = page.getParameter("search", "%");
  |           int type = page.getParameterAsInt("type", 0);
  | -         if ("%".equals(search))
  | +         if (!("%".equals(search)))
  |           {
  |              switch (type)
  |              {
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839201#3839201

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839201


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to