On 7/13/06, ved.gunjan <[EMAIL PROTECTED]> wrote:
My requirment is that i have to create a dynamic datatable and which
contains listing of Questions and its respectives Answer. These questions
and answer come from the server and along with the answer i also get the
answer type , which tells what is the type of the UIComponent that is
associated with the answer say input text,select many,select one etc., so i
have to dynamically create these UIComponent inside the datable based on the
answer type.
There's a much easier way to do this.
<h:column>
<h:inputText rendered="#{bean.typeIsInputText}" ...
<h:selectMany rendered="#{bean.typeIsSelectMany}" ...
<h:selectOne rendered="#{bean.typeIsSelectOne}" ...
[...]
</h:column>