Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

T4: use a custom service after a form post ?

Gayard, Leonel

2008-11-03


Author LoginPost Reply

Hello, fellow Tapestry users,

I'm using Tap 4.0 here.

The most common way to find a page after a post is to inject the
page and use a listener method, which usually returns IPage:

@InjectPage("ResultPage")
public abstract ResultPage getResultPage();

public IPage doUpdate() {
  ResultPage page = getResultPage();
  ...
  return page;
}

And the corresponding Form component in the template uses that
listener method:

<form jwcid="@(protected)">
...
</form>

Now, is there any way that I can have a form use another service after
a post ? Currently, the Form component seems to always use the Direct
service.

I'd like to choose the service which handles the form post.

Thanks a lot.
Leonel

--
Sent from the Tapestry Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.