Re: Replace item in OrderedConfiguration

2008-05-09 Thread Howard Lewis Ship
boolean dispatchComponentEvent(ComponentEvent event); So, in your advice: ComponentEvent event = (ComponentEvent) invocation.getParameter(0); if (event.matches("activate", "", 0) { // Do some extra checking here. } invocation.proceed(); On Fri, May 9, 2008 at 10:32 AM, Robin Helgelin <[E

Re: Replace item in OrderedConfiguration

2008-05-09 Thread Robin Helgelin
On Fri, May 9, 2008 at 5:54 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Since it's a specific method, we know what the parameters are; we can > then cast the first parameter to ComponentEvent, and (inside the > advice) check to see if it is an "activate" event, and apply security > checks th

Re: Replace item in OrderedConfiguration

2008-05-09 Thread Howard Lewis Ship
At Formos, we used the ComponentMethodAdvice approach to enforce page-level security, advising the dispatchComponentEvent() method (part of the Component interface). Since it's a specific method, we know what the parameters are; we can then cast the first parameter to ComponentEvent, and (inside

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Filip S. Adamsen
There isn't much documentation on this yet as far as I know, but Howard posted a bit about it on his blog: http://tapestryjava.blogspot.com/2008/04/tapestry-components-aspects.html -Filip On 2008-05-07 19:29, Robin Helgelin wrote: On Wed, May 7, 2008 at 4:21 PM, Filip S. Adamsen <[EMAIL PROTE

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Robin Helgelin
On Wed, May 7, 2008 at 4:21 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > How about using the new ComponentMethodAdvice? Sounds like that might be a > good fit. Reading up about that now, any specific ideas on how to use it? Seems like it can help on secure methods, but not on secure classes.

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Filip S. Adamsen
How about using the new ComponentMethodAdvice? Sounds like that might be a good fit. -Filip On 2008-05-07 15:20, Robin Helgelin wrote: On Wed, May 7, 2008 at 1:06 PM, Otho <[EMAIL PROTECTED]> wrote: Hi Robin, of the underlying concepts from developers. For example your Todo list still has t

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Robin Helgelin
On Wed, May 7, 2008 at 1:06 PM, Otho <[EMAIL PROTECTED]> wrote: > Hi Robin, > of the underlying concepts from developers. For example your Todo list still > has the non working method security and the ability to access action > handlers in @Secured classes open. Because of the conventions in met

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Otho
Hi Robin, I must admit that I learned Spring before Tapestry :) The remark was not coined at your work specifically since a seamless integration of Acegi/Spring Security into Tapestry is without doubt something good, because a kind of security and user rights is needed in almost every non trivial w

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Chris Lewis
Robin Helgelin wrote: > On Wed, May 7, 2008 at 11:30 AM, Otho <[EMAIL PROTECTED]> wrote: > >> One thing which bothered me a couple of times already on this list. With the >> neat tapestry-spring integration, why don't you just use Spring to configure >> Spring services? The little xml used f

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Robin Helgelin
On Wed, May 7, 2008 at 11:30 AM, Otho <[EMAIL PROTECTED]> wrote: > One thing which bothered me a couple of times already on this list. With the > neat tapestry-spring integration, why don't you just use Spring to configure > Spring services? The little xml used for configuring acegi is in my pers

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Otho
One thing which bothered me a couple of times already on this list. With the neat tapestry-spring integration, why don't you just use Spring to configure Spring services? The little xml used for configuring acegi is in my personal view more readable than the contributions in a service class and it

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Robin Helgelin
On Tue, May 6, 2008 at 11:04 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I've been thinking for a while about adding remove() and replace() > methods to OrderedConfiguration and MappedConfiguration, and adding > other methods to OrderedConfiguration to allow minor tweaks to > dependencies

Re: Replace item in OrderedConfiguration

2008-05-06 Thread Howard Lewis Ship
I've been thinking for a while about adding remove() and replace() methods to OrderedConfiguration and MappedConfiguration, and adding other methods to OrderedConfiguration to allow minor tweaks to dependencies. It just hasn't been a priority. It also leads to ambiguities ... what if you remove a

Re: Replace item in OrderedConfiguration

2008-05-06 Thread Daniel Jue
Sounds the same as my issue with replacing the "Default" hibernate config, which is stored in a OrderedConfiguration list. (I ended up just putting a minimal dummy hibernate.cfg.xml in the path, and then the configuration I made replaces the entire config since it's loaded after the "Default". Can

Replace item in OrderedConfiguration

2008-05-06 Thread Robin Helgelin
Hi, My tapestry5-acegi module contains this: public static void contributeHttpServletRequestHandler( OrderedConfiguration configuration, @InjectService("HttpSessionContextIntegrationFilter") HttpServletRequestFilter httpSessionContextIntegrationFilter, @InjectSer