Check out EventLink and/or ComponentResources.createEventLink. Like:

public class SomeComponent {
@Inject
private ComponentResources resources;

public String getEventLink() {
return resources .createEventLink ("MyCustomEventName",contextParameter1,contextParameter2,...);
}

void onMyCustomEventName() {
        //do something interesting.
}

Robert

On Feb 25, 2009, at 2/255:07 AM , Davor Miku wrote:

Clicking on actionlink component, some Tapestry method is invoked (method
for action event).

Question is how can some arbitraryJavaScriptFunction() invoke corresponding
Tapestry method?

I'm not sure I'm clear enough.




On Wed, Feb 25, 2009 at 4:17 AM, Alex Kotchnev <akoch...@gmail.com> wrote:

Davor,
 what do you mean by "when some <div> is dropped" ? Can you please
describe in slightly more detail by "custom events" ?

Cheers,

Alex Kotchnev

On Mon, Feb 23, 2009 at 1:56 PM, Davor Miku <davorm...@gmail.com> wrote:

Hi!

I've found some tutorials for AJAX in Tapestry, but there all about
action
event, fired form actionlink component.

My questions is how to define custom events, i.e.. when some <div> is
dropped.

Thanks!




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

Reply via email to