jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: JAVASERVERFACES_SPEC_PUBLIC-611: PROPOSAL: Drop FaceletFactory

From: Edward Burns <edward.burns_at_oracle.com>
Date: Wed, 28 Nov 2012 13:45:47 -0800

>>>>> On Wed, 28 Nov 2012 14:50:17 -0500, Leonardo Uribe <lu4242_at_gmail.com> said:

EB> PROPOSAL: Move FaceletFactory.createComponent() to be a method on
EB> ViewDeclarationLanguage. Specify that the method returns null on the
EB> JSP implementation.

LU> +1. The controversy here is which option is better, put it on
LU> ViewDeclarationLanguage or
LU> move it to Application and do a call to ViewDeclarationLanguage, like is done in
LU> createComponent(FacesContext, Resource).

Application.createComponent() is much better. I'll put it there. I'll
make use of the VDL.getId() method that Andy Schwartz added in JSF 2.1.

I'm doing this changes in two commits.

1. add the method on Application

2. Remove FaceletFactory.

I'll do the first one presently, and you can look at the nightly spec
snapshot to see what you think.

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/