jsf navigation rule

jsf navigation rule

View Answers

October 21, 2008 at 3:25 PM

Hi friend,


Yes faces-config.xml having more then one navigation rules.

Plz give full details and full source code to solve the problem.


For more information on JSF visit to :

http://www.roseindia.net/jsf/

Thanks

October 21, 2008 at 3:46 PM

here is the code:
admin.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>Users</title>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%" >
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr>

<td>
<h:form>
<h:commandLink id="link1" value="Add Users." action="addusers" /><br></br>
<h:commandLink id="link2" value="AddField Users." action="addfieldusers" /><br></br>
</h:form>
</td>
</tr>

<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;Users</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="Name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmpId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="MobileNo" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr >
<td align="center" colspan="2">

<h:form >
<h:commandButton value="submitt" action="" styleClass="button" />
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>

<tr><td class="mainbgbar" colspan="2" height="20" align="center"></td>
</tr>

</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addusers.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />

</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%" >
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddUsers</b></td>
</tr>






<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="empId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="emailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addfielduser.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddFieldUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />


</head>
<body>
<h:form>
<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddFieldUsers</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="name" value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="mobileno" value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>

<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->
</h:form>
</body>
</html>
</f:view>
Hello.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>


<f:view>
<html>
<head><title>Hello World!</title></head>
<body>
<h:form>
<h3>Hello,<h:outputText value="#{SimpleLogin.name}" /></h3>
<h:commandLink id="Cancel"action="login"immediate="true">
<h:outputText value="Cancel"/>
</h:commandLink>
</h:form>
</body>
</html>
</f:view>


faces-config.xml:

<?xml version="1.0"?>
<faces-config>
<managed-bean>
<managed-bean-name>StoreNameBean</managed-bean-name>
<managed-bean-class>PersonBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/admin.jsp</from-view-id>
<navigation-case>
<from-outcome>addusers</from-outcome>
<to-view-id>/pages/addusers.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>addfieldusers</from-outcome>
<to-view-id>/pages/addfieldusers.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addFieldusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>

</navigation-rule>
</faces-config>

PersonBean.java

public class PersonBean {
String name;
String empid;
String emailId;
String mobileno;
String username;
String password;
public String getEmailId() {
return emailId;
}
public void setEmailId(String emailId) {
this.emailId = emailId;
}
public String getEmpid() {
return empid;
}
public void setEmpid(String empid) {
this.empid = empid;
}
public String getMobileno() {
return mobileno;
}
public void setMobileno(String mobileno) {
this.mobileno = mobileno;
}
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 getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}

}
Navigation starts from admin.jsp,then it goes to addusers.jsp(if click addusers link) otherwise it goes to addfieldusers.jsp(if click addfieldusers link).Upto here it is working perfectly but the proble is after submitting the form it is not going to hello.jsp.it displaying the samw page.
give the solution i need urgently.
Thanks in advance.














October 21, 2008 at 3:47 PM

here is the code:
admin.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>Users</title>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%" >
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr>

<td>
<h:form>
<h:commandLink id="link1" value="Add Users." action="addusers" /><br></br>
<h:commandLink id="link2" value="AddField Users." action="addfieldusers" /><br></br>
</h:form>
</td>
</tr>

<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;Users</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="Name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmpId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="MobileNo" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr >
<td align="center" colspan="2">

<h:form >
<h:commandButton value="submitt" action="" styleClass="button" />
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>

<tr><td class="mainbgbar" colspan="2" height="20" align="center"></td>
</tr>

</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addusers.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />

</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%" >
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddUsers</b></td>
</tr>






<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="empId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="emailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addfielduser.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddFieldUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />


</head>
<body>
<h:form>
<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddFieldUsers</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="name" value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="mobileno" value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>

<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->
</h:form>
</body>
</html>
</f:view>
Hello.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>


<f:view>
<html>
<head><title>Hello World!</title></head>
<body>
<h:form>
<h3>Hello,<h:outputText value="#{SimpleLogin.name}" /></h3>
<h:commandLink id="Cancel"action="login"immediate="true">
<h:outputText value="Cancel"/>
</h:commandLink>
</h:form>
</body>
</html>
</f:view>


faces-config.xml:

<?xml version="1.0"?>
<faces-config>
<managed-bean>
<managed-bean-name>StoreNameBean</managed-bean-name>
<managed-bean-class>PersonBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/admin.jsp</from-view-id>
<navigation-case>
<from-outcome>addusers</from-outcome>
<to-view-id>/pages/addusers.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>addfieldusers</from-outcome>
<to-view-id>/pages/addfieldusers.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addFieldusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>

</navigation-rule>
</faces-config>

PersonBean.java

