Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Creation of Static Text Components

 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Walter Krawiec
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I ended up using tables but it just isnt aesthetically pleasing... I hope someone can show me an alternative soon.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic