This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons 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
 
Don't get me started about those stupid light bulbs.
 
subject: Dynamically create component from namespace and tag name
 
Similar Threads
Mystified by JSF 2 composition components
Using ValueExpression's in a validator tag
JSF 1.2 Input Custom Component.
create component with ajax and listener behavior in java
Can't render custom facelet component in IceFaces