File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Problem: Embedd JSF into JSF page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem: Embedd JSF into JSF page" Watch "Problem: Embedd JSF into JSF page" New topic

Problem: Embedd JSF into JSF page

Minal Kapoor

Joined: Feb 18, 2008
Posts: 1
I am trying to embedd JSF pages into a JSF page .

Problem 1:

<%@ taglib uri="" prefix="h"%>

<%@ taglib uri="" prefix="f"%>

<%@ taglib uri="" prefix="tr"%>

<%@ taglib uri="" prefix="trh" %>







Template text from try1

<hutputText value="Enter your name below"/><br><br>

<h:inputText id="ab11" value="#{MessageBean.testValue}" required="true"/>

<h:message for="ab11" /><br><br>

<tr:commandButton action="#{}" rendered="true" partialSubmit="true" immediate="true" actionListener="#{MessageBean.actionEvent}" /><br><br><br>

<hutputText value="Inside main Page"/>

<jsp:include page="/try2.jsp" />




<%@ taglib uri="" prefix="h"%>

<%@ taglib uri="" prefix="f"%>

<f:subview id="test" rendered="true">

<hutputLabel value="Hi"/>


My Managed BEan is:

package test;

import javax.faces.event.ActionEvent;

public class MessageBean {

private String testValue;

/** Creates a new instance of MessageBean */

public MessageBean() {


public String getTestValue() {

return testValue;


public void setTestValue(String testValue) {

this.testValue = testValue;


public String click(){

System.out.println("Yahoo yaha aa gaya....!");

return null;


public void actionEvent(ActionEvent ev){

System.out.println("Yahoo yaha aa gaya....!");



Whats wrong with this code???

My command button in try1.jsp does not work...

after including try2.jsp.

i.e jsf page does not post back to the server...

What to do???

Any one please help???
I agree. Here's the link:
subject: Problem: Embedd JSF into JSF page
jQuery in Action, 3rd edition