File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Dynamic jsf content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamic jsf content" Watch "Dynamic jsf content" New topic

Dynamic jsf content

Melanie Kirchner

Joined: Dec 04, 2008
Posts: 2

I have a problem with binding dynamic content on my page.
I have a testBean with a String property 'html' where the content of a form is stored.
For example:
html="<h:inputText id="test" name="" value="" xmlns:h=""/>"

Now I want to render this in my form. The code on my page looks like this:

When I go on the page I just see the commandButton and not the input field.
I know that when testBean.html is inserted in the value Attribute, the Lifecycle is at a point where the ViewTree of the JSF is already build and the h: tags are interpreted.

My Question is: Can I force JSF somehow to interpret this code and insert the new component in the Tree?
[ December 04, 2008: Message edited by: stormqueen ]
I agree. Here's the link:
subject: Dynamic jsf content
It's not a secret anymore!