ICEfaces
  1. ICEfaces
  2. ICE-8615

samples - auctionMonitor failure - item price updated to 0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.BETA1
    • Fix Version/s: 3.2
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces 3.2.0.BETA1 bundle / auctionMonitor app

      Description


      In auctionMonitor, the price of any item can be brought to $0.00 when placing a bid without any amount entered in the bid entry.
      Steps (Firefox14):
      - click on 'Bid' button- this opens bid entry.
      - remove the amount from the bid entry and press 'Enter' key, or click the sign to place the bid.
      The price of the corresponding item becomes $0.00.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #31394 Wed Oct 10 13:43:33 MDT 2012 matthew.cowell ICE-8615 - Added a check for a bid price of 0.0, which is the result when JSF takes a blank input and converts it to a double. The only other way to avoid this is to put required = true on the input box. However, JSF will validate that first and then (without a big rewrite of code) we cannot put a custom error in. I bid of 0 should never happen anyway, so this fix seems ok.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/compat/auctionMonitor/src/main/java/com/icesoft/applications/faces/auctionMonitor/beans/AuctionMonitorItemBean.java

          People

          • Assignee:
            Matthew Cowell
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: