Revision: 1002
          http://stripes.svn.sourceforge.net/stripes/?rev=1002&view=rev
Author:   bengunter
Date:     2008-11-07 19:52:29 +0000 (Fri, 07 Nov 2008)

Log Message:
-----------
Use UrlBindingParameter.toString() in UrlBinding.toString(). This fixes a stack 
trace resulting from a call to StripesFilter.getConfiguration() from 
UrlBindingParameter.getDefaultValue() for $event parameters. The default value 
should not be included when toString()ing $event, and 
UrlBindingParameter.toString() does not do so.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java

Modified: trunk/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java        
2008-11-07 18:37:10 UTC (rev 1001)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/UrlBinding.java        
2008-11-07 19:52:29 UTC (rev 1002)
@@ -120,11 +120,7 @@
                 buf.append(component);
             }
             else if (component instanceof UrlBindingParameter) {
-                UrlBindingParameter parameter = (UrlBindingParameter) 
component;
-                buf.append('{').append(parameter.getName());
-                if (parameter.getDefaultValue() != null)
-                    buf.append('=').append(parameter.getDefaultValue());
-                buf.append('}');
+                buf.append('{').append(component).append('}');
             }
         }
         return buf.toString();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to