h:commandButton submit problem
hi,
i have a jsf page that simply wont submit, when you click on it, nothing happens. the same page appears again. i have other areas in my web application that will submit fine and proceed to the next page.
here is the code for the JSF page that does the submit.
h:commandButton id="submit" action="#{AuctionController.submitItemListing}" value="Submit Listing" />
next is the function in the AuctionController servlet where the submit button in the JSF page performs the action.
public String submitItemListing(){
int startingprice = Integer.parseInt(starting_price);// convert string values to integer
int buyitnowprice = Integer.parseInt(buy_it_now_price);
int reserveprice = Integer.parseInt(reserve_price);
startingprice = Math.round(startingprice*100)/100;// rounding numbers up to two decimal points
buyitnowprice = Math.round(buyitnowprice*100)/100;
reserveprice = Math.round(reserveprice*100)/100;
starting_price = Integer.toString(startingprice);// convert integers values back into strings.
buy_it_now_price = Integer.toString(buyitnowprice);
reserve_price = Integer.toString(reserveprice);
return"success";
}
then next is the navigation rule declared in the faces-config.xml
<navigation-rule>
<from-view-id>/sell.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/sellconfirmation.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/sell.jsp</to-view-id>
</navigation-case>
</navigation-rule>
if you need further declaration of the code or you want me to provide more code, please do not hesitate to reply. All comments are much appreciated.
thanks.

