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
> 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
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
> 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
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
> 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
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
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
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