Re: [shale] ClayViewHandler listener

2005-11-17 Thread Ryan Wynn
Yes, I would need matching postprocess commands to accomplish my task. My custom command basically checks if the ClayContext's parent component id is 'clayView' and if it is then it goes and adds the appropriate javascript to the top of the component child list. I originally had thought that the

Re: [shale] ClayViewHandler listener

2005-11-17 Thread Gary VanMatre
> Cool, thanks Gary. > > so the following > > > > > > > > would execute CustomCommand before the creation of a component, > validator, etc? I guess if I make CustomCommand a Filter then I would > get a hook to the postProcess method which would actually be executed > after the compone

Re: [shale] ClayViewHandler listener

2005-11-17 Thread Ryan Wynn
Cool, thanks Gary. so the following would execute CustomCommand before the creation of a component, validator, etc? I guess if I make CustomCommand a Filter then I would get a hook to the postProcess method which would actually be executed after the component, validator, etc is create

Re: [shale] ClayViewHandler listener

2005-11-16 Thread Gary VanMatre
> Hey Gary, > > Yeah I thought about using the shapeValidator, but I want to make this > as unobtrusive as possible. What I mean by that is that I don't want > to have to add a special component to every page to take care of this. > I like using chain to do it, but I would need a hook like pre

Re: [shale] ClayViewHandler listener

2005-11-16 Thread Ryan Wynn
Hey Gary, Yeah I thought about using the shapeValidator, but I want to make this as unobtrusive as possible. What I mean by that is that I don't want to have to add a special component to every page to take care of this. I like using chain to do it, but I would need a hook like preprocess chain

Re: [shale] ClayViewHandler listener

2005-11-16 Thread Gary VanMatre
> Okay, the override Clay class idea won't work. > > My last alternative is to use Clay's chain integration. I noticed > that in the clay-chain.config I can plug a Filter command into the > addComponent chain that would do the trick. I read up on Chain and it > seems that I can't just plug a com

Re: [shale] ClayViewHandler listener

2005-11-16 Thread Ryan Wynn
Okay, the override Clay class idea won't work. My last alternative is to use Clay's chain integration. I noticed that in the clay-chain.config I can plug a Filter command into the addComponent chain that would do the trick. I read up on Chain and it seems that I can't just plug a command into an

Re: [shale] ClayViewHandler listener

2005-11-16 Thread Ryan Wynn
Actually, the more I look at this I think I can may be able to achieve the same thing by extending the Clay class. Does anyone know if you can override the component class associated with a component-type in faces-config.xml? I could add org.apache.shale.clay.component.Clay foo.bar.MyClayEx

[shale] ClayViewHandler listener

2005-11-16 Thread Ryan Wynn
From my experience using clay I think it would be nice if the ClayViewHandler accepted listeners that get invoked after the clay component has been created but before rendering to the outputstream. This is the case that I have. I have a render phase listener that adds javascript, stylesheets, etc