File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Dynamically create component from namespace and tag name Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Dynamically create component from namespace and tag name
 
Similar Threads
Using ValueExpression's in a validator tag
Mystified by JSF 2 composition components
create component with ajax and listener behavior in java
JSF 1.2 Input Custom Component.
Can't render custom facelet component in IceFaces