This content has been marked as final.
Show 4 replies
-
1. Re: Dynamic creation of components with Java is no longer supported?
ilya_shaikovsky Jan 22, 2010 10:56 AM (in response to pjmlp)It fully supported. The reason of sections deletion:
1) It contained not good approach for components creation(application.createComponent() should bew used rather than new someComponent())
2) It's not specific to RF. RF components creation from Java code does not differs from the standard JSF components creation.
-
2. Re: Dynamic creation of components with Java is no longer supported?
ariefz Jan 22, 2010 11:12 AM (in response to ilya_shaikovsky)1) It contained not good approach for components creation(application.createComponent() should bew used rather than new someComponent())
Interesting!
Do you mind sharing what's the benefit of using application.createComponent()? rather than the typical instantiation...
Thanks.
-
3. Re: Dynamic creation of components with Java is no longer supported?
nbelaevski Jan 26, 2010 5:35 AM (in response to ariefz)application.createComponent() accepts component type String parameter. This means that:
- You can create component using its type and set it up via generic UIComponent API, so you don't have to depend on concrete component class in your project.
- Component classes can be easily overriden by registering component types & fully-qualified classes names in faces-config.xml. That's not possible if you are creating component explicitly.
-
4. Re: Dynamic creation of components with Java is no longer supported?
pjmlp Jan 27, 2010 10:45 AM (in response to nbelaevski)Thanks for the feedback and tips.