tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Windmüller <stephan.windmuel...@tu-dortmund.de>
Subject Re: Handling form events inside components
Date Fri, 04 Mar 2011 14:57:05 GMT
On 04.03.2011 13:57, Thiago H. de Paula Figueiredo wrote:

>> But the component itself does not contain a form. Is it possible to call
>> methods during submission of this component without triggering it using
>> the outside page? For example, onSuccess is not called in the component
>> because it does not contain the form.
> Events bubble up (from the origin to its parent and so on until it reaches  
> the containing page) and just up.
> Could you post your component tree? It's a little bit hard to figure it  
> out from your description . . .

Of course. I have a page like this


  <t:textfield t:id="name">
  <t:anothercomponent value="otherdata"/>
  <t:userlist source="users"/>


The userlist is my component. It contains an editable list of users.

Now I want to add buttons for actions like "move up" or "delete". When
the surrounding form is submitted, the userlist component should perform
the selected action. The data should be saved by the surrounding page

But when I change the data in the submit event like
"onSelectedFromMoveUpButton". the sorting is overwritten by the form
submission values.

- Stephan

To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

View raw message