• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to target result Page in to tab panel.

Vikas Taank
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends , I am new to JSF so it may be a trivial doubt also.

I have one main.jsp
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/sjx.css">
<body class="bodystylemain">
<rich:spacer height="20px"></rich:spacer>

<h anelGrid id="mainpanel" columns="2">
<rich:spacer width="190px"></rich:spacer>
<h anelGrid id="headernav" columns="5">
<rich:spacer width="600px"></rich:spacer>
<h utputText value="Welcome" styleClass="headertext"></h utputText>
<h utputText value="#{saveUserBean.user.email}" styleClass="headertext"></h utputText>
<h:graphicImage url="images/bar.gif"></h:graphicImage>
<h:commandLink value="Logout" action="#{saveUserBean.logout}" styleClass="headertext"></h:commandLink>
</h anelGrid>
</h anelGrid>
<rich:spacer height="200px"></rich:spacer>
<h anelGrid id="contentpanel" columns="2">
<rich:spacer width="100px"></rich:spacer>
<rich:tabPanel switchType="server" height="300px" width="1000px" tabClass="tabs" contentClass="tabcontent" headerAlignment="right" >
<rich:tab label="About Us" id="aboutus">
<jsp:include page="include/aboutus.jsp"></jsp:include>
<rich:tab label="Counselor Corner" id="counselor">
<h utputText value="If you have any query , Please write to us , Our experts are here to advise you"></h utputText>
<jsp:include page="include/inquiryform.jsp"></jsp:include>
<rich:tab label="Exchange" id="exchange">
Here is tab #3
</h anelGrid>
<jsp:include page="include/footer.jsp"></jsp:include>



I have three tabs in that. I have one form in one tab.
When i do the submit from that tab , my result page is displayed.
The problem is I want my result page to be displayed in the same Tab container from which then form was submitted. What kind of navigation rule i need to give in faces config for this functionality.
The navigation rule is as follows:

the result page is coming but it is coming as a different page and not loading in the tab itself.
Help will be appreciated.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic