permaculture playing cards
The moose likes JSF and the fly likes Dynamically create component from namespace and tag name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamically create component from namespace and tag name" Watch "Dynamically create component from namespace and tag name" New topic
Author

Dynamically create component from namespace and tag name

Barney Barumba
Greenhorn

Joined: Dec 07, 2010
Posts: 1
Is there any way to create a component in Java based on the namespace and tag name, as entered in a .xhtml page? For example, to create a basic input text component I can do this:
But that requires me to do the mapping manually, and would not appear to work for composite components ("http://java.sun.com/jsf/composite"), which do not appear to have a registered component type. What I'd like to do is something like this: And have the framework do the work for me.

Cheers,

Barney
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Dynamically create component from namespace and tag name
 
It's not a secret anymore!