myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Schofield <sean.schofi...@gmail.com>
Subject Re: Why does renderer for commandLink check instance of UIOutput
Date Wed, 16 Feb 2005 21:05:51 GMT
That's the explanation I was looking for.  

Thanks.

sean


On Wed, 16 Feb 2005 11:21:02 -0600, Heath Borders
<heath.borders@gmail.com> wrote:
> That's because you can actually encode any UIOutput with the
> LinkRenderer, so you should be able to decode them as well.
> 
> More specifically, MyFaces chose to render all components in the
> component-family "javax.faces.Link" with the same renderer (which
> makes sense).  The two components in this family are HtmlCommandLink
> and HtmlOutputLink.  HtmlOutputLink extends UIOutput, and that's why
> the HtmlLinkRendererBase needs to support plain UIOutputs.
> 
> 
> On Wed, 16 Feb 2005 09:16:58 -0500, Sean Schofield
> <sean.schofield@gmail.com> wrote:
> > I'm a litttle confused as to why the decode method of
> > HtmlLinkRendererBase checks if the component is an instanceof UIOuput.
> > When would that ever be the case?  I am assuming there is a MyFaces
> > specific reason but it escapes me.
> >
> > sean
> >
> 
> --
> -Heath Borders-Wing
> hborders@mail.win.org
>

Mime
View raw message