Hi,

Did you use RI or myfaces? RI 1.1 did not support replacing the
UIViewRoot component. Than you need to replace the ViewHandler like we
did in tobago.


Regards,
    Volker




2007/9/15, Manfred K. <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I implemented a custom UIViewRoot because I need to override the encodeBegin
> and encodeEnd methods. Unfortunately my methods never get called!?
>
> I declared my UIViewRoot class in faces-config as new component:
>
> <component>
>   <component-type>javax.faces.ViewRoot</component-type>
>   <component-class>test.TestUIViewRoot</component-class>
> </component>
>
> The class:
>
> public class TestUIViewRoot extends UIViewRoot {
>         public TestUIViewRoot() {
>                 super();
>         }
>
>         public void encodeBegin(FacesContext context) throws IOException {
>                 //do some stuff
>                 super.encodeBegin(context);
>         }
>
>         public void encodeEnd(FacesContext context) throws IOException {
>                 //do some stuff
>                 super.encodeEnd(context);
>         }
> ...
> }
>
> What I'm doing wrong?
>
> THANX!
> --
> View this message in context: 
> http://www.nabble.com/Custom-UIViewRoot-tf4447158.html#a12688634
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to