Create dropdown list jsf -
Create dropdown list jsf -
currently i'm stuck in create 2 dropdown list in jsf click "add" button.
initial have form 2 dropdownlist, "add" button , "submit" button.
the first dropdownlist list country. sec dropdownlist list city.
when user take country sec dropdownlist add together dynamic city of country(i done using ajax f:ajax).
how can add together 2 other dropdownlist(list country , list city also) when add together button clicked?(it mean user can add together lot of pair dropdownlist using add together button)
how construction of bean manage pair dropdownlist when click submit button?
please give me illustration code it.
thanks
have tried using c:foreach
? similar following:
<c:foreach var="i" begin="1" end="#{bean.numberofaddsclicked}" step="1"> <!-- elements repeat here. bind values bean.country[i] respective bean.city[i] country , city beingness arrays of bean.numberofaddsclicked --> </c:foreach>
jsf
Comments
Post a Comment