Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread VANKEISBELCK Remi
Hi Grzegorz, Sorry for the delay. Do you mean the braces etc end up in the action attribute of the form tag ? Does this happen randomly in a running application ? Cheers Rémi 2014-03-09 21:23 GMT+01:00 Grzegorz Krugły g...@karko.net: I hate bumping, but I'm really stuck with this one.

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread Grzegorz Krugły
Yes, braces etc end up in the action attribute of the form tag. It happens randomly, but it seems the most often it happens the first time I visit the page -- subsequent accesses tend to work ok. W dniu 10.03.2014 11:01, VANKEISBELCK Remi pisze: Hi Grzegorz, Sorry for the delay. Do you mean

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread Grzegorz Krugły
No, there's nothing fancy in the code, the request goes to ActionBean and it returns ForwardResolution to JSP. W dniu 10.03.2014 11:43, Marcus Kraßmann pisze: Maybe it happens when you call the JSP directly while it works when being called by an action bean? Am 10.03.2014 11:36 schrieb

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread VANKEISBELCK Remi
I've had a peek at the sources. When using FormTag, the action attribute it computed by (in short) replacing the placeholders in the @UrlBinding. The binding prototype is used and the base url is built, including clean-URL params if any : net.sourceforge.stripes.util.UrlBuilder#getBaseURL I

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread Grzegorz Krugły
The call stack is FormTag.doEndTag: 241 FormTag.buildAction: 511 UrlBuilder.toString: 304 UrlBuilder.build: 406 UrlBuilder.getBaseUrl: 454 No idea where to go from here. W dniu 10.03.2014 14:16, Grzegorz Krugły pisze: I've tried debugging UrlBuilder now and have the direct cause of my

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread Nikolaos Giannopoulos
Grzegorz, Years ago when I was actively developing with Stripes I saw a very similar behavior with respect to initialization of bindings where the issue only happened on initial server request. I think it has to do with lazy initialization of URL bindings... that for some reason do not get

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread VANKEISBELCK Remi
Interesting, this means that defaultValue is set so index in net/sourceforge/stripes/controller/UrlBindingParameter.java There are 3 affectations of this variable : - 2 in net.sourceforge.stripes.controller.UrlBindingParameter#getDefaultValue - 1 in the constructor

Re: [Stripes-users] URL bindings not always resolved

2014-03-10 Thread VANKEISBELCK Remi
BTW what version of Stripes are you using ? Where did you grab the sources ? I noticed differences in line numbers between yours and mine... Cheers Rémi 2014-03-10 17:48 GMT+01:00 VANKEISBELCK Remi r...@rvkb.com: Interesting, this means that defaultValue is set so index in