Problem with navigation-rules

Hello!!!
I'm using Jboss Jbpm with JSF and I want to navigate to other page when I fill a form and I send the data that I entered. I have declare the navigation-rules but it doesn't work and I don't know why.
In my faces-config.xml I've added the navigation-rules:
<managed-bean>
               <managed-bean-name>usuario</managed-bean-name>
               <managed-bean-class>com.miApp.UserBean</managed-bean-class>
               <managed-bean-scope>request</managed-bean-scope>
          </managed-bean>
     <navigation-rule>
               <from-view-id>/SolicitarAlta.xhtml</from-view-id>
               <navigation-case>
                    <from-action>#{usuario.registrar}</from-action>
                    <from-outcome>correcto</from-outcome>
                    <to-view-id>/results/correcto.jsp</to-view-id>
               </navigation-case>
     </navigation-rule>
     The UserBean has the method registrar:
public String registrar() {
       if(dni==null || nombre==null || apellidos==null || ocupacion==null || mail==null || tlf==null ||
password==null)      
            return "campos-obligatorios";
       if ((mail.trim().length() < 3) ||       (mail.indexOf("@") == -1))
                      return "mail-incorrecto";
       else if(tlf.length()!=9)     return "telefono-incorrecto";
            else if(dni.length()!=8) {return "dni-incorrecto";}
       return "correcto";
     And with this line:
<h:commandButton type="submit" value="Enviar" action="#{usuario.registrar}"/>     the method registrar is executed and I know that this method returns the string "correcto" but ... This doesn't redirect me to the page correcto.jsp
I thought that maybe if SolicitarAlta was an xhtml file the correcto page should be also an .xhtml file. I changed it but it doesn't work.
Any ideas? Could it be that I have to add something more in the faces-config.xml & web.xml file???
Thx!

I found the solution to my problem but I don't really understand why it was not working. My problem was due to the use of command button with a render set to false. I just put them at true and all my navigation rules work!
If someone know why it was not working, I would be glad to know!

Similar Messages

  • SOS Problem with navigation rules

    Hello,
    I have been stuck for some time with a navigation problem: It seems my faces DD is read but the navigations rules are not. Unfortunately it does not give me any exception. The only thing that occurs is that the home page reloads itself instead of redirecting to the second page.
    Here is my DD:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <!-- ==============================  Application  ============================== -->
         <application>
              <locale-config>
                   <default-locale>en</default-locale>
              </locale-config>
         </application>
         <!-- ==============================  Managed Beans ============================== -->
         <managed-bean>
              <managed-bean-name>GuideSearchManagedBean</managed-bean-name>
              <managed-bean-class>com.softwareag.test_guide.web.temp.PGSearchManagedBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <!-- ==============================   Navigation rules ============================== -->
         <navigation-rule>
              <from-view-id>/home.jsp</from-view-id>
              <navigation-case>
              <from-action>#{GuideSearchManagedBean.newSearchAction}</from-action>
              <from-outcome>displayResults</from-outcome>
              <to-view-id>/errorOccured.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>Here is my jsf:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <html>
    <head>
    <title>home</title>
    </head>
    <body>
    <h:form id="guide_form">
    category
    <h:selectOneMenu id="category" value="#{GuideSearchManagedBean.category}" required="true">
    <f:selectItem itemValue="2" itemLabel="resto"/>
    <f:selectItem itemValue="1" itemLabel="bar"/>
    <f:selectItem itemValue="3" itemLabel="disco"/>
    </h:selectOneMenu>
    <br /><br />
    postcode<br /><br />
    <h:selectManyListbox id="postcodes" value="#{GuideSearchManagedBean.postcodes}" required="true">
    <f:selectItem itemValue="75001" itemLabel="75001"/>
    <f:selectItem itemValue="75002" itemLabel="75002"/>
    <f:selectItem itemValue="75003" itemLabel="75003"/>
    <f:selectItem itemValue="75004" itemLabel="75004"/>
    <f:selectItem itemValue="75005" itemLabel="75005"/>
    <f:selectItem itemValue="75006" itemLabel="75006"/>
    </h:selectManyListbox>
    <br /><br />
    name
    <h:inputText id="name" value="#{GuideSearchManagedBean.name}"/>
    <br /><br />
    with comments
    <h:selectBooleanCheckbox id="commentsExist" value="#{GuideSearchManagedBean.commentsExist}"/>
    <br /><br />
    order by
    <h:selectOneRadio id="sortOrderCriterion" value="#{GuideSearchManagedBean.sortOrderCriterion}" layout="pageDirection">
      <f:selectItem itemValue="GRADES" itemLabel="note"/>
      <f:selectItem itemValue="DB_ESTABLISHMENT_NAME" itemLabel="name"/>
      <f:selectItem itemValue="DB_POSTCODE" itemLabel="postcode"/>
    </h:selectOneRadio>
    <br /><br />
    minimum note
    <h:selectOneMenu id="minimumNote" value="#{GuideSearchManagedBean.minimumNote}">
    <f:selectItem itemValue="1" itemLabel="1"/>
    <f:selectItem itemValue="2" itemLabel="2"/>
    <f:selectItem itemValue="3" itemLabel="3"/>
    <f:selectItem itemValue="4" itemLabel="4"/>
    <f:selectItem itemValue="5" itemLabel="5"/>
    </h:selectOneMenu>
    <br /><br />
    <h:commandButton id="submit" action="#{GuideSearchManagedBean.newSearchAction}" value="Submit" />
    </h:form>
    </body>
    </html>
    </f:view>Here is my Managed bean:
    package com.softwareag.test_guide.web.temp;
    import java.rmi.RemoteException;
    import java.util.List;
    import com.softwareag.test_guide.web.util.PGFactory;
    * @author Julien Martin
    public class PGSearchManagedBean {
         private String category;
         private List postcodes;
         private String name;
         private boolean commentsExist;
         private String sortOrderCriterion;
         private int minimumNote;
         public String newSearchAction(){
              System.out.println("----------within new search action--------------");//this line never gets printed
              return "displayResults";
         public String nextAction() throws RemoteException { //TODO: Remove that
              PGSearch search = PGFactory.getSearchInstance();
              String issue = search.next();
              return issue;
         public String previousAction() throws RemoteException { //TODO: Remove that
              PGSearch search = PGFactory.getSearchInstance();
              String issue = search.previous();
              return issue;
         public String getCategory() {
              return category;
         public boolean getCommentsExist() {
              return commentsExist;
         public int getMinimumNote() {
              return minimumNote;
         public String getName() {
              return name;
         public List getPostcodes() {
              return postcodes;
         public String getSortOrderCriterion() {
              return sortOrderCriterion;
         public void setCategory(String string) {
              category = string;
         public void setCommentsExist(boolean bool) {
              commentsExist = bool;
         public void setMinimumNote(int i) {
              minimumNote = i;
         public void setName(String string) {
              name = string;
         public void setPostcodes(List list) {
              postcodes = list;
         public void setSortOrderCriterion(String string) {
              sortOrderCriterion = string;
    }Can anyone help? I am really stuck. :-)
    Julien Martin.

    Hi,
    I added a messages component to your home.jsp page and saw that the page produced validation errors (often the cause for failed navigation).
    The problem is that the beans property minimumNote expects an int but gets a String. When you change the the type in the bean to String it works.
    You will probably want to add a converter to the uicomponent to get the correct type. I'd be happy to tell you how, but I'm just starting with jsf ;-).

  • Problems with navigation when deploy application on WebLogic 10.3

    Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this button then the first form (where I could see all records) is empty - the create operation worked, but navigation to second page not. Navigation rules is in adf task flow. In default server all works correct. Where is the problem?
    Maybe when I deploy my application I need specialy deploy adf task flow or somewhere write something? If so, then can you explain me where? Any suggestions what to do.
    Best regards!

    I have in log:
    2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
    l setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
    nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
    lize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
    sourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
    trap add
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
    tchCredential
    WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
    mains\base_domain\config\oracle.
    2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
    Exception
    WARNING: Incomplete connection information
    Edited by: Debuger on Mar 26, 2009 11:18 AM

  • Problem with navigation and masthead by changing languages with Anonymous

    Hi All,
    i have a problem with navigation and masthead by changin the language when accessing as anonymous user.
    Ive created two additional users anon_de  (with language german )and anon_en (for english).
    I've created also two links in the in masthead:
    /irj/portal/anonymous?guest_user=anon_en and /irj/portal/anonymous?guest_user=anon_de
    When i choose "de" for the first time it works fine, but when i choose "en" again the language in the content are is changing to english again, but not in navigation and masthead. When i click again on link for "en" the languge is set to english. Strange thing is that when i click on "de" instead the portal content change to german but masthead and navigation are in english now, as it should be before....
    It seems that masthead and navigation have always prevoius language selected.
    Do you know, what could be the reason of that strange behavior?
    Thanks for help
    Karol

    Hi Detlev,
    you are right. the user is not "updated" fast enough... the strange thing is, that it works by the first time i change the language...
    well.. i can implement that workaround as you suposed, but it would be a really workaround as the same page will be requestes second time, causing requests number to be double..
    Thanks for help
    ps. i forgot to mark this message as question to give points.. if you tell me how i can change that ill reward your answer..

  • Teamviewer with Navigation rule in WD Abap application

    Hi,
    We are facing a problem with the team viewer on MSS in one of the WD Abap based application.
    we are using our own custom built function modules in the root/navigation/target object rules. But there is no output in the teamviewer when this option is selected.
    But the same works fine in a Java based application on MSS.
    Any separate coding required for abap based teamviewers ?
    Pls. help.
    Thanks
    SK

    Do you know if ypur WD abap application is using team viewer Views ? Are you pass custom OADP view as parameter to WD A ? Which are of MSS you are referring to and what is the WD A application ?
    regards
    Sridhar Kandisetty

  • Problem with business rule

    Hi all,
    I have a problem with a business rule (BR) deployed as a standalone Descision service.
    the BR consists on a simple decision table wich compare an input (bigInteger) with 50. It returns two facts (as output).
    the two conditions are confugured (i.e. <50 and >=50).
    the Decision service (stateless) is called in a simple BPEL process. in some cases the the assign activity in the bpel process rise this exception :
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result. The XPath variable or expression /ns5:callFunctionStatelessDecision/ns5:resultList/ns6:processResponse/ns6:CodeRetour is empty at line 440. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related variables to ensure the run-time data is valid. </summary></part></selectionFailure></bpelFault>
    it seems like an output of the business rule used by the assign after the invoke activity is empty.
    But in the input payload for the decision service all elements are not empty. I can't inderstand how the OBR return an empty variable?
    Any help please?

    In the taskflow you should be capable to trace step by step what happens in the execution. Does this give any clue, e.g. why sometimes the assert does not work?
    cu
    Andreas

  • Problem with Business Rules in OBPM 10.3.1 Enterprise for WebLogic

    We're having a problem with our Business Rules. We've updated two of our business rules (that are used by business rule transitions) in Studio; however, when we publish the updated process, the business rules are not updated. We cannot find anywhere in the Process Admin where to administer the rules to make sure they're overwritten.
    I've double checked, and the updated rule code is in the .project.xpdl, but for whatever reason, the rules are not being updated during the deployment. I'm sure that we've done this many times in the past, but for some reason, now it is not working.
    We're tried variations of the different versioning when we publish, and we've also tried to unpublish all of the older versions of our process, but it does not change the business rules. We can try to unpublish and undeploy, but it seems like we would lose all old instances of that process that are still running if we did that.
    Has anyone ever had this issue, or know if there is a way to effect the business rules via the process admin?

    I see what you're saying, but here's why it works the way you're observing it.
    Once deployed, the 10g business rules are edited by a business user (the owner of the rule). Changes in Studio that a developer makes to a business rule don't override the changes that the business user made.
    To let the business owner edit the rule, add a Global Interactive activity and change its property setting to edit the business rule. Put this activity in the role for the business owner (the person you want to edit the rule).
    Dan

  • Problem with Navigator 6710

    I have a problem with my nokia 6710 navigator, it always flashes a message that memory full delete or move data from Chone memory but i am struggling to move or delete since i cnt find C folder? please assist? 

    did you check if you have the latest firmware installed?
    did you install something new, new app or something like that ?
    http://europe.nokia.com/support/download-software/​device-software-update
    if you have tried updating or it is up to date, you tried to restore factory settings and such, took the battery out and nothing is helping a trip to nokia care might be a good idea
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Problem with navigator on nokia5800 navigation edi...

    My name is Alexander and I have problems with the navigation system of the phone as my Nokia 5800 Navigation Edition: I installed the new version while downloading OviMaps and an error occurred and then can not use the browser. How can I reinstall OviMaps or what should I do? thank you
    Solved!
    Go to Solution.

    @alexandrudilita
    Welcome to the forum!
    Although you would need to backup any essential data first, you could always reset device to "out of box" state by keying in *#7370# on dialler followed by 12345 (default Nokia lock code unless previously altered by yourself); this would revert to version of OVI Maps pre-installed in device firmware.
    Happy to have helped forum with a Support Ratio = 42.5

  • 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

  • Problem with scrambling rules

    Good afternoon, I have a problem with the conversion rules, when I transfer the employee does not take into account any of the scrambling rules, those made by me and with the rules that I copied by CNV_TDMS_HCM_SCRAM transaction. I understand that this conversion is performed in the task to prepare data transfer. Someone can give me an idea that I may fail to do. Somebody has documentation of Scrambling rules? Thanks in advance.
    Manuel Campos

    Thank you, when I execute the program wherever Phase or activity ID that I select, for example PC001_RULES_MAINTAIN
    It shows me this:
    Rules for packege 90042
    Rule Name                     Status         Active
    CNV_MBT_BOP             red              check
    INITIAL                           red             check
    MOVE                            red             check
    01_RVNUM_CK_DGT      red             check
    99_HR_PEVAL2              red             check
    99_PD_SEQ_NR             red             check
    ADDR_SCRAM1             green          check
    SAMP_SCR_DOM          red             check
    SAMP_SCR_FIELD        green          check
    In your package appear something like this?
    I used transaction CNV_TDMS_HCM_SCRAM to prepare and maintain customizing for
    scrambling at project or subproject level. And I made this:
    To use the SAP template, choose Copy from other Project. You can now copy a scramble
    definition. To copy the SAP template, input the following:
    Pack ID: TDHSC
    Project: *
    Subproject: *
    Process Type: R
    Select the "Get from client 000" checkbox .
    You can use a description prefix, for example SAP_, to easily identify elements. For
    example, if you use this prefix and the name of a scramble group in the template is
    HCM_DE_01, then after the copy the name is SAP_HCM_DE_01. This is useful for copying
    in add-on mode into an existing project, because it helps you to determine what was new
    from this copy.
    Then I tried to use this scrambling rules copied, but They doesn´t work.
    Thanks a lot for your help

  • Problem with Settelment Rule for iw32

    Hi,
    Good day guys
    Iam getting the problem while creating the settelment rule creation. Ive got a problem with " wa_srules-SOURCE     = '1' ".
    If i wont fill this field, settelment rule is going to be created. but i need to fill this field as per requirement. 
    Ive got a error message "Enter an Existing source assingment for souce stracutre CS.
    Plz any one guide me, how to overcome this prob
    DATA: srules TYPE srules_ext OCCURS 0,
          wa_srules TYPE srules_ext,
          lv_mandt type SYMANDT.
    DATA IT_OBJNR TYPE STANDARD TABLE OF IONRB WITH HEADER LINE.
    DATA: ls_copadata type BAPI_COPA_DATA occurs 0.
    DATA: ls_cobrb type standard table of cobrb with header line.
    IT_OBJNR-OBJNR = CAUFVD_IMP-OBJNR.
    APPEND IT_OBJNR.
    break-point.
    CALL FUNCTION 'K_SRULE_PRE_READ'
    EXPORTING
       I_PFLEGE               = ' '
    TABLES
       T_SENDER_OBJNR          = IT_OBJNR
    *   T_COBRA                =
    EXCEPTIONS
       WRONG_PARAMETERS       = 1
       OTHERS                 = 2
    CALL FUNCTION 'K_SETTLEMENT_RULE_EXISTENCE'
      EXPORTING
        objnr                = caufvd_imp-objnr
    *   FLG_LOCAL            = ' '
    * IMPORTING
    *   E_COBRA              =
    EXCEPTIONS
       RULE_NOT_FOUND       = 1
       OTHERS               = 2
    CALL FUNCTION 'K_SRULE_CREATE'
    EXPORTING
       i_objnr                   = caufvd_imp-objnr
    *     I_CHECK_ONLY_LOCAL        = ' '
    *   IMPORTING
    *     E_COBRA                   =
    EXCEPTIONS
      rule_already_exists       = 1
      OTHERS                    = 2.
    wa_srules-SOURCE     = '1'.
    wa_srules-settl_type = 'FUL'.
    wa_srules-percentage = '100'.
    *wa_srules-amount     = ''.
    wa_srules-COMP_CODE  = caufvd_imp-bukrs.
    *wa_srules-PROFIT_CTR = caufvd_imp-PRCTR.
    *wa_srules-costcenter = caufvd_imp-kostl.
    wa_srules-costcenter = '10-60'.
    APPEND wa_srules TO srules.
    wa_srules-SOURCE     = '1'.
    wa_srules-settl_type = 'PER'.
    wa_srules-percentage = '100'.
    *wa_srules-amount     = ''.
    wa_srules-COMP_CODE  = caufvd_imp-bukrs.
    *wa_srules-PROFIT_CTR = caufvd_imp-PRCTR.
    *wa_srules-costcenter = caufvd_imp-kostl.
    wa_srules-costcenter = '10-60'.
    APPEND wa_srules TO srules.
    CALL FUNCTION 'K_ORDER_SRULE_ADD'
      EXPORTING
        object_no                  = caufvd_imp-objnr
    * IMPORTING
    *   FLG_RULE_INSERTED          =
      tables
        srules                     = srules
    IF sy-subrc = 0.
      commit work.
    Endif
    Regards
    Edited by: balaji kiran on Mar 26, 2010 10:18 AM

    Hello Vitaliy,
    Nice to "see" you here
    I did try remodelling and it works fine here. A constant value rule really gets a constant value.
    The user exit option also works fine here. Here's an example of a very simple user exit for a KF:
    method IF_RSCNV_EXIT~EXIT.
      FIELD-SYMBOLS: <l_s_old> TYPE ANY,
                     <l_fillfield> TYPE ANY,
                     <l_newfield> TYPE ANY,
                     <fs_kfsource> type any.
    * Assign the references to field symbols
      ASSIGN c_r_newfield->* TO <l_newfield>.
      ASSIGN i_r_old->* TO <l_s_old>.
    * We will use the value of the 0AMOUNT KF. The value of the new KF is 0AMOUNT + 5.
      ASSIGN COMPONENT 'AMOUNT' OF STRUCTURE <l_s_old> TO <fs_kfsource>.
      <l_newfield> = <fs_kfsource> + 5.
    endmethod.
    For a KF, you can check the fields of the FACT Table (/BIx/Fzzzz) to know the field names for your source KFs.
    Hope this helps.

  • JDeveloper Extension Problem with Navigator Elements

    Hi,
    I have a problem with the elements of the JDev Navigator.
    At IDE startup I want to set an overlay for the elements on the active project.
    This function is implemented in the Subversion Extension too.
    How can I access the elements of an active project in the navigator?
    It is not a problem to set an overlay with the ContextMenuListener.
    Thank you for your help.
    Greetings,
    Benjamin Oelenberg

    Please take a look at the Extension SDK sample projects. There is a sample that does exactly this.
    Install the Extension SDK from the Help --> Check for Updates dialog and after restart, say yes to installing the sample projects.

  • Re: problem getting navigation rules to work

    Hello,
    I am using EA4, JDK1.4.2, Tomcat 4.1.24, under Solaris 8.
    When I click on the buttons, I always go back to the original page (EmailLookup.jsp) rather than following the navigation rules.
    I print to a file when invoke in Action is called, in my classes, so I know that when I click on the search or clear buttons that the correct action is being ran, through my properties.
    I don't know why this is not working, and would appreciate some help.
    <navigation-rule>
    <from-tree-id>/EmailLookup.jsp</from-tree-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <from-action-ref>EmailSearchModel.searchAction</from-action-ref>
    <to-tree-id>/response.jsp</to-tree-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>reset</from-outcome>
    <from-action-ref>EmailSearchModel.resetAction</from-action-ref>
    <to-tree-id>/index.html</to-tree-id>
    </navigation-case>
    </navigation-rule>
    resetAction = new Action() {
    public String invoke() {
    reset();
    try {
    java.io.FileOutputStream fos =
    new java.io.FileOutputStream("/usr/local/apps/tomcat/webapps/EmailLookup/debugtemp.txt", true);
    fos.write(new String("Inside getResetAction\n\n").getBytes());
    fos.write(new String("reset\n\n").getBytes());
    fos.close();
    } catch(Exception e) {
    return "reset";
    searchAction = new Action() {
    public String invoke() {
    try {
    java.io.FileOutputStream fos =
    new java.io.FileOutputStream("/usr/local/apps/tomcat/webapps/EmailLookup/debugtemp.txt", true);
    fos.write(new String("Inside getSearchAction\n\n").getBytes());
    fos.write(new String("success\n\n").getBytes());
    fos.close();
    } catch(Exception e) {
    return "success";
    <h:command_button label="Search"
    commandName="submit" actionRef="EmailSearchModel.searchAction" />
    <h:command_button label="Clear"
    commandName="reset" actionRef="EmailSearchModel.resetAction" />
    Thank you.

    Problem solved, it ended up being that the directory name was the same as the first JSP page, it appears.
    My directory was EmailLookup, and since the JSP page was EmailLookup.jsp, and EmailLookup was referenced in the faces-config.xml file, there was confusion.
    I changed the directory name to DirectorySearch, and it works fine.

  • 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

Maybe you are looking for

  • Changing memory modules in Satellite M30X-165

    The Notebook has two memory modules with 512 MB each module. I have received a used 1 GB module. Can I remove one of the 512 MB modules and install the 1 GB module to get total 1,5 GB RAM or need both modules the same memory size?

  • How to delay creation of VideoDisplay

    My Flex' app reads an xml with different video-source-url's. On the same time the VideoDisplay is created. But it does not have the url for the VideoDisplay source property because parsing is taking to long. How can I delay the creation of the VideoD

  • Can't print small documents

    I have three printers a Color LazerJet CM2320 MFP Series PCL6, a DeskJet 9800 and a OfficeJet 7400.  I am trying to print RSVP cards for my daughter's wedding and they are getting stuck in all three printers.  The cards are 3.1/2 X 4.7/8 inches.  Is

  • I want Safari 4 Public Beta back.

    I know the Beta version was for testing, but I liked my tabs on top of the window! I just ran Software Update, but shouldn't have installed the new version of Safari! It was fine (except I had to reach for the corner of each tab to drag, but I got us

  • Method of Synchronization between XE and Enterprise (Offline)

    Hi, We have two DB servers hosted in two locations which has 10g XE and 10g Enterprise. These sites will be connected in dial-up lines only when needed to synchronize (from XE to Enterprise). Please can anyone tell me what is the best method we can d