[jboss-user] [JBoss Seam] - Re: Partial page rendering

shasho do-not-reply at jboss.com
Thu Aug 31 03:58:24 EDT 2006


I am using Facelete thus the template with frames need to look something like that (file name templateTest.xhtml)  


  | <!DOCTYPE html PUBLIC
  | "-//W3C//DTD XHTML 1.0 Frameset//EN"
  | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  | <html>
  | <head>
  | 	<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
  | 	<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
  | 	<script type="text/javascript" src="js/common.js"></script>
  | </head>
  | 
  | <frameset rows="235px,*" border="0" frameborder="0" framespacing="0">
  | <frame  frameborder="0" scrolling="no" noresize="-1" src="frameUp.seam"/>
  | <frame  frameborder="0" scrolling="no" noresize="-1"  src="frameDown.seam"/>
  | </frameset>
  | 
  | </html>
  | 

In the non frame version I had in the template <ui:insert name="MainContent"/> tags. Becouse of the above structure I need to move it to frameDown.seam file. Now my MainPage.xhtml looks like this

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  | <ui:composition xmlns="http://www.w3.org/1999/xhtml"
  | 	    		xmlns:ui="http://java.sun.com/jsf/facelets"
  | 	  			xmlns:h="http://java.sun.com/jsf/html"
  | 	  			xmlns:f="http://java.sun.com/jsf/core"
  | 	  			xmlns:s="http://jboss.com/products/seam/taglib"
  | 				template="templateTest.xhtml">
  | 
  | 	<ui:define name="MainContent">
  |            Some Text....
  |         </ui:define>
  | </ui:composition>
  | 

The ui:define doesn't insert the "Some Text...." probably because MainContent is defined in frameDown.seam instead in templateTest.xhtml


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968563#3968563

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968563



More information about the jboss-user mailing list