[Stripes-users] stripes:hidden malfunction ?

Subject:   [Stripes-users] stripes:hidden malfunction ? (find more)
From:   Lukas Vlcek <hidden> (find more)
Date:   Dec 22, 2005 08:48

Hi,

I am experiencing strange behavior of stripes:hidden tag. I am not
sure if this is a bug or correct behavior, anyway here is the problem
description:

I have a form on my JSP with hidden input foo. I populate its value
from javascript (form.foo.value = 'XYZ';) and then I call
form.submit().

Thus request with URL parameter foo=XYZ is created and sent to action.

In action I get value of foo and then I reset foo (setFoo("")) and
store *empty* foo value in request. Then forward to JSP. It is
important to note that it is the same/original JSP.

In JSP I have something like
<c:out value="${foo}"/>
<stripes:hiddne name="foo" value="${foo}">

It is clear that there is still URLparameter foo=XYZ in the request.
However foo value stored in request score is empty (which I proved by
<c:out value="${foo}"/>) but hidden input does not reflects that and
it takes the value from URL parameter. So the hidden input value of
foo is still XYZ which I don't think is correct.

Interestingly, I found that if there is <stripes:hiddne name="foo"
value="dummy"> in JSP and this JSP is called with foo URL parameter
(again it can be foo=XYZ), then this hidden value is overriden. It
results to <input type=hidden name='foo' value='XYZ'> instead of
<input type=hidden name='foo' value='dummy'>.

This seems very confusing to me.

Is there any way how make stripes:hidden tag reflect the real value of
request scoped ${foo} instead of foo=XYZ URL parameter?

Regards,
Lukas


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Stripes-users mailing list
hidden
https://lists.sourceforge.net/lists/listinfo/stripes-users
Entire Thread (Showing 2 of 11)

  • [Stripes-users] stripes:hidden malfunction ? Lukas Vlcek <hidden>
    • Re: [Stripes-users] stripes:hidden malfunction ? Tim Fennell <hidden>

      Hey Lukas, Right now there is no way to do what you want to do with the Stripes hidden field tag. But, I think the simplest solution by far would just be to use a nonstripes hidden field. The Stripes tags follow a strict repopulation ... (9 more messages in this thread)