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 Dynamic jsf content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamic jsf content" Watch "Dynamic jsf content" New topic
Author

Dynamic jsf content

Melanie Kirchner
Greenhorn

Joined: Dec 04, 2008
Posts: 2
Hi,

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="http://java.sun.com/jsf/html"/>"

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: http://aspose.com/file-tools
 
subject: Dynamic jsf content