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:
<t:inputText
styleClass="textinlog" id="txt_UserName" forceId="true"
value="#{logingBean.usrName}" />
Password:
<t:inputSecret
styleClass="textinlog" id="txt_PassName" forceId="true"
value="#{logingBean.usrPass}" />
<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