Navegation is not working if the page has any :

   <jsp:include ....>

only if the page to be include is 100% html.

using myfaces 1.1.5 and 1.1.6 snapshot.
tomahawk 1.1.5




Jan-Kees van Andel escribió:
I suggest putting a <h:messages /> tag in your form. Probably a Validator,
Converter or Managed Bean setter is failing, causing the lifecycle to go to
phase 6 (render response). The messages tag could give some feedback.

Jan-Kees

-----Oorspronkelijk bericht-----
Van: Carlos Ortiz [mailto:[EMAIL PROTECTED] Verzonden: donderdag 17 mei 2007 17:21
Aan: MyFaces Discussion
Onderwerp: A Problem With Navegation

When i debug the method call be action is never call(ecplise wtp and Netbeans)

using Tomahawk and Myfaces (1.1.5)

the code method Code is:


    public String logon(){
Pattern p = Pattern.compile("[EMAIL PROTECTED]");
          Matcher m = p.matcher(usrName);
if(m.find()){ usr= Bootstrap.getIWAPI().getSecuMnrg().webUserAuthentification(usrName, MD5.encriptar(usrPass));
              usrPass="";
          }else{
usr=Bootstrap.getIWAPI().getSecuMnrg().userAuthentification(usrName, usrPass);
              usrPass="";
          }
          if(usr==null){
              isLoged= false;
              return "NOTFOUND";
          }
          else{
              isLoged=true;
              return "FOUND";
          }
    }

the jsf code:

<f:subview id="securityMenu" >
                                <h:form id="frmLogin" enctype=""  >
<p>Username:&nbsp; <t:inputText styleClass="textinlog" id="txt_UserName" forceId="true" value="#{logingBean.usrName}" />
                                                &nbsp; Password:&nbsp;
<t:inputSecret styleClass="textinlog" id="txt_PassName" forceId="true" value="#{logingBean.usrPass}" />
                                                &nbsp;
<t:commandButton action="#{logingBean.logon}" value="Login" />
                                            </p>
</h:form>
                                </f:subview>





the navegation Rules:

<navigation-rule>
<from-view-id>/inc/Header.inc.jsp</from-view-id> <navigation-case>
      <from-outcome>NOTFOUND</from-outcome>
      <to-view-id>/login.jsf</to-view-id>
      <redirect />
    </navigation-case>
     <navigation-case>
      <from-outcome>dummy</from-outcome>
      <to-view-id>www.google.co.cr</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>
<navigation-rule>
<from-view-id>/inc/Header.inc.jsf</from-view-id> <navigation-case>
      <from-outcome>NOTFOUND</from-outcome>
      <to-view-id>/login.jsf</to-view-id>
      <redirect />
    </navigation-case>
     <navigation-case>
      <from-outcome>dummy</from-outcome>
      <to-view-id>www.google.co.cr</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>
<navigation-rule> <from-view-id>/sales.jsp</from-view-id> <navigation-case>
      <from-outcome>NOTFOUND</from-outcome>
      <to-view-id>/login.jsf</to-view-id>
      <redirect />
    </navigation-case>
     <navigation-case>
      <from-outcome>dummy</from-outcome>
      <to-view-id>www.google.co.cr</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>
<navigation-rule> <from-view-id>/sales.jsf</from-view-id> <navigation-case>
      <from-outcome>NOTFOUND</from-outcome>
      <to-view-id>/login.jsf</to-view-id>
      <redirect />
    </navigation-case>
      <navigation-case>
      <from-outcome>dummy</from-outcome>
      <to-view-id>www.google.co.cr</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

none of thoses work...
im just getting a page reload.,dont call the method any idea

Carlos Ortiz
pd
FOUND does not have navegation case but the reload on success is the idea.

thx

Reply via email to