public class PersonBean {
String name;
String empid;
String emailId;
String mobileno;
String username;
String password;
public String getEmailId() {
return emailId;
}
public void setEmailId(String emailId) {
this.emailId = emailId;
}
public String getEmpid() {
return empid;
}
public void setEmpid(String empid) {
this.empid = empid;
}
public String getMobileno() {
return mobileno;
}
public void setMobileno(String mobileno) {
this.mobileno = mobileno;
}
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 getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}

}
Navigation starts from admin.jsp,then it goes to addusers.jsp(if click addusers link) otherwise it goes to addfieldusers.jsp(if click addfieldusers link).Upto here it is working perfectly but the proble is after submitting the form it is not going to hello.jsp.it displaying the samw page.
give the solution i need urgently.
Thanks in advance.





















Related Tutorials/Questions & Answers:
jsf navigation rule - Java Server Faces Questions
jsf navigation rule  Hi sir, here is the code: give me solution...) { this.username = username; } } Navigation starts from admin.jsp,then it goes..." go to "Hello.jsp" For more information on JSF visit to : http
jsf navigation rule - Java Server Faces Questions
jsf navigation rule  hi, i have one jsf page admin.jsp in that 2 commandlinks are there,they are addusers,addfieldusers for this navigation in faces... given.This is my application.Upto addusers i understand the navigation,then how
Advertisements
JSF Navigation By Example
JSF Navigation By Example     .... This section illustrates you about the JSF navigation by providing the example... how navigation of pages works in JSF. For showing the main purpose you have
JSF Global Navigation Example
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix...;Navigation Page</title></head> <body> <h1>
jsf command link navigation case - Java Server Faces Questions
jsf command link navigation case  Hi, in my jsf page i have 2 commandlink tags,then how to write navigation case in faces config.xml tell me as soon... in JSF : "navigation case in faces-config.xml
Adding Navigation in JSF Application
Adding Navigation in JSF Application   ... navigation in the JSF framework is controlled by the faces-config.xml.... in the file and choose JavaServer Faces > Add Navigation Rule. Type /login.jsp
Declare the Navigation Rules
Declare the Navigation Rules  How to declare the Navigation Rules for JSF
JSF
JSF  What is JSF
JSF SESSION - Java Server Faces Questions
navigation rule and used backing bean.can anybody tell me whats the problem...JSF SESSION  i am facing problem to store and retrive textbox values in session variable in jsf, i want to store textbox value in bean as well
JSF
JSF  In what way JSF makes the difference between Applets?? After reading this article I understood instead of using Request and response, we... and embed that into applets also rite.. Do u mean JSF also does the same internally
JSF Static Navigation Example
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix...;Navigation Page</title></head> <body> <h1>
JSF Forms - Developing form based application
-bean>   Writing the navigation rule Open the faces-config.xml and add the following code to define the navigation rule: <...JSF Forms - Developing form based application   
Action attribute in Jsf framework - Development process
2) navigation-rule...Action attribute in Jsf framework  There will be one welcome.jsp... on to details.jsp for this the outcome of the navigation case should be equal
JSF Training
managed bean in configuration file Define a navigation rule in configuration file... JSF Training     JSF... on the client. JSF technology simplifies the programming and offers lots of reusable
ModuleNotFoundError: No module named 'rule'
ModuleNotFoundError: No module named 'rule'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'rule' How to remove the ModuleNotFoundError: No module named 'rule' error
ModuleNotFoundError: No module named 'rule'
ModuleNotFoundError: No module named 'rule'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'rule' How to remove the ModuleNotFoundError: No module named 'rule' error
JSF architecture
JSF architecture  What is JSF architecture
Roseindia JSF Tutorial
Hello Application JSF Navigation Example JSF Static Navigation Example JSF...Roseindia provides you an extensive range of tutorials on JSF with complete source code available for the learners at single place. Roseindia JSF Tutorials
pull-down navigation menus
pull-down navigation menus  How can I use forms for pull-down navigation menus
jsf attribute
jsf attribute  What is the different between value and binding attribute of jsf
ModuleNotFoundError: No module named 'navigation'
ModuleNotFoundError: No module named 'navigation'  Hi, My Python... 'navigation' How to remove the ModuleNotFoundError: No module named 'navigation' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'navigation'
ModuleNotFoundError: No module named 'navigation'  Hi, My Python... 'navigation' How to remove the ModuleNotFoundError: No module named 'navigation' error? Thanks   Hi, In your python environment you
UINavigationController hide navigation bar
UINavigationController hide navigation bar  HI, How to hide the navigation bar of UINavigationController? I have to hide navigation bar... code for hiding UINavigationController's navigation bar
navigation system in j2me
navigation system in j2me  how to load map image for offline navigation system?plz send the source code in j2me
JSF Tutorial
JSF Tutorial  plz provide the jsf complete tutorial  Hi, We have lot's of JSF tutorials. Please read it at [http://roseindia.net/jsf/][1] Thanks [1]: http://roseindia.net/jsf/  The link is http
Advantages of JSF
Advantages of JSF  What are the advantages of JSF
Implementations of JSF
Implementations of JSF  What are the available implementations of JSF
navigation item back button
navigation item back button  I wants to add a navigationBar on the top of my UIWebView also a navigation item "back button". can anyone please explain how the back and refresh button works
JSF framework
JSF framework  hi Can I use Jdeveloper to learn JSF framework? thanks Sangeetha
jsf session
jsf session  How to maintain session in jsf login application?   Please visit the following links: http://www.roseindia.net/jsf/richfaces/creating-managed-bean.shtml http://www.roseindia.net/jsf/RememberMeLogin.shtml
jsf session
jsf session  How to maintain session in jsf login application?   Please visit the following links: http://www.roseindia.net/jsf/richfaces/creating-managed-bean.shtml http://www.roseindia.net/jsf/RememberMeLogin.shtml
JSF Tutorial
JSF Tutorial  I am novice to JSF Programming. And want to learn the Java Server Faces (JSF) technology online. So, could you please list down few helpful JSF Tutorials. Also, which is the latest version of Java Server Faces (JSF
Simple JSF Hello Application
a navigation rule in configuration file Run the application To understand... navigation rule :ADS_TO_REPLACE_13 Now we will understand how navigation from... will be displayed is determined by the navigation rule defined in faces-config.xml
JSF code
need jsf code that will populate combo box values from the database  Hi, i'm new on JSf,I need jsf code that will populate combo box values from the database when the form runs
Java Server Faces (JSF) Tutorials
JSF Tutorials Java Server Faces (JSF) is a web application based on Java... application development through integration of web-based user interfaces. JSF... through the Java Community Process. The initial specification of JSF was released
custom navigation bar in iphone
custom navigation bar in iphone  How can i create a custom navigation bar in iPhone application? I wanted to add UIBarButton items as well as Search bar on the UINavigation controller ... please tell me if i need to create
What is the Goldilocks rule of AI?
What is the Goldilocks rule of AI?  Hi, I am beginner in Data... is the Goldilocks rule of AI? Try to provide me good examples or tutorials links so that I can learn the topic "What is the Goldilocks rule of AI?"
Will robots rule the world in future?
Will robots rule the world in future?  Hi, I am beginner in Data...: Will robots rule the world in future? Try to provide me good examples or tutorials links so that I can learn the topic "Will robots rule the world
Horizontal Rule Attribute in HTML
Horizontal Rule Attribute in HTML        We already know with Horizontal Rule in HTML page. The Horizontal Rule attribute is same as horizontal rule, but only
ModuleNotFoundError: No module named 'rule-engine'
ModuleNotFoundError: No module named 'rule-engine'  Hi, My Python... 'rule-engine' How to remove the ModuleNotFoundError: No module named 'rule-engine' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'rule_n'
ModuleNotFoundError: No module named 'rule_n'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'rule_n' How to remove the ModuleNotFoundError: No module named 'rule_n'
ModuleNotFoundError: No module named 'rule-spider'
ModuleNotFoundError: No module named 'rule-spider'  Hi, My Python... 'rule-spider' How to remove the ModuleNotFoundError: No module named 'rule-spider' error? Thanks   Hi, In your python environment
JSF Related
JSF Related  In what way JSF makes the difference between Applets?? After reading this article I understood instead of using Request and response, we... and embed that into applets also rite.. Do u mean JSF also does the same
JSF - Framework
JSF  Can any one please provide me with code to create widget in JSF using - IBM JSF Widget Library (JWL). Thank you for your Help
JSF Tutorials: Easy steps to learn JSF
JSF Tutorials: Easy steps to learn JSF JavaServer Faces or JSF is a web... interfaces for web applications. Moreover, JSF simplifies the web application development through integration of web-based user interfaces. Presently, JSF
JSF+Filter
JSF+Filter  What is the meaning of the tags: avoid-urls for filter configurations in web.xml.
JSF Tutorial For Beginners
JSF Tutorial For Beginners In this section you will learn about the JSF framework. This section describes all the aspects of JSF in such a way that a user who wants to start reading JSF and they wants to make their carrier in JSF
JSF Examples
of items.   Some Miscellaneous Examples Of JSF JSF Navigation Example...JSF Examples In this section we will discuss about various examples of JSF. This section describes some important examples of JSF which will help you
JSF - Framework
information : http://www.roseindia.net/jsf/SimpleHelloByEnteringName.shtml http://www.roseindia.net/jsf/richfaces/creating-managed-bean.shtml Thanks
Jsf biggener
Jsf biggener  hi friends, am new to jsf,i got an exception while...;Hi Friend, Please visit the following links: JSF TutorialsADS_TO_REPLACE_4 JSF-NetBeans Tutorials Thanks

Ads