Displaying dynamic Questions from the database on the page?

Hi..All,

On a particular page, I have to display questions that I retrieve from the database. There might be 1 question or 10 questions (i.e will increase or decrease depending on certain parameters). After each question I also have to display a text box for the user to enter the values.

How do I achieve this in JSF & what would the backing bean look like?

Regards,

P

[407 byte] By [pmohanana] at [2007-11-26 15:00:12]
# 1
Use h:datatable. Check http://balusc.xs4all.nl/srv/dev-jep-dat.html for some interesting insights.
BalusCa at 2007-7-8 8:49:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi...Balusc,How do I call the method to populate the bean before the page gets rendered?Should I do it a page prior before it gets redirected to this page or is there any way to execute/call a method within the page?Regards
pmohanana at 2007-7-8 8:49:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...