[jboss-user] [JBoss Seam] - Facelets with frames

skumar_tvm do-not-reply at jboss.com
Thu Jun 14 07:51:46 EDT 2007


Hi ,
     Can anybody tell me is it possible to use frames in facelets application? 
I have been trying this for last 2 days but i am not able to make it work.

I am calling body.xhtml thru frameset but it is not getting displayed in UI.

Please look at the sample code is given below

listing.xhtml

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html 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:a="http://www.arc-mind.com/jsf">


<ui:composition template="/WEB-INF/layout/layout.xhtml">
  <ui:define name="title">Backend Listing</ui:define>
  <ui:define name="content">
	<h:form>
			
			
				
				
			
			<h:commandLink action="#{CDManagerBean.addNew}">
						<f:verbatim>Add CD</f:verbatim>
			</h:commandLink>
			 
		</h:form>
	  </ui:define>
	</ui:composition>


body.xhtml is given below..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html 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:a="http://www.arc-mind.com/jsf">

	<h:form>
		<h:dataTable id="items" value="#{CDManagerBean.cds}" var="cd"
			rowClasses="oddRow, evenRow" headerClass="tableHeader">
			
			<a:column entity="${cd}" fieldName="title" backingBean="${CDManagerBean}"/>
			<a:column entity="${cd}" fieldName="artist" backingBean="${CDManagerBean}"/>
			<a:column entity="${cd}" fieldName="price" backingBean="${CDManagerBean}"
					  sort="${false}"/>
			<a:columnCommand label="Edit" action="editCD" backingBean="${CDManagerBean}"/>

		</h:dataTable>

		
		<h:commandLink action="#{CDManagerBean.addNew}">
			<f:verbatim>Add CD</f:verbatim>
		</h:commandLink>

	</h:form>
  


Thanks in advance
Regards,
Saravanan.

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

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



More information about the jboss-user mailing list