How to make two-level chained select box(drop down list) in JSF and mysql

Hi everyone:)
I want example code to make two level chained drop down list box in JSF only.

n in both drop down list, items should come from database tables only…
So, please help me out.Reply me example code.

Waiting for your reply…Thanks in advance:)

What on earth is JSF?

i want to implement this in JSF application only…so please reply me example code:)

I am going to assume that JSF is JavaServer Faces - and am accordingly moving this thread from the JavaScript forum to the Java forum.