ICEfaces
  1. ICEfaces
  2. ICE-6388

Compat AuctionMonitor: accepting or cancelling bid shows warning on page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2, 1.8.2-EE-GA_P02
    • Fix Version/s: 2.0.0, EE-1.8.2.GA_P03
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces 2 compat auctionMonitor, tomcat 6.
    • Affects:
      Sample App./Tutorial

      Description

      When clicking the big checkmark or "X" to submit or cancel a bid, the page flashes the following error message in the messages tag output:

      "Unable to find matching navigation case with from-view-id '/auctionMonitor.xhtml' for action '#{AuctionBean.pressBidButton}' with outcome 'success' "

      This is enabled by using PROJECT_STAGE='Development', which is the default now for auctionMonitor.

        Activity

        Hide
        Patrick Corless added a comment -

        The faces-config.xml has no navigation rules defines so I guess is makes sense that the error messages is displayed, not sure why this wouldn't have shown on 1.8.2 as well. Either way the fix is pretty simple, instead of returning "success" we can return null to avoid the navigation.

        Generally speaking if there is no navigation involved then an actionListener should be used.

        Show
        Patrick Corless added a comment - The faces-config.xml has no navigation rules defines so I guess is makes sense that the error messages is displayed, not sure why this wouldn't have shown on 1.8.2 as well. Either way the fix is pretty simple, instead of returning "success" we can return null to avoid the navigation. Generally speaking if there is no navigation involved then an actionListener should be used.
        Hide
        Patrick Corless added a comment -

        Decided to change the SUCCESS constant value from "success" to null; The same action return type is used for the sort columns and would result in the same error as the bid commands.

        Updated both icefaces2/compat and icefaces/trunk.

        Show
        Patrick Corless added a comment - Decided to change the SUCCESS constant value from "success" to null; The same action return type is used for the sort columns and would result in the same error as the bid commands. Updated both icefaces2/compat and icefaces/trunk.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: