aspose file tools
The moose likes JSF and the fly likes Dropdown change on clicking buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Dropdown change on clicking buttons" Watch "Dropdown change on clicking buttons" New topic
Author

Dropdown change on clicking buttons

Messagezs Herozs
Greenhorn

Joined: Apr 30, 2007
Posts: 1
Hi,

Could anyone suggest me how to do this in JSF

I have a dropdown menu showing some options. ( List with 10-12 dropdown city items like Atlanta, Athens, Cumming, Savannah).

Below is the code for that:

<TD colspan="3" align="center">
<h:selectOneMenu id="itemCd" immediate="true" value="#{facility.itemCd}" onchange="submit();" valueChangeListener="#{controller.clientIDSelected}">
<f:selectItem itemValue="select" itemLabel=" SELECT INDIVIDUAL ITEM "/>
<f:selectItems value="#{facility.items}"/>
</h:selectOneMenu>
</TD>

Below to this , I have two buttons PREVIOUS and NEXT.

<h:commandButton id="prev" value="Submit" />...
<h:commandButton id="next" value="Submit" />


For Example, If I have selected Athens city in dropdown list�.on clicking Previous it should go to Atlanta , on clicking Next it should show Cumming on dropdown list

How could I do this..

Thanks,
Message2hero
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Dropdown change on clicking buttons
 
Similar Threads
JSF GURU help needed: concerns page refreshing & updating .jsp content upon clicking button
JSF drop down problem
iterate in jsf
Selectmanylistbox disables submit button
passing a value from Javascript to JSP method?