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

        Ken Fyten created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 2.0.0 [ 10230 ]
        Assignee Priority P1
        Assignee Patrick Corless [ patrick.corless ]
        Patrick Corless made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23571 Thu Dec 16 08:56:48 MST 2010 patrick.corless ICE-6388 changed SUCCESS navigation string from "success" to null to avoid navigation errors in jsf 2 when Project_stage=Development.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/compat/auctionMonitor/src/main/java/com/icesoft/applications/faces/auctionMonitor/beans/AuctionBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23572 Thu Dec 16 08:58:25 MST 2010 patrick.corless ICE-6388 changed SUCCESS navigation string from "success" to null to avoid navigation errors. There are currently no navigation rules in the faces-config.xml so null makes more sense then "success".
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/AuctionBean.java
        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.
        Patrick Corless made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.2-EE-GA_P03 [ 10251 ]
        Affects Version/s 1.8.2-EE-GA_P02 [ 10226 ]
        Ken Fyten made changes -
        Salesforce Case []
        Affects [Sample App./Tutorial]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1

          People

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

            Dates

            • Created:
              Updated:
              Resolved: