H:commandButton - jsf navigation problem

Dear All,
I changed the first page of my application from pageA.jsf to pageB.jsf in the index.jsp file:
<jsp:forward page="/pages/pageB.jsf" />
The pageB.jsp is a new page that I just created.
(I have
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
in the web.xml )
in the B.jsp I have two "h:commandButton" :
<td><h:commandButton id="submitB1" value="Upload" action="submitB1"/></td>
<td><h:commandButton id="submitB2" value="Search" action="submitB2"/></td>
and in the face-config.xml I have
<navigation-rule>
<from-view-id>/pages/pageB.jsp</from-view-id>
<navigation-case>
<from-outcome>submitB1</from-outcome>
<to-view-id>/pages/pageB1.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>submitB2</from-outcome>
<to-view-id>/pages/pageB2.jsp</to-view-id>
</navigation-case>
I can load the pageB but cannot be navigated to pageB1 or B2. Before I changed pageA.jsf to pageB.jsf, the nevigation worked well.
Anyone has any idea of what would be the cause please help me out.
Thank you very much in advance for your help

In the future, please use code tags to post code. This way they will be nicely formatted and (much) better readable, otherwise likely everyone will ignore it. Press the CODE button to get them and use Preview tab to preview.
However on the new page it seems there is no view root. The bean for the new page is never accessed as it cannot be found.What does the appserver logs say?

