Generation of dynamic input elements

Hi, I wonder if it is possible to create a form with dynamic input elements. In more details, imagine that I have a huge document repository. Documents are being inserted into that repository and they are separated by catalogs, profiles and properties. User must select catalog, then choose appropriate profile and then fill out all properties defined by selected profile in order to insert document into the repository. Some properties must be shown as dropdown menus, some as date fields and others as plain input text fields. So, is it possible to create this?

Thanks,

Sergei Emelinanov

[608 byte] By [semelianova] at [2007-10-2 20:55:10]
# 1
Yes.
martin_dubuca at 2007-7-13 23:39:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Should I use binding for that? There is a similar post over here [url] http://forum.java.sun.com/thread.jspa?forumID=427&threadID=657978[/url]Should I use the same idea?
semelianova at 2007-7-13 23:39:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
If i understand well, you must add components programatically. I think you don't need binding.
pringia at 2007-7-13 23:39:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Yes, you're right. And to be 100% clear, let me ask one more question. Lets say on my jsf page I have a <h:selectManyListbox id="profile" value="#{backenedBean.profiles}"/>

and somewhere on the same page I have <h:form id="propertyForm"/>

What is the right place to start adding those components? in my backenedBean.getProfiles()

method?

semelianova at 2007-7-13 23:39:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Well, that depends where do you want (in the page) for those components to appear. they can be added at any time that you want.
pringia at 2007-7-13 23:39:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...