Skip to main content

JSF Mojarra source code - two methods for the same purpose, why?

2 replies [Last post]
vladbalan
Offline
Joined: 2008-11-09

I downloaded the sources of Mojarra project 1.2_09 and found two methods doing the same thing in my opinion:

- in com.sun.faces.renderkit.html_basic.HTMLBasicRenderer: protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException

- in javax.faces.component.UIComponent: public void encodeAll(FacesContext context) throws IOException

Is there a reason?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ed Burns

>>>>> On Fri, 30 Jan 2009 07:57:18 -0800 (PST), webtier@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@sun.com | office: 408 884 9519 OR x31640
| homepage: | http://ridingthecrest.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

vladbalan
Offline
Joined: 2008-11-09

Ed, ok and thanks.

Vlad