• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsf tiles problem  RSS feed

 
Rehana Shaik
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to jsf and trying to integrate tiles with jsf. everything went fine with normal html tags in a table, but when i started changing html tags in jsf tags (command links) these links r not displayed in that table .These links r adding on top of my template html page.

My template page

--------------Layout.jsp-----------------
<BODY><hx:scriptCollector id="scriptCollector1">
<table>
one image inside tr
<tr><td>my link</td>(this where i am getting problem if i add jsf commandlink instead of normal anchor tag)
<hx:scriptCollector>
</body>

My tiles template page
----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf agecode language="java" location="/JavaSource/pagecode/layout/LayoutTemplate.java" --%><%-- /jsf agecode --%>
<HTML>
<HEAD>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.ibm.com/jsf/BrowserFramework" prefix="odc"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../../css/r1.css" rel="stylesheet" type="text/css">
<TITLE>LayoutTemplate.jsp</TITLE>
</HEAD>

<f:facet name="header">
<f:subview id="header">


<tiles:insert attribute="header" flush="false"></tiles:insert>


</f:subview>
</f:facet>

</HTML>
-----------------------------

my actual page which is including tile page

------------------------------------------


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf agecode language="java" location="/JavaSource/pagecode/jsp/layout/Sampe1.java" --%><%-- /jsf agecode --%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<HTML>
<HEAD>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.ibm.com/jsf/BrowserFramework" prefix="odc"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../../css/r1.css" rel="stylesheet" type="text/css">
<TITLE>Sampe1.jsp</TITLE>
<LINK rel="stylesheet" type="text/css" href="../../theme/stylesheet.css"
title="Style">
</HEAD>

<f:view>
<BODY><hx:scriptCollector id="scriptCollector1">



<h:form styleClass="form" id="form2">
<f:subview id="header">
<tiles:insert definition="Layout" flush="false" />
</f:subview>
</h:form>
</hx:scriptCollector></BODY>
</f:view>
</HTML>


Please help me to find out what is going wrong


Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!