Stephan Windmüller wrote:
> What I tried was a submit button which receives the current job in its
> context. The form was submitted, changes saved and with the context I
> would be able to add another user. But the context is (as stated in my
> first post) every time the same.
Update for this: I
WHat I do is to have the button call a JavaScript function that stores
the context/value in a hidden field (a normal TextField with display:
none, since Tapestry's hidden field type is broken. Then call
form.submit(). That works well.
Norman Franke
Answering Service for Directors, Inc.
www.
Same problem here: I have a delete button which removes an object from a
list. Changes to other fields in the form get currently lost, as i have
to use a event link. Using a submit button inside the loop with custom
context and event would be great - but it does not work as always the
last item
Thiago H. de Paula Figueiredo schrieb:
>> What I need is a button which does some change to an object. I do not
>> want the user to lose data he entered for other objects, so I decided to
>> use a form submit.
> If you don't need to submit a form, just to fire an event in the server,
> an EventL
Em Tue, 15 Sep 2009 12:12:41 -0300, Stephan Windmüller
escreveu:
What I need is a button which does some change to an object. I do not
want the user to lose data he entered for other objects, so I decided to
use a form submit.
If you don't need to submit a form, just to fire an event in the
Thiago H. de Paula Figueiredo wrote:
>>
>>
>>
> I'm not sure, but maybe we can't use the Submit component this way. Take a
> look at the generated HTML (specially the submit buttons and hidden
> fields) and post it here please.
For a loop over two objects, the submit buttons look like thi
Em Tue, 15 Sep 2009 10:45:33 -0300, Stephan Windmüller
escreveu:
I'm not sure, but maybe we can't use the Submit component this way. Take a
look at the generated HTML (specially the submit buttons and hidden
fields) and post it here please.
I've been using ActionLinks or EventLinks
Thiago H. de Paula Figueiredo wrote:
>> I am creating multiple submit buttons in a loop component, each of them
>> has its own context. But when I submit the form, I always get the
>> context of the last submit button.
> Please post your code so we can try to help you.
Here is a simplified versio
Em Tue, 15 Sep 2009 04:33:48 -0300, Stephan Windmüller
escreveu:
Hello!
Hi!
I am creating multiple submit buttons in a loop component, each of them
has its own context. But when I submit the form, I always get the
context of the last submit button.
Please post your code so we can try to