rednight

          0x2B|~0x2B,That's not a question,Just do it.
          posts - 32, comments - 14, trackbacks - 0, articles - 0

          Page Flow Error - No Relevant Page

          Posted on 2007-01-16 09:06 rednight 閱讀(748) 評論(0)  編輯  收藏

          一個頁面流在第一次使用時,內(nèi)部屬性currentpage并沒有指定頁面,所以避免在begin方法里使用return-to: current page用法.同時在用的時候注意頁面流的工作方式


          問題描述:
          Error message like below in Web Page is displayed:
          
          Page Flow:
           /com/xxxx/xxx/xxx.jpf
          Action:
           update
           
          Page Flow Error - No Relevant Page
          You have tried to return to a recent page in the current page flow through return-to="currentPage", 
          but there is no appropriate page. 
          
          
          Exception's stack trace:
          
          Exception: No previous page for return-to="currentPage" on action create in page flow
           /com/gems/mt/web/CreateReleaseCntr/CreateReleaseCntrController.jpf.
          com.bea.wlw.netui.pageflow.NoPreviousPageException: No relevant page for return-to="currentPage" 
          on action create in page flow /com/gems/mt/web/CreateReleaseCntr/CreateReleaseCntrController.jpf.
          at com.bea.wlw.netui.pageflow.FlowController.doReturnToPage(FlowController.java:1328)
          at com.bea.wlw.netui.pageflow.FlowController.forwardTo(FlowController.java:1023)
          at com.bea.wlw.netui.pageflow.PageFlowController.forwardTo(PageFlowController.java:606)
          at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:765)
          
          ...
          
          
          
          原因分析和解決方法:
          When a new page flow is created and its current page is null (it mean you visit at the fist time),
           so such an exception like NoPreviousPageException occur if you use return-to="currentPage".
          
          if a new page flow finish a successful forward, it will treat last page as current page
          
          so that we can use current page to display error message conveniently.
          
          Solution:
          
          ensure page flow finish a successful forward and use current page again.
          
          You can also use path="specificPage.jsp" instead of return-to="currentPage" 
          if your original return-to is just one specific page.
          
          

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 平舆县| 焉耆| 探索| 灵宝市| 新沂市| 区。| 湾仔区| 西青区| 镇安县| 奈曼旗| 黄平县| 六枝特区| 珠海市| 鸡东县| 金昌市| 县级市| 武宣县| 东海县| 东乡族自治县| 定结县| 盖州市| 九江市| 黄陵县| 连山| 宁城县| 阳朔县| 双柏县| 石楼县| 五河县| 叙永县| 天全县| 林周县| 龙陵县| 榕江县| 美姑县| 江口县| 浮梁县| 本溪市| 台南县| 潼南县| 乌兰浩特市|