dev@jsftemplating.java.net

Database/JSFtemplating related questions

From: Karam Singh Badesha <Karam.Badesha_at_Sun.COM>
Date: Tue, 16 Jan 2007 18:12:35 -0800

Hi,
We have a form which is basically database driven and I was wondering
what is the best way to do this. Here is the scenario:

dropdown1 -> dropdown2 -> dropdown3 -> Button

Database call to fill up dropdown1, then depending on dropdown1 value,
another database call to fill up dropdown2 ...
After all the fields are filled, user clicks on Button to go the next page.

In the dropdown tag options, I don't see how I can specify the values
without using a bean:
<sun:dropDown items="#{MenuListBean.projectMenuOptions}" />

Now does that mean that I need to make these database calls inside the
MenuListBean? or is there another way to do this? Any sample code will
be helpful.

thanks,
-Karam