Problem in first request's navigation in JSF

Hi all
I want to redirect to first page of application thru faces-config. Please have look at the code flow
1. First time request comes to our Java filter, this filter forward the controle to our facelets (i.e. dispatcher.xhtml).
2. From this facelets we are calling servlet as manage bean, like this.. <h:outputText value="#{servletBean.analyseRequest}"/>
3. Now in this servlet (servletBean) we are doing some processing and after completion of task i want to go back to faces-config for navigation.
4. in the faces-config.xml i have written like this -
<navigation-rule>
     <from-view-id>/facelets/dispatcher.xhtml</from-view-id>
     <navigation-case>
               <from-outcome>success</from-outcome>
               <to-view-id>/facelets/port.xhtml</to-view-id>
          </navigation-case>
     </navigation-rule>
But in my case the control is going to port.xml.
Can anyone tell me what am i missing something?
Any help would be really appreciated.
thanks.

can anyone has any idea about it?

Similar Messages

  • Problems with navigation using JSF 1.0 RI

    I have a problem with faces in that navigation simply stops working. I have a page which have prev/next buttons on it, and a cancel button. Each button is of the form
    <h:form id="viewxxx">
    <h:commandButton value="XXX" styleClass="buttonInput" action="#{somebean.doSomeAction}"/>
    </h:form>
    The code behind the next/prev button action returns "success", the cancel returns an action string which returns the user to the previous screen.
    After clicking on prev/next a few times one of two possible things happen:-
    (1) the navigation stops working (all buttons do nothing)
    (2) or after pressing a button a few times the navigation starts to work.
    I tried to simplify things to find out if my backing code was causing the problem. I included a very simple button:-
    <h:form id="view_c_getridofme">
         <h:commandButton value="Test" styleClass="buttonInput" action="success"/>
    </h:form>
    and after clicking this a few time it also breaks the navigation. So I suspect something strange is going on inside the Faces implementation.
    I checked the faces-config.xml and this is correct:
    <!-- Stay on View for page next/prev -->
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/viewcorr.jsp</to-view-id>
    <redirect />
    </navigation-case>
    I tried (albeit briefly) MyFaces 1.0.3 and the navigation does not break although it does present some other issues for me. My preference would be to use Sun's JavaFaces implementation if possible.
    Can anyone shed light on this - why this may be happening?

    I experienced the same problem while re-submitting to the same page about 15 times via a command button (a list page that would get updated with every new submit).
    After having turned JSF logging on I discovered that my stylesheet (!) was interpreted by JSF as a Faces view (because of the /faces/-mapping before it) and that this caused the list page to be (incorrectly) added up towards the maximum of 15 views in the session. After 15 reloads JSF would remove the list page from view, re-create it, and I experienced the same problems as you described in the top post - no navigation worked.
    My stylesheet used to be:
    <link rel="STYLESHEET" type="text/css" href="../../css/foo.css">
    ... which kept the /faces/ mapping from the page containing the css reference, and made it look like a faces view to JSF.
    When I switched to:
    <link rel="STYLESHEET" type="text/css" href="/css/foo.css">
    ... the problem disappeared.
    Hope that helps all of you that have this problem. It certainly took me quite a while to figure it out!
    Mattias L

  • "Navigator" via JSF in a Struts Application (struts-faces)

    Hi!
    I got an existing Struts application which uses some includes to display a "Menu" on the left side with several links to navigate through the Webapp. Each of the Links points to a Struts-Action, that does some business logic and redirects any of a bundle of JSPs... Each of the JSPs is including this "navigation-jsp".
    Now i want to realize this Navigation with JSF and a TreeViewer (similar to the one in demo components) but the problem i face atm is, that when i click a link, and come back to any of the JSPs (after struts-action) how should this Tree-Navigator be rendered correctly???
    As said in topic, im using struts-faces.
    Any ideas?
    Greetings
    Patrick

    please guys - try to help me :-(

  • First request slow

    I have been running weblogic on a development machine for some time now, and
    recently we have gotten a server, and started to test on that
    The server has a faster CPU, and more memory, and so we give the server a
    larger heap size, naturally this speeds up most requests by a great deal,
    but we have noticed that the first request to a page, whether it goes to a
    servlet, or just returns a HTML/JavaScript page (we may move the static
    pages to a more appropriate server at a later date, but anyway), is
    significantly slower on the server than on the development PC.
    The only different in how weblogic is run is that on the server it has 256M
    heap size, whereas it has 32M on the development machine,a nd the
    connectionpools are several times the size on the server.
    Does anyone have any idea of why this might be? or is this likely to be
    something application specific?
    terry

    This is probably what we will do, I was just wondering if we had done
    something obviously 'duh'.
    And that is a simple yet effective plan, I wish that I had thought of it,
    thanks.
    terry
    Mike Reiche <[email protected]> wrote in message
    news:[email protected]...
    >
    You may wish to consider a tool that 'warms-up' WLS by hitting all
    the pages.
    The simplest would be a page with all URLs on them - just click
    on each one.
    mike
    "terry" <[email protected]> wrote:
    The server is also a PC, running the same version of windows
    (NT 4). I'll
    have a look at the jar thing, and, yes, it is just a nuisance
    (unfortunately
    it's the sort of thing that crops up most often when demoing
    a page to
    management or clients)
    terry
    Mike Reiche <[email protected]> wrote in message
    news:[email protected]...
    And the server is... not a PC? What then?
    First requests are slow because the JVM needs to loadthe classes
    from disk the first time. If you deploy your applicationin a
    jar file rather than in a serverclasses directory, itmight be
    a little faster. It sounds like more of a nuisance thana serious
    problem.
    Mike
    "terry" <[email protected]> wrote:
    I have been running weblogic on a development machine
    for some time now, and
    recently we have gotten a server, and started to test
    on that
    The server has a faster CPU, and more memory, and so
    we
    give the server a
    larger heap size, naturally this speeds up most requests
    by a great deal,
    but we have noticed that the first request to a page,
    whether it goes to a
    servlet, or just returns a HTML/JavaScript page (wemay
    move the static
    pages to a more appropriate server at a later date,but
    anyway), is
    significantly slower on the server than on the development
    PC.
    The only different in how weblogic is run is that onthe
    server it has 256M
    heap size, whereas it has 32M on the development machine,a
    nd the
    connectionpools are several times the size on the server.
    Does anyone have any idea of why this might be? oris
    this likely to be
    something application specific?
    terry

  • Problem with multiple requests

    I have a problem with the users submitting multiple requests simultaneously.
    Let me put it this way:
    1. User is on a tabbed panel with clear and search buttons.
    2. User clicks on 'clear' button from any tab (request one). On successful completion, it should reset and load tab one.
    3. Before the tab one loads, user again clicks (request two) on a different tab two. (Tabbed panel - server side tab switch)
    4. As a result, tab two loads. Now when I click on tab one, the default values are not getting set.
    Now when I look at my phase listener logs:
    Processing new  Request!
    St - RESTORE_VIEW 1
    En - RESTORE_VIEW 1
    St - APPLY_REQUEST_VALUES 2
    En - APPLY_REQUEST_VALUES 2
    St - PROCESS_VALIDATIONS 3
    En - PROCESS_VALIDATIONS 3
    St - UPDATE_MODEL_VALUES 4
    En - UPDATE_MODEL_VALUES 4
    St - INVOKE_APPLICATION 5
    En - INVOKE_APPLICATION 5
    St - RENDER_RESPONSE 6
    Processing new  Request!
    St - RESTORE_VIEW 1
    En - RENDER_RESPONSE 6
    Done with Request!
    En - RESTORE_VIEW 1
    St - APPLY_REQUEST_VALUES 2
    En - APPLY_REQUEST_VALUES 2
    St - PROCESS_VALIDATIONS 3
    En - PROCESS_VALIDATIONS 3
    St - UPDATE_MODEL_VALUES 4
    En - UPDATE_MODEL_VALUES 4
    St - INVOKE_APPLICATION 5
    En - INVOKE_APPLICATION 5
    St - RENDER_RESPONSE 6
    En - RENDER_RESPONSE 6
    Done with Request!Looking above its very clear that request two begins before the completion of render response phase of request one. I guess thats where the problem lies and users are not really interested in solution provided by me to use javascript and freeze the page until request one completes.
    I would like to know if it is possible to hold a second request in the phase listener until the first request gets completed. Any help would be highly appreciated.
    Thanks.

    Thus, you want to keep user/session-specific requests in a synchronized queue? You could put a lock in the HttpSession on start of request and remove it on end of request and synchronize the requests on that lock. You can use a Filter for this which is mapped on FacesServlet.
    It's all theory and I've never done it, so I can't give a "safe" code example out of head. But googling using the terms "synchronized, lock, httpsession" gives lot of the same ideas, some with examples, under each this article: [http://www.ibm.com/developerworks/library/j-jtp09238.html].

  • First Request fails with Error 500.00

    Good morning Pro's!
    Although I have allready installed many ColdFusion release's, I'm running in a very strange problem with my ColdFusion 8.01 32bit on my Windws 2008 R2 64bit (IIS7) server:
    When I'm trying to connect to any ColdFusion Website, the FIRST request fails with an 500.00 Error -> IsapiModule - ExecuteRequestHandler - AboMapperCustom-18532 - ErrorCode: 0x800703e9. When I reload the page, the Website is running until I restart IIS and the same problem starts again.
    AppPools are configured to 32-bit Apps
    Thanks for your help!
    Mätu

    I solved the Problem
    I had to set the UserRights of the IIS_IUSRS to FullAccess for the ColdFusion Dir

  • Web cache crash after serving first request from Mozilla browser

    Observing this with version 2.0.0.0.0 of the web cache. The first request from a Mozilla browser is successfully responded to - snoop output shows html delivered correctly in response to the GET. Immediately after that request is satisfied, the webcached is not running, with no core file or mention in event_log as to what could be wrong even in verbose mode -- last mention in the event log is "cache inserted one file '/foo.html' in bucket 47630".
    The problem occurs even with default cacheability rules- changing expiration rules seems to make no difference.

    There were some problems with the 2.0.0.0.0 version with regard to the size of response headers. Please download the 9.0.2.0.0 version and see if that fixes the problem. This is the version you should be evaluating anyway. 2.0.0.0.x is over a year old now and 9.0.2.0.0 has undergone more testing and trial deployments than in previous releases.

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • Error on server - printing stopped - Very First request to print any report

    vs2010 sp2
    CR13 sp1
    CR12 developed reports requested in app with no mods
    I'm getting there but I can't get the very first print request honored regardless of
    size to print on the very first request but will print when re-requested.
    A very large detailed report (+300 pages) errors as well.  The running time is
    over 1 hour from rendering to print.  The printing starts to spool but errors.
    I've caching, sessions to keep the large report alive.
    I have also increased timeout on the server.
    Thanks,
    Isaac

    Is is a website/web app
    I found the following which makes sense in relation to initial prints etc.
    Can you or someone tell me where to make this change in II6
    which we are using on the sql server 2000 box (initially I was was told it was 2003)
    ActiveX printing fails in the .NET web form viewer when IIS GZip Compression is in use. As a result, the following error message appears:
    "A Communication Error Occurred. Printing will be stopped".
    Cause
    This is a known issue with Crystal Reports .NET. This issue has been assigned Track ID ADAPT00459349. At time of writing, there are no file updates to resolve this issue.
    Resolution
    To work around this issue, do one of the two suggestions offered below:
    Disable compression for the following mime types:
    application/x-eor (end of report)
    application/x-ack (acknowledgement of printing finishing)
    application/x-epf (encapsulated page format)
    -OR-
    Use HTTPZip instead of GZip for compression.
    Thanks,
    Isaac

  • Adding ADF task flow to page as region fails on first request

    Using JDeveloper 11.1.1.1.0, I've created a simple task flow that executes a method call (to set some bind variables and issue a SQL query), then forwards to a jsff page. I've then added a region to another page and dragged this task flow onto my region.
    When I run the page, I see the following in the log:
    <24-Jul-2009 14:22:29 o'clock BST> <Error> <HTTP> <BEA-101020> <[ServletContext@19304275[app:pipeline module:pipeline path:/pipeline spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:234)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         Truncated. see log file for complete stacktraceAnd the Page Loading animation continues indefinitely. If I make a second request to the same page, the same NullPointerException appears in the log but the page loads successfully. It seems that the first request from any new session doesn't complete, but subsequent requests do.
    Can anyone give me any hints about what might cause the oracle.adfinternal.view.faces.renderkit.rich.FormRenderer to throw a NullPointerException at line 234?

    Hi Branislav.
    Since I don't have the source code for oracle.adf.* and oracle.adfinternal.*, it's very difficult to do any meaningful debugging. Debugging the code that I do have access to (apache packages), appears to show that the oracle rendering class fails when it gets to closing my af:form tag. I've removed the af:form and the page is now working correctly.
    At some point I'm going to have to reinstate this form though :-\

  • Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?

    Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?

    The warranty is only good in the country of purchase.

  • System.InvalidOperationException: Call to Excel Services returned an error. --- Microsoft.AnalysisServices.SPClient.Interfaces.ExcelServicesException: We're sorry. We ran into a problem completing your request

    0
    HI All,
    I  am having problem with the power pivot dashboard.
    power pivot dashboard processing job fails with the follwoing error message.
    SP 2013 with 2008 r2
    SQL 2014 power pivot on new analysis server.
    Data refersh of cube and database works finw form the power pivot gallery.
    The Execute method of job definition Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob (ID 726034a7-b9a9-45a6-b720-640b3f785e49) threw an exception. More information
    is included below.  Call to Excel Services returned an error.
    ULS error:
    EXCEPTION: System.InvalidOperationException: Call to Excel Services returned an error. ---> Microsoft.AnalysisServices.SPClient.Interfaces.ExcelServicesException: We're sorry.
    We ran into a problem completing your request. ---> Microsoft.Office.Excel.Server.WebServices.ExcelServerApiException: We're sorry. We ran into a problem completing your request.   
     at Microsoft.Office.Excel.Server.WebServices.ApiShared.ExecuteServerSessionMethod(Boolean hasSessionId, String sessionId, CoreServerSessionMethod coreWebMethod, String name,
    Boolean skipFeatureCheck)   
     at Microsoft.Office.Excel.Server.WebServices.ExcelService.OpenWorkbookInternal(String workbookPath, Boolean editingMode, String uiCultureName, String dataCultureName, Boolean
    newWorkbook, Boolean suppressRefreshOnOpen, Boolean openExclusive, Status[]& status)   
     at Microsoft.Office.Excel.Server.WebServices.ExcelService.OpenWorkbookEx(String workbookPath, String uiCultureName, String dataCultureName, Boolean exclusive, Status[]&
    status)    
     at Microsoft.AnalysisServices.SPClient.ExcelApi.<>c__DisplayClassa.<OpenWorkbookEx>b__9(ExcelService svc, Status[]& status)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall)     -
    -- End of inner exception stack trace ---     -
    -- End of inner exception stack trace ---   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall, String methodName, Object[] parameters)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.OpenWorkbookEx(String fileUrl, String uiCultureName, String dataCultureName, Boolean exclusive)   
     at Microsoft.AnalysisServices.SPClient.ASSPClientProxy.OpenWorkbookModelForRefresh(String workbookPath, SessionLifetimePolicy lifetimePolicy)   
     at Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob.RefreshUsageCube(GeminiServiceApplication application)   
     at Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob.Execute(Guid targetInstanceId)
    Thanks
    Ravi

    HI Ravi,
    Did you find the solution?
    Thanks in advance
    Regards,
    Faraz Javaid

  • I have a serious contacts redundancy problem.  First I have multiple email account formats, e.g., 2011 MacOutlook, 2008 Entourage, 2007 Window Outlook, iPhone Exchange and these are all connected to the same account.  The problem is I had up to 15 contact

    I have a serious contacts redundancy problem. 
    First I have multiple email account formats,e.g., 2011 MacOutlook, 2008 Entourage, 2007 Window Outlook, iPhone Exchange and these are all connected to the same account. The problem is I had up to 15 contacts for the same person. 
    I deleted the Entourage contacts as that seemed to be the program that was causing the problems.  When I synced this morning, now all my contacts are gone from every where. 
    How can I restore to my last back?  If I restore, it will ask to restore to the back that was just made… which has no contacts?  
    Help would be greatly appreciated !!

    I have a serious contacts redundancy problem. 
    First I have multiple email account formats,e.g., 2011 MacOutlook, 2008 Entourage, 2007 Window Outlook, iPhone Exchange and these are all connected to the same account. The problem is I had up to 15 contacts for the same person. 
    I deleted the Entourage contacts as that seemed to be the program that was causing the problems.  When I synced this morning, now all my contacts are gone from every where. 
    How can I restore to my last back?  If I restore, it will ask to restore to the back that was just made… which has no contacts?  
    Help would be greatly appreciated !!

  • Problem while releasing Request

    Hello All,
    In one of our client's DEV Server, we are facing problem while releasing requests.
    When I release a request it is not appearing in the PRD import Queue.
    When I checked the TMS Alert Viewer, it is showing as" TP REPORTED ERROR"
    And more over when I checked in the OS level,only the cofile is created not the data file.
    Please suggest ..
    Thank You,
    Regards,
    Hasan

    Hello,
    Here is some contents from Slog.dev
    Name:       SLOG1126.DEV
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (10), I'm waiting 4 sec (20110627095120). My name: pid 8084 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (20), I'm waiting 1 sec (20110627095151). My name: pid 8084 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (30), I'm waiting 4 sec (20110627095215). My name: pid 8084 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (10), I'm waiting 4 sec (20110628123131). My name: pid 7500 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (10), I'm waiting 4 sec (20110630093900). My name: pid 8124 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (20), I'm waiting 1 sec (20110630093925). My name: pid 8124 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (30), I'm waiting 4 sec (20110630093949). My name: pid 8124 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (40), I'm waiting 2 sec (20110630094020). My name: pid 8124 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (50), I'm waiting 2 sec (20110630094055). My name: pid 8124 on stisdev (APServiceDEV)
    WARNING:
    stisdev\sapmnt\trans\tmp\SAPABAP.LOS is already in use (60), I'm waiting 1 sec (20110630094132). My name: pid 8124 on stisdev (APServiceDEV)

  • Urgent !!!! Problem in Leave request

    Hi Experts,
    I am facing one problem in leave request. When manager tries to approve leave request although is able to do so but he is getting one message "You do not have sufficient Authorization" .
    I dont know why this message is coming.
    Please provide the solution.
    thanks
    Sameer

    Am not sure if this is gonna work  ..check whether agent asignment of the workflow u are using is set to general task or not ?
    Regards,
    Aditi

Maybe you are looking for