You can implement PageValidateListener directly in your page class.
Tapestry makes runtime code generation through some library, so it
extends your class.

I'm not sure, but you can inject only services, ASO etc defined in
your hivemodule.xml or submodules...

2005/9/16, Sylvain COUTANT <[EMAIL PROTECTED]>:
> Hi all,
> 
> I'm wondering how to make this work :
> 
> public abstract class MyPageValidateListener implements PageValidateListener {
> 
>         @InjectState("user-data")
>         public abstract UserSession getUserSession();
> 
>         public void pageValidate(PageEvent event) {
>                 ...
>                 return;
>         }
> 
> }
> 
> public abstract class MyBasePage extends BasePage {
> 
>         public BasePage() {
>                 super();
>                 addPageValidateListener(new MyPageValidateListener());
>         }
> 
> }
> 
> 
> There is obviously something I didn't understood : if MyPageValidateListener 
> is abstract, it can't be instantiated and I can't use @InjectState without 
> making it abstract ...
> 
> Could someone explain me how I could do this without injecting through xml 
> files ?
> 
> Thanks in advance for any tip ;-)
> 
> 
> --
> Sylvain COUTANT
> 
> ADVISEO
> http://www.adviseo.fr/
> http://www.open-sp.fr/
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to