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

Dynamic Creation of Static Text Components

Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Hello All, I have an issue regarding dynamic creation of text on a visual web JSF page. My intention is to create a user then once the form is submitted to show a confirmation page showing what privileges the user was given. Because there is no set number of privileges a user can be given I cannot hard code this and want to be able to dynamically display these privileges as a list without using tables? I thought maybe dynamically creating Static Text components and using their setText() method, is this possible?


You are what you know
Walter Krawiec
Greenhorn

Joined: Jan 13, 2009
Posts: 20
Phoenix Kilimba wrote:Hello All, I have an issue regarding dynamic creation of text on a visual web JSF page. My intention is to create a user then once the form is submitted to show a confirmation page showing what privileges the user was given. Because there is no set number of privileges a user can be given I cannot hard code this and want to be able to dynamically display these privileges as a list without using tables? I thought maybe dynamically creating Static Text components and using their setText() method, is this possible?


I had almost the same problem, but in your case you have static text, maybe you can add all content to one static text by setting up like st.settext() method?
I was forced to use tables....,
Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Yes I ended up using tables but it just isnt aesthetically pleasing... I hope someone can show me an alternative soon.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Creation of Static Text Components