Well, that's a good question. I just kind of poked around the API docs and source to and figured out how to do it. I don't think the enhancement framework is documented, since it's not really something the general user will mess with. I don't really know the internals of Tapestry very well either. In this case, I found out just enough to be dangerous. :-) I basically mimicked what I saw going on in one of the other EnhancementWorkers.
-----Original Message----- From: Mark [mailto:[EMAIL PROTECTED] Sent: Sunday, April 23, 2006 9:55 PM To: Tapestry users Subject: Re: What to do if annotations are not available? I'm trying to understand how exactly your auto-wiring works (I know it'll just work, but I'd like to understand how Tapestry works under the hood), and I have a vague idea, but I'm missing some kind of documentation. Do you have any references or links to how EnhancementWorkers work in general (or other T4 internals for that matter)? Thanks, MARK James Carman wrote: > Well, all you have to do is declare a getter which returns an > ApplicationStateManager in any page that you want. Then, if you use my > auto-wiring stuff, it will be there for you automagically. > > > > -----Original Message----- > From: Mark [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 23, 2006 8:19 PM > To: Tapestry users > Subject: Re: What to do if annotations are not available? > > Well, at least I only have to inject one thing and won't have to modify > the .page file if I need modify or add services/beans. > I don't know the internals of Tapestry yet, but I assume there has to be > some page factory. Couldn't I extend that factory in a way that it does > the injection of the ASM based on the global Hivemind (or even better - > Spring :-) ) configuration? Then I really would not have to do anything > in .page files any more, would I? > That would only work if the ASM does not change over the lifetime of the > page of course... > > >> You're not going to like this, but you inject it! :-) >> >> >> -----Original Message----- >> From: Mark [mailto:[EMAIL PROTECTED] >> Sent: Saturday, April 22, 2006 11:42 AM >> To: Tapestry users >> Subject: Re: What to do if annotations are not available? >> >> Hi James, >> >> would you have a link to an example for this? >> How do I get to the ASM? >> >> Thanks, >> >> MARK >> >> James Carman wrote: >> >> >>> You can look them up using the ApplicationStateManager. >>> >>> >>> >> --------------------------------------------------------------------- >> 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] > > > > --------------------------------------------------------------------- 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]