[jboss-user] [JBoss Seam] - Re: Calling the same method on different beans from the same

kummer do-not-reply at jboss.com
Mon Jan 7 03:55:29 EST 2008


Here are the files (cut down, but still showing the error).

The application template:


  | <?xml version="1.0" encoding="ISO-8859-1"?>
  | <!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:s="http://jboss.com/products/seam/taglib"
  | 	  xmlns:f="http://java.sun.com/jsf/core"
  | 	  xmlns:h="http://java.sun.com/jsf/html">
  | 	<head>
  | 		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  | 	</head>
  | 	<body>
  |         <ui:insert name="content"/>
  | 	</body>
  | </html>
  | 

The including XHTML:


  | <?xml version="1.0" encoding="ISO-8859-1"?>
  | <!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"
  |         xmlns:c="http://java.sun.com/jstl/core">
  | 
  | 
  | 	<ui:define name="content">
  |         <c:set var="orderBaseDisabled" value="#{true}"/>
  | 		<ui:include src="/orderBase.xhtml"/>
  |    	    <s:div rendered="#{manager.orderTableAspect.rendered.orderTable}">
  |    		    <ui:include src="/orderTable.xhtml">
  |    		      <ui:param name="orderManager" value="#{auditOrderManager}"/>
  |    		    </ui:include>
  | 			<s:button 
  | 			    value="Abbrechen" 
  | 			    action="#{auditOrderManager.doCancel}" styleClass="Button"/>
  |         </s:div>
  |         
  | 	</ui:define>
  | 	
  | </ui:composition>
  | 


The included XHTML:


  | <?xml version="1.0" encoding="ISO-8859-1"?>
  | <!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:c="http://java.sun.com/jstl/core"
  | 	xmlns:s="http://jboss.com/products/seam/taglib">
  | 	<p>test output orderManager: #{orderManager}</p>
  | 		<s:div id="orderTable" rendered="#{orderManager.orderTableAspect.rendered.orderTable}">
  | 			<h:dataTable var="order" value="#{orders}">
  | 				<h:column><f:facet name="header">Ta-Nr</f:facet><s:link value="-" action="#{orderManager.doSelectOrder}"/></h:column>
  | 			</h:dataTable>
  | 		</s:div>
  | 		
  | </ui:composition>
  | 

The line

<p>test output orderManager: #{orderManager}</p>

in the included file produces

anonymous wrote : test output orderManager: AuditOrderManagerBean:an3e3x-aslh4y-fb2c7qhq-1-fb4rpdvp-12

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

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



More information about the jboss-user mailing list