On 8/30/07, David Leangen <[EMAIL PROTECTED]> wrote: > > Ok, thanks! > > I've been looking for a way to somehow attach a Session to this filter, > but can't see one. > > Essentially, I am trying to grab certain tags (such as <p>) and add the > attribute lang="en" (or whatever, according to the current locale). > > Tried looking at the Page component, too, but didn't see any nice way of > doing this.
Take a look at how other markup filters are implemented to get some inspiration. I think you should be able to do it by inserting auto tags when you recognize tags you want to modify at runtime. You might even make something neatly reusable out of it (a similar construct like <wicket:link> maybe?). Keep us informed. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