Similar Messages

  • Still having navigation problems and need help with how to debug

    Hi,
    I've been porting over a servlet project to JSF and I'm still having navigation problems. I thought the problem might have been because the original project used HTML frames and so the "from-view-id" JSP defined the frame/framesets and the specific JSP that does the submit (and so is named in the "from-view-id" is never defined in a "to-view-id" attribute). I've now switched to using an IFRAME, and that resolves that problem. So now the JSP is defined in a "to-view-id" attribute and it includes an named IFRAME that can be used as a target. I press the submit button and I get not the JSP expected butinstead the same JSP displayed inside its own IFRAME.
    Here is the code for the submit. I've simplified it as much as possible with a static action (originally it was a call to a method) just to try and get things to work. This is the current version:
    <h:commandButton value="View Alias" action="foo" styleClass="select" type="submit" />Here is the navigation rule in faces-config.xml. Again, the problem is that SelectManager get redisplayed in the IFRAME instead of display.jsp.
    <navigation-rule>
       <from-view-id>/SelectManager.jsp</from-view-id>
       <navigation-case>
          <from-outcome>foo</from-outcome>
          <to-view-id>/display.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>I have also tried it without the "from-outcome-value" which I presume means that the "to-view-id" gets displayed unconditionally and it still fails. Any ideas on how I can debug this? (I'm using GlassFish if that's important to know)
    Rob Tanner
    Linfield College

    Raymond, The real trick is avoid doing technical things when coming down with the flu (I should also add that I'm a JSF newbie). Reading your original message this time I see what you're suggesting and found a conversion error although I don't understand it. Here's the code (including the <h:message/>):
                <h:selectOneMenu value="#{members.dcodes}"
                  style="color: #7f0000" id="selector">
                  <f:selectItems value="#{members.departmentList}" />
                </h:selectOneMenu> 
                <h:message for="selector" style="color:white"/>And here's a snippet of the generated HTML:
    <select id="j_id_id26:selector" name="j_id_id26:selector" size="1" style="color: #7f0000">
             <option value="aad" selected="selected">Academic Advising</option>
         <option value="aaf">Academic Affairs</option>
         <option value="adm">Admission</option>
         <option value="up">Upward Bound</option>
    </select>If I select "Admission" for example, the error I get is:
    Conversion Error setting value 'adm' for 'null Converter'.Since everything is a String value, I don't get the error. Could someone please enlighten me.
    Thanks.

  • Studio 3.1 & Portal 9.2 - JSF portlet problem

    Hi, first time here.
    Let say I have create a simple jsf navigation application using Studio 3.1 like this:
    // inside faces-config.xml
    <navigation-rule>
    <from-view-id>/pages/inputname.jsp</from-view-id>
    <navigation-case>
    <from-outcome>greeting</from-outcome>
    <to-view-id>/pages/greeting.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    I have done all beans config and resources bundling. After all I run it successfully in server.My next step is to create a portlet, holding the first jsp page. Oh, well, Studio can't do it and I have to do it in Portal 9.2
    What should I do now? I have try many method to import my project into it and of course it is not working.
    To my knowledge, portal support PageFlow (Controller.java) but i dunno about MyFace (faces-config.xml).

    Hi Rene,
    When you found out that you misread the instrucition and you already ran the script, what did you do next? Did you restore the db and redo over? Or did you continue on? I have the same problem with you too but I'm not sure what to do next.
    Trina :)
    [email protected]

  • Navigation Problem in OBIEE

    Hi,
    I have a strange navigation problem. I have the navigation setup from the 1st page of my dashboard to go to the second. When I first bring up the first page, and then click , nothing happens. Now if I refresh this page and then click again, I am able to navigate to the second page. I would to hear if anyone has seen similar issue. Any help is appreciated.
    Thanks,
    Bharat

    Still haven't found a solution to this problem.
    Even if I remove the form1.setTarget( null or other framename/windowname)
    I tried changing to using the onclick="from1.target='mywin';" and also onclick="form1.target='_self'; on the button. Does not work/ have the desired effect of controlling where the page is opened: in same window or in another frame or window.
    For some reason navigation also totally breaks, after a search, with a similar sql as in this message, and I get no error when I debug and step through the code.
    After doing one search, navigation seems to stop working and only the search.jsp page is the target.
    If I do a view first navigation works to new page/servlet output but still not in a new window/frame.
    This simple stuff in a normal simle html page, should not be so hard to accive with SJSC perhaps someone of you in the community or the developers at sun can give us insight into this simple problem.
    It must be fairly common that one likes to control where a page is opened, in the existing window/page/frame or in a new window/frame.
    Anybody else had any problems with navigation not working with similar code ??
    If I remove the do_search() call it works, the navigation continues to function, but still have no control of the destination window/frame.
    Kind Regards
    Roger

  • RoadMap UI Navigation Problem

    I'm facing a navigation problem using the roadmap UI in WD4A.
    Let's say we have 5 views. The roadmap view is the default view, the other views will be embedded into a view container UI element on the roadmap view. The roadmap UI has 4 steps, one for each view.
    V_ROADMAP
    V_STEP_1
    V_STEP_2
    V_STEP_3
    V_STEP_4
    Now, I need to add navigation buttons (previous & next) to navigate between the roadmap steps.
    My question is where should I placed these navigation buttons? On each view or only on the roadmap view.
    Personnaly and it think it would make more sense to place them only on the roadmap view.
    My problem using this approach is has follow: When you are on v_roadmap on step 1 (V_STEP_1), you click on Next to go to the next view (V_STEP_2), actually the action is trigger in V_ROADMAP so I am not able to validate user input field or obligatory field in V_STEP_1. I would have to call an action from V_STEP_1 in V_ROADMAP so the event handler method WDDOBEFOREACTION will be called. I don't think it's possible. The problem here, is you can click on next and you can go to the next view without filling the obligatory fields.
    If I placed my navigation buttons on each view. The advantage is that before triggering an action, I can validate user input field, obligatory field in the method WDDOBEFOREACTION before going to the next step.
    The desadvantage is that I have to recreate them on each of my view.
    thanks
    Alex

    Just to close this thread, I will summarize the different possible options:
    Navigation buttons on each view: This is the easiest way to validate obligatory fields but for component reuse it's not good idea to have navigation buttons on individual views.
    Navigation buttons on main views: If we placed the navigation buttons on our main view, the validation is kind of painful, before firing an outbound plug from the main view and a corresponding inbound plug on the individual view, we will have to manually verify our obligatory fields from the context of the componenent controller or using cross-component data sharing.
    Navigation using GAF (Guided Activity Floorplan): I think this option is the way to go! The problem here is that's very difficult to find documentation on that subject, also, the tools from SP 15 is not as user friendly then the one that's coming in NW EhP1.
    Alex

  • Mouse navigations problem with Sun Java 1.5.0_*

    Hello gurus,
    We need to move from JInitiator to Sun Java Plugin; according to the Forms10g Client Platform Support (http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html) one of the certified version for Forms 10.1.2.0.2 of the the Sun Java Plugin is 1.5.0_06 and Internet Explorer 6.0, we have tested also SJPI 1.5.0_09 and we get the same mouse navigation problem reported in the following Oracle Forum threads.
    Mouse navigation don't work with Java Plugin.
    Mouse navigation don't work with Java Plugin.
    Forms 10gR2, Sun Java 1.5.0_06 gives mouse problems
    Forms 10gR2, Sun Java 1.5.0_06 gives mouse problems
    Does anybody know a solution to this problem?
    Any help will be really appreciated.
    Regards,
    Victor.

    You need to use 1.5.0_12 or newer. The client SOD is not up-to-date on this specific point. A lot of navigation problems was fixed in this very release.
    The Management team should change this in the client SOD, wonder why they still refer to 1.5.0_06. For Applications, the first 1.5.0 to be certified was _12.
    Also make sure, that you are using the latest Patch 3 for 10.1.2 (10.1.2.3). This patch also contains fixes for a lot of these wellknown issues.
    Hope this helps,
    Jacob

  • Navigation Problem in Next/Previous Record

    Hi,
    I have a Master (have 20 fields) and Four its Detail block visible on same screen but each block have its own Canvas and Window. Now master table have 1700 records with its detail tables. So after Query when I press the Next_Record button it will no response some time I have to press it twice or thrice then it will respond and some time on fist click it gives the response.
    So I want to navigate through Next Records or Previous Record buttons on single click.??????????
    Kindly send me the solution of this problem on urgently basis.
    Best Regard,

    Hi,
    It's very difficult to suggest something by readingyour post. There are many reasones for navigation problem. Validation is one of them. Be sure that validation triggers written on any level are working properly. What code you have written on the buttons that you are using for navigation. In which blocks you have put your buttons. It is recommended that you put all your non-database items in a non-database block. Check this also.......

  • Installing ios8.2 does not resolve Google map navigation problem or gps tracking!

    Installing ios 8.2 does not resolve Google map navigation problem.

    I have tried to install both of them lots of times but in each case I receive the same in my XE.bat file:
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1387) Unable to add or remove a member from the local group because this member does not exist.
    Have checked OS 1387 error at Microsoft Support and as possible cause of the problem they give as follows:
    This issue can occur if the environment has a disjointed namespace (i.e. the domain has different NetBIOS and DNS names). For example, assume that the domain has a NetBIOS name of "domain.com" and a DNS name of "domain-old.com." When users are added in the Windows UI, they are displayed in the format of domain\ComputerName. However, you notice in the error log that there was an attempt to add a computer account in the format of domain-old\ComputerName. (System Center 2012 R2 Data Protection Manager install fails and generates ID: 4323: "A member could not be added")
    Tried to find out my DNS name, but it is impossible because I don't have any domain installed and my machine is not connected to it. Some other blog (Install Oracle 11gR2 on Windows) advices to work with adding my computer account to some non-real windows domain (just for the purpose of resolving the network) as well and reinstall the database then. If I undestand it right I need minimum 2 machines for this. But I own just one, where the server is based and thought that is enough to run the database... no idea ..

  • Navigation problem in jsf

    i have created a simple login page in which two label and two text box for inter usename and password but after clicking submit button it does not navigate to the specified page as i have given in the facesconfig.xml file.here is my code.this page is welcomeJSF.jsp
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <f:view>
                <h:form id="loginForm">
                <table align="left" border="1" cellspacing="1" cellpadding="1">
                        <tr>
                            <td>
                                <h:outputText id="label1" rendered="true" value="Login Name"/>
                                <h:inputText id="text1" rendered="true" value=""/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText id="label2" rendered="true" value="Password"/>
                                <h:inputText id="text2" rendered="true" value=""/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:commandButton id="button1" action="#{test.checkLogin}" value="Submit"/>
                                <h:commandButton id="button2" type="reset" value="Reset"/>
                            </td>
                        </tr>
                </table>
                </h:form>
            </f:view>
        </body>
    </html>
    and here is my facesconfig.xml file
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
        <managed-bean>
            <managed-bean-name>test</managed-bean-name>
            <managed-bean-class>com.test.Test</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
         <navigation-rule>
        <navigation-case>
          <from-outcome>login</from-outcome>
          <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>
    </faces-config>
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Try this:
    page_1.jsp
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Page 1</title>
    </head>
    <body>
    <f:view>
    <h:form id="loginForm">
    <h1>Page 1</h1>
    <table align="left" border="1" cellspacing="1" cellpadding="1">
    <tr>
    <td>
    <h:outputText id="label1" value="Login Name"/>
    <h:inputText id="text1" value="#{test.name}"/>
    </td>
    </tr>
    <tr>
    <td>
    <h:outputText id="label2" value="Password"/>
    <h:inputText id="text2" value="#{test.password}"/>
    </td>
    </tr>
    <tr>
    <td>
    <h:commandButton id="button1" action="#{test.checkLogin}" value="Submit"/>
    <h:commandButton id="button2" type="reset" value="Reset"/>
    </td>
    </tr>
    </table>
    </h:form>
    </f:view>
    </body>
    </html>
    page_2.jsp
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Page 1</title>
    </head>
    <body>
    <f:view>
    <h:form>
    <h1>Page 2</h1>
    <h:outputText id="label1" value="#{test.name}"/>
    <h:outputText id="label2" value="#{test.password}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    com.test.Test.java
    package com.test;
    public class Test {
    private String name;
    private String password;
    /** Creates a new instance of Test */
    public Test() {
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    public String checkLogin(){
    return "page_2";
    faces-config.xml
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>com.test.Test</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <navigation-case>
    <from-outcome>page_2</from-outcome>
    <to-view-id>/page_2.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    You need to be careful when refering to a jsp files, remember that is case sensitive, that could be your problem.

  • Navigation problem when using tiles with JSF

    Hi all,
    I m using tiles with JSF. i have included all the libraries and jsp page is rendered properly. but when i use <h:commandLink> in the body part of the JSP , i cannot go to the specified link. when we use tiles, what changes need to be done in faces-config file?? i mean what navigation rule we need to specify ??

    Hello, I have the same problem; JSF+Tiles = No navigation.
    One basic question is should I reference the parent jsp or the included body jsp in the faces-config.xml file.
    For example: The login.jsp is a main tiles page that includes a menu.jsp, header.jsp & a loginBody.jsp.
    Hence the faces-config could have this rule;
    <navigation-rule>
    <from-view-id>/login.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    (I've left the outcome tag out to simplify this post)
    Or, I could refer loginBody.jsp in the navigation rule;
    <navigation-rule>
    <from-view-id>/loginBody.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    The loginBody.jsp has a commandbutton which a user clicks which starts the navigation.
    Neither seems to work unfortunately & I'm a stuck.
    Thanks

  • Navigation Problem in JSF - Urgent, pls help

    hi,
    I have a problem while navigating into a popup using a custom commandLink which opens the popup.The problem is that when i close the popup and return to the parent JSF and click any button or link in the parent, the page navigates to the page that was shown in the popup. This is my custom component:
    <hl:helplink id="alternateIdHelpLink" rendered="true" actionListener="#{helpBean.handleEvent}" value="Help" action="helpNeeded" target="NewWin" onclick="javascript:openPopup();"></hl:helplink>I have specified the navigation 'helpNeeded' inside the faces-config file which navigates to the page that is shown in the popup. So the problem is that i am unable to navigate to any other page after i open the popup(even after closing it).Can anyone pls find a solution for this problem.
    thanks and regards
    soorejkumar

    Thanks Sergey.Smirnov for the code..but its not working :-(...
    This is my javascript for opening the popup in my help.js file:
    function openPopup() {
        var windowDefn = "width=800, height=400, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes";
        win=window.open('',"NewWin", windowDefn);
    }On clicking the Custom Command Link the popup is opened. But then when i return back to the parent and click any other link or button the contents inside the popup is being displayed.
    <hl:helplink id="alternateIdHelpLink" rendered="true"  value="Help"  onclick="openPopup()" action="#{helpBean.execute}" target="NewWin" actionListener="#{helpBean.handleEvent}" ></hl:helplink>I tried to hard code the path of the jsf file into the popup but that gave an error that 'Page Cannot be Displayed'.
    I tried to get the path of the JSF using the contectPath as follows:
    var path= <%= renderResponse.encodeURL(renderRequest.getContextPath() + "/pages/epsHelp.jsp" %>;
    window.open('"+path+"','helpPopup','height=200,width=400,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');",null);When i viewed the source of the parent page the javascript was showing the correct context path ie "/help/pages/myjsf.jsp". What might be the issue.Can you please help..
    Thanks
    soorejkumar

  • JSF 2.0 Ajax navigation problem

    Hello
    I have some problem with new AJAX functionality of JSF 2.0.
    I want to do the navigation between two pages via AJAX because it looks more smooth and I have the possibility to show a wait screen during the server request.
    Here is a short example. I have two facelet page (page1.xhtml and page2.xhtml)
    page1.xhtml
    <h:form>
            <h:commandLink value="Go to page 2" action="page2">
                <f:ajax render="@all" execute="@all"/>
            </h:commandLink>
    </h:form>
    .....page2.xhtml
    <h:form>
                <h:commandLink value="Go to page 1" action="page1">
                    <f:ajax render="@all" execute="@all"/>
                </h:commandLink>
    </h:form>
    ....The example is very simple. Two pages and on each page is a link to navigate to the other page. I open the page1.xhtml in my browser and I click on the link. The first request is processed as expected. The second pages is displayed successfully. Now I want to go back to the other page. If I click on the link ("Go to page 1") nothing happens. If I click a second time on the link the navigation is working agian. Why I have to click twice? Is this a bug or feature of jsf? Do I use the <f:ajax> feature wrong?
    I did some investigations with firebug and what I can see is that after the second click on page2.xhtml a hidden field is available.
    <input type="hidden" name="javax.faces.ViewState" value="-6158142916843935211:2501145469136072012">
    If I add this hidden field via firebug into the page the navigaiton back to the first page is working after the first click. Why is this hidden field only after the second click available?
    Any ideas what I'm doing wrong?
    Thanks in advance

    I found the problem and a solution :-) The missing piece of the puzzle was the id attribute for the form tag. After some debugging of the JSF JavaScript I found the solution.
    The JavaScript function response(request, context) is invoked to handle the server response. Inside this function the doUpdate(element, context) is invoked.
    The doUpdate() function is doing the modification of the DOM. The function doUpdate() is two times invoked for a response. The first time the html elements are updated.
    The second time the view state hidden field is updated or created but only under the following condition:
    Comment in the JavaScript source code of the jsf.js
    //Now set the view state from the server into the DOM
    //but only for the form that submitted the request.If the forms of the both side haven't the same id the form can't be found on the second page.
    In the following way it is working:
    page1.xhtml
    <h:form id="myform">
            <h:commandLink value="Go to page 2" action="page2">
                <f:ajax render="@all" execute="@all"/>
            </h:commandLink>
    </h:form>
    .....page2.xhtml
    <h:form id="myform">
                <h:commandLink value="Go to page 1" action="page1">
                    <f:ajax render="@all" execute="@all"/>
                </h:commandLink>
    </h:form>So always set an explicit id for each JSF tag.

  • JSF+tiles+newbie = navigation problem.

    Hi all,
    I've got two pages: test.jsp, filter.jsp.
    I've got JSF forms on both of them.
    Code for the form is:
    <f:view>
    <h:form>
    <p>
    Riigi id: <h:inputText value="#{backing_test.id}"/>
    </p>
    <p>
    Kood: <h:inputText value="#{backing_test.kood}"/>
    </p>
    <p>
    <h:commandLink action="#{backing_test.goFilter}" value="action" />
    <h:commandButton value="push me" action="#{backing_test.goFilter}"/>
    </p>
    </h:form>
    </f:view>
    The idea was that I enter data into form, push the button and I'm forwarded to page with database info, selected according to parameters I've entered into form.
    Everything works fine until I uncomment
    <definition name="/test.tiles" extends="layout">
    <put name="body" value="/test.jsp"/>
    </definition>
    <definition name="/filtered.tiles" extends="layout">
    <put name="body" value="/filtered.jsp"/>
    </definition>
    in tiles.xml
    I haven't used tiles at all before, I can't understand - where is the error?
    May such data filter can be implemented in different way?

    This probably won't help much but it will reduce the amount of things you need to check to see what's going wrong.
    Remove the following from faces-config.xml:
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>/test.jsp</to-view-id>
    </navigation-case>
    Then in your action return null during failure. Returning null means use the same page.

  • Jahia + JSC2 + jsf : Major problems with Navigation errors:

    Hi,
    I am trying to embed a JSC jsf app inside a Jahia cms container running opn tomcat4.1 and I get the following
    "Entity enclosing requests cannot be redirected without user intervention "
    For some reason the navigation aspcect of jsf does not work. I suspect it is the jahia redirection code that is causing this.
    Has anybody any experience of Jahai + JSF?
    Any help on this much appreciated.
    LOTI.

    Hi,
    you use in your navigation rules "success" and "failure". But your actions in your links refer to "success" and "fail".
    "fail" is not defined and this means the navigation leads back to same page.
    Yes, you can use multiple forms, but validation is applied to all components, also the ones that are not in the submitted form. They addressed this bug for next release.
    I believe they will support frames. Now it's not working because there is only one component tree.
    The back button bug is addressed. We have to wait for next release.
    Debugging is really difficult, JSF don't tell you much about problems. Hope this will be different in later releases.
    Greetings,
    Rene

  • Navigation problem in JSF portlet when using ADF

    Hi All,
    I am implementing a simple scenario wherein i have an ADF Business Component (a simple drop down) and a command button. On click of the button, there is a navigation from one jsp to another.
    I am able to portletize a simple application using ADF Business Component.It runs fine when run on local.
    But when i put it on portal, navigation does not work.the control is not transferred to the method of backing bean.It is not showing loggers either.
    jdev version :10.1.3.3
    oracle portal :10.1.4
    Standalone OC4j : 10.1.3
    If any one has working model of this, can you pls post the files used.
    Also , if anyone has work around for same, it will be helpful.Thanks.
    Portlet.xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <portlet-app version="1.0"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    id="com.vodacom.portlet.ServiceFaultPortlet.af7cec80b0013456">
    <portlet>
    <portlet-name>ServiceFault</portlet-name>
    <display-name>ServiceFault</display-name>
    <portlet-class>oracle.portlet.server.bridges.jsf.FacesPortlet</portlet-class>
    <init-param>
    <name>DefaultPage.view</name>
    <value>/index.jspx</value>
    </init-param>
    <init-param>
    <name>BridgeLifecycleListeners</name>
    <value>
    oracle.portlet.server.bridges.jsf.adf.ADFFacesBridgeLifecycleListener,oracle.portlet.server.bridges.jsf.adf.BindingFacesBridgeLifecycleListener
    </value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
    <title>Service Faults</title>
    <short-title>Service Faults</short-title>
    </portlet-info>
    </portlet>
    </portlet-app>
    faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>Index</managed-bean-name>
    <managed-bean-class>view.backing.Index</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1index.jspx-->
    </managed-bean>
    <lifecycle>
    <phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
    </lifecycle>
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <navigation-rule>
    <from-view-id>/index.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/welcome.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.application.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/portlet.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>view.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    Regards,
    Alpa

    Hi George,
    can u brief me on what exactly do you need ?
    I am implementing a simple POC wherein i have made a ADF business component (which is just a DB fetch ) and i am dragging the same on index.jspx page.I have a command button on the same page which when clicked directs me to welcome.jspx.(it first goes to managed bean and returns success.)
    And i am portletising this .. all this works fine on local ... even on portletising it runs fine .. But when i register this portlet on oracle portal .. navigation between index.jspx and welcome.jspx does not work.
    If you need more inputs,let me knw.I have uploaded configuration files in my previous post.Also i am not getting any error when i am trying to make it work on portal..
    Regards,
    Alpa

Maybe you are looking for

  • PKCS11 : Unable to generate AES token using C_GenerateKey function

    Hi All, I am using the Eracom's PSE HSM module. They have provided me with the PKCS11 Java interface. I am trying to generate a 128 bit AES secret key with the C_GenerateKey method. However, I keep getting a "incomplete template" exception. I am not

  • General Ledger Changes with Orders open

    Good Day I have a material that was issued to a service order (IW32) and it went to the GL Account 5XXXXXX Cos Material. They decided they did not need this material so they cancelled the goods issue.  Whne the goods issue was cancelled it went to a

  • Getting Printer Destype for Report Printing

    Hi all I am using 9ids. On server side it works fine      set_report_object_property(rep_id,REPORT_DESTYPE,PRINTER);      set_report_object_property(rep_id,REPORT_DESNAME,'\\Admin1\NPR'); Now i want from client side where report server is not loaded

  • Error when installing iTunes 9.0.2

    Hi all I'm trying to update iTunes but whenever I start installing it, it stops saying "Invalid Drive: E:\". I don't have an E:\ drive and I pointed the install to C:\Program Files\iTunes as always. Any ideas??

  • PayPal Chained Payments integration

    Hi all, I'm trying to use PayPal to integrate Chained Payments, but can't get it to work. Has anyone experience with this feature of PayPal and Apex? The Express Payments are working well, but that is not what we need... Regards, Jan