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:layout>
 <t:form>
  <t:textfield t:id="name">
  <t:anothercomponent value="otherdata"/>
  <t:userlist source="users"/>
 </t:form>
</t:layout>

---

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
afterwards.

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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to