Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
"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.
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.