They way I've handed this us to have the values of the items in the
for loop be something like "ognl:myValues[rowid]" where rowid is the
key for that list. You'll then have a getMyValue(String rowid) and
setMyValue(String rowid, String value). Basically treating the fields
inside the @For as an array.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Mar 27, 2009, at 2:07 PM, Ivano Luberti wrote:
Since I have received no answer, I tried to dig more into it.
So I have downloaded the Tapestry-Workbench source code and looked at
the Chart example that is similar to what I want to do (one form and
data stored in an ArrayList).
I have discovered that it works but only because the list is stored
into
the session!
I don't want to do this, because I don't want to clean the data every
time the form is abandoned and then the user goes back to it.
Is there a way to have data displayed in a For submitted to page java
class in the request without storing them into the session ?
Ivano Luberti ha scritto:
Hi Howard, here are the three files and the class that is showed
inside
the for.
Let me know if you need more
Howard Lewis Ship ha scritto:
It would be helpful to see more of you page class and template.
On Wed, Mar 25, 2009 at 9:57 AM, Ivano Luberti
<lube...@archicoop.it> wrote:
Hello, I'm very confused by docs about this and I'm not able to
make
work submission of data displayed inside a for.
I have defined a list of objects of a class that implements the
Serializable interface and dispalyed it on my html page.
I first populate the list displayed by the for with an element
and hence
in my html source I can read the following:
<input type="hidden" name="listaDettagli_0"
value
=
"VZH4sIAAAAAAAAAGVNMU7DQBDcREJEQkpBSv7gVVpCFaV0EyIesDlvnA3x7fluHSEXFHyGhp6H8A7
+gLEcIZFtZmd2Z+bjG65SBBTLKLq9ONWQlZyMvBSSsi2TT9mKzag8ij6K41NjtN5/
fb69b+7HMMnhpuDkorSing1u8wOdCI/kS9xYFF8u+pchYbU0eMjFsK
+ruGD8q0PTWDeMWqFuD+wM/zdzF3a3e76Qz1jDK4xyGEsxbNdSBY2mA52FS
+9wmobIbatPXoyinA2TuiFvndTzl9CNwWj+iz9LwBDJPAEAAA==" />
Moreover I can see the element correctly displayed.
Which means, I guess that the list has been handled correctly.
When I try to read the value submitted by the form inside the
listener,
all the input field values outside the for are filled , but when
I look
for value submitted in the input fileds inside the for I cannot
find them.
Too keep it simpler I have also tried using a List of string but
with
the same result.
What am I missing ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
--
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org