Yep, just create an eventlink with ComponentResources.createEventLink() and make twitter call the URL of that link as callback. Then put your logic into the handler method of the event. Take a look at page 214: there is a similar solution.
On Fri, Mar 26, 2010 at 9:18 AM, Manuel Riegler < s0710455...@students.fh-hagenberg.at> wrote: > Hello Igor, > I know the code on these pages. in the example its a actionLink within a > tapestry page. > but for me it was unclear how the event can be triggered from outside! > is the idea to create an eventlink like > componentResources.createEventLink(arg0, arg1) and to work whit it like > mentioned in "Auslösen von Komponentenereignissen" on page 386? > > Igor Drobiazko schrieb: > > Hello Manuel, >> >> this topic is covered in the book. Please read the pages 68 - 69. The >> example is short but should give you an idea of how to trigger your own >> events pragmatically. >> >> On Fri, Mar 26, 2010 at 12:27 AM, Manuel Riegler < >> manuel.rieg...@students.fh-hagenberg.at> wrote: >> >> >> >>> thx for your immediate response, but its still not clear for me how this >>> works... >>> >>> >>> "You can create the URL for this to pass to your SSO system." >>> >>> where can I pass the URL which leads to the Twitter website for >>> requesting >>> authentication params? >>> would be enormous help if you could provide some short code snipped using >>> the mentioned "ComponentResources" and "ComponentEventCallback". >>> unfortunately I find nothing which could lighten my mind in the tapestry >>> books I use (Tapestry 5, Igor Drobiazko) >>> >>> Am 25.03.2010 19:16, schrieb Howard Lewis Ship: >>> >>> What you are describing is a callback; using ComponentResources you >>> >>> >>>> can generate a component event callback to a particular page, or >>>> component within a page. You can create the URL for this to pass to >>>> your SSO system. This is the same technique used in Ajax support to >>>> allow the client to trigger server-side behaviors. >>>> >>>> On Thu, Mar 25, 2010 at 11:10 AM, Manuel Riegler >>>> <s0710455...@students.fh-hagenberg.at> wrote: >>>> >>>> >>>> >>>> >>>>> hi everybody, >>>>> >>>>> I am developing a webapplication using tapestry 5 and I try to >>>>> implement >>>>> twitter single sign on (SSO with OAuth). >>>>> I already implemented that process in a former project with a .jsp. The >>>>> .jsp >>>>> redirected to twitter, and twitter had the .jsp as callback, soo the >>>>> .jsp >>>>> handled also the received parameters from twitter. so in the .jsp it >>>>> wasn´t >>>>> a problem since the java code gets executed everytime the page (.jsp) >>>>> is >>>>> called. >>>>> >>>>> my question is, how can I provide this behaviour in tapestry? how is it >>>>> possible that a fragment of java code of a tapestry page is executed >>>>> everytime the pages gets called? >>>>> @SetupRender does that, but needs "void" or "boolean" as return type, >>>>> since >>>>> I can not navigate to an other page from there. also onActivate() isnt >>>>> a >>>>> solution, since it is invoked only once at page initialization and NOT >>>>> when >>>>> a callback from external returns. >>>>> >>>>> I hope someone can give me some hints! >>>>> big THANKS in advance, >>>>> best regards, >>>>> Manuel >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >>> >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Best regards, Igor Drobiazko http://tapestry5.de/blog