Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application.createComponent(): compcomp via namespace+compname #599

Closed
eclipse-faces-bot opened this issue Jul 31, 2009 · 16 comments
Closed

Comments

@eclipse-faces-bot
Copy link

I feel there is value in the ability to instantiate an EzComp object
in Java so that a component tree can be built in a backing bean (or
other Class). JSF must be doing this in the background through
Facelets, so providing this ability in Java should not be too difficult.

Referencing an object by its namespace should be sufficient:

UIComponent comp = Application.createComponent(FacesContext,
"http://java.sun.com/jsf/composite/mynamespace:component" ) .

Attributes would be assigned via the normal method:

comp.getAttributes().put("rendered", false);

This would greatly extend the reach of EzComp objects.

Environment

Operating System: All
Platform: Sun

Affected Versions

[2.0]

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Reported by @edburns

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Issue-Links:
is related to
JAVASERVERFACES-2481
JAVASERVERFACES_SPEC_PUBLIC-1038

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
target 2.1

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Prepare to delete "spec" subcomponent.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Move these to unscheduled because we need to target them correctly. 2.next isn't
specific enough.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
rogerk said:
cat2

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
frame

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
These are targeted at 2.1.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
triage

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
GlassFish 3.1 M6 at the latest.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Move these to 2.2

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Sending build.xml
Sending jsf-api/doc/web-facelettaglibrary_2_2.xsd
Sending jsf-api/src/main/java/javax/faces/render/ResponseStateManager.java
Sending jsf-api/src/main/java/javax/faces/view/facelets/ComponentHandler.java
Sending jsf-demo/build.xml
Sending jsf-demo/sandbox/custom-tag/pom.xml
Sending jsf-ri/conf/share/composite.taglib.xml
Sending jsf-ri/conf/share/facelets_jsf_core.taglib.xml
Sending jsf-ri/conf/share/html_basic.taglib.xml
Sending jsf-ri/conf/share/jstl-core.taglib.xml
Sending jsf-ri/conf/share/jstl-fn.taglib.xml
Sending jsf-ri/conf/share/ui.taglib.xml
Sending jsf-ri/conf/xslt/facelets1_0-2_0toSchema.xsl
Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/TagLibraryImpl.java
Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/ComponentTagHandlerDelegateImpl.java
Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/ui/SchemaCompliantRemoveHandler.java
Sending jsf-ri/systest/web/WEB-INF/composite-behavior.taglib.xml
Sending jsf-ri/systest/web/WEB-INF/formlayout.taglib.xml
Sending jsf-ri/systest/web/WEB-INF/source1.taglib.xml
Sending jsf-ri/systest/web/WEB-INF/testcomponent.taglib.xml
Sending jsf-ri/systest-per-webapp/process-as-jspx/web/WEB-INF/jspx.taglib.xml
Sending jsf-test/JAVASERVERFACES-1655/i_jsf_1655/src/main/webapp/WEB-INF/groovy-taglib.xml
Sending jsf-test/#997/i_spec_997_jar/src/main/resources/META-INF/i_jsf_1948.taglib.xml
Transmitting file data .......................
Committed revision 9398.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Sending jsf-api/src/main/java/javax/faces/view/facelets/FaceletFactory.java
Sending jsf-api/src/main/java/javax/faces/view/facelets/FaceletFactoryWrapper.java
Sending jsf-ri/src/main/java/com/sun/faces/facelets/impl/DefaultFaceletFactory.java
Sending jsf-ri/systest/build-tests.xml
Adding jsf-ri/systest/src/com/sun/faces/systest/component
Adding jsf-ri/systest/src/com/sun/faces/systest/component/Issue599Bean.java
Adding jsf-ri/systest/web/WEB-INF/i_spec_599_composite_taglib.taglib.xml
Sending jsf-ri/systest/web/WEB-INF/web.xml.template
Adding jsf-ri/systest/web/facelets/i_spec_599.xhtml
Adding jsf-ri/systest/web/resources/i_spec_599_composite
Adding jsf-ri/systest/web/resources/i_spec_599_composite/i_spec_599_composite.xhtml
Adding jsf-ri/systest/web/resources/i_spec_599_composite_taglib
Adding jsf-ri/systest/web/resources/i_spec_599_composite_taglib/i_spec_599_composite_taglib.xhtml
Transmitting file data ..........
Committed revision 9399.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Marked as fixed on Thursday, January 31st 2013, 6:58:20 pm

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-599

@eclipse-faces-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant