This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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
jQuery in Action, 3rd edition