On 1/19/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> I have a custom ViewControllerMapper which depends on resources set up
> by my ViewHandler implementation. Unfortunately, in some circumstances,
> ShaleViewHandler calls the mapper before my view handler has done its
> work. I think the problem is that ShaleViewHandler gets installed as a
> wrapper around my view handler, rather than the other way round.
>
> Is there anyway to control that? I'm pretty sure JSF doesn't provide a
> way to do so, but was hoping this might be something Shale could help
> with...


You are correct that there's no current way to control the order of view
handler initialization. For the specific case of choosing a
ViewControllerMapper instance, however, use the context init parameter
ShaleApplicationFilter.VIEW_CONTROLLER_MAPPER (the literal value is "
org.apache.shale.view.VIEW_CONTROLLER_MAPPER") to specify the fully
qualified class name.  Shale's view handler will then use your
implementation.

L.


Craig

Reply via email to