MyPage.page: ... <component id="myComp" type=myLib:MyComponent> <binding name="listener" value="listener:methodInPageClass" /> </component> ...
MyComponent.jwc: ... <parameter name="listener" required="yes" /> <component id="myLink" type="DirectLink"> <binding name="listener" value="listener"> <!--The passed in listener--> </component> ... -Mike On 5/4/06, Carl Pelletier <[EMAIL PROTECTED]> wrote:
Thanks Mike, can you give me a example of that ? What you say is that i just have to pass the listener method in parameter of the component ? I saw something similar on the tapestry web site, but thay talk about listenerInvoker ... Thanks for any help! Carl On Thursday 04 May 2006 10:42, Mike Snare wrote: > I've needed to do the same thing, but usually the listener is > specified by the page as a parameter of the component. If you can do > that, it's transparent. > > -Mike > > On 5/4/06, Carl Pelletier <[EMAIL PROTECTED]> wrote: > > Hi everyone, I looking for help on component. > > > > I have a component in a page. That component old 4 links. On each link, I > > put a DirectLink. I would like to put a Listener on the DirectLink that > > reference a Listener on the page. > > > > So each time someone click on a link in the component, I would like to > > call the listener of the form in the page that include the component. > > > > Is it correct to do that? If so, how should I do it? > > > > Thanks for any help! > > > > Sorry for the bad english, I'm french! > > > > Thanks > > > > Carl Pelletier > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]