Thanks Ben. Works like a charm :)

When will the trunk changes that fixed all this make it into a point release?

Chris

On Thu, Dec 18, 2008 at 7:57 PM, Ben Gunter <[email protected]> wrote:
> I hate touch pads. Anyway, as I was saying ...
>
> I'm guessing since you have your parameter value in the form as a hidden
> input that you stuck a
>
> <s:hidden name="sid" />
>
> in there somewhere. Hidden inputs aren't handled like parameters for clean
> URLs. Instead, the s:form tag now accepts s:params. You can do
>
> <s:param name="sid" value="${actionBean.sid}" />
>
> And that will add the sid to the URL so that you'll have a pretty URL even
> in case of a validation error.
>
> -Ben
>
> On Thu, Dec 18, 2008 at 10:51 PM, Ben Gunter <[email protected]> wrote:
>>
>> This actually doesn't have anything to do with validation, just with
>> forms. The parameters weren't there in the form's action attribute so when
>> you submit the form the parameters aren't there on the URL. A validatio
>>
>> On Thu, Dec 18, 2008 at 7:56 PM, Chris Cheshire <[email protected]>
>> wrote:
>>>
>>> My conversion to use stripes clean urls is coming along reasonably
>>> smoothly now thanks to Ben, but I've stumbled across another problem.
>>>
>>> If I submit a form and it fails a validation handler
>>> (@ValidationMethod), when Stripes sends it back to the browser the
>>> extra bits in the URL are removed.
>>>
>>> For instance, I have http://myserver.com/editSubject/12345
>>> (@UrlBinding("/editSubject/{sid}"), and when I submit the form and the
>>> validation fails it comes back as http://myserver.com/editSubject. The
>>> 12345 is set as a hidden form field, and I am using a regular stripes
>>> submit button.
>>>
>>> How do I get the sid (in this case) to stay in the URL after the
>>> binding and validation phase fails?
>>>
>>> Thanks
>>>
>>> Chris

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to