webtier@glassfish.java.net

Re: [webtier] JSF Mojarra source code - two methods for the same purpose, why?

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Fri, 30 Jan 2009 08:26:53 -0800

>>>>> On Fri, 30 Jan 2009 07:57:18 -0800 (PST), webtier_at_javadesktop.org said:

WT> I downloaded the sources of Mojarra project 1.2_09 and foud two methods doing the same thing in my opinion:
WT> - in [b]com.sun.faces.renderkit.html_basic.HTMLBasicRenderer[/b]: [i]protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException[/i]

WT> - in [b]javax.faces.component.UIComponent[/b]: [i]public void encodeAll(FacesContext context) throws IOException[/i]

WT> Is there a reason?

Thanks so much for your inspection! The latter one was introduced in
JSF 1.2 and think the former one pre-dated it. Ryan can comment if we
need to investigate this as an opportunity to reduce duplicate code.

Ed

-- 
| ed.burns_at_sun.com  | office: 408 884 9519 OR x31640
| homepage:         | http://ridingthecrest.com/