[jboss-user] [JBoss Seam] - Re: begin-conversation in Seam2 prevents data load

damianharvey do-not-reply at jboss.com
Sun Aug 5 18:16:41 EDT 2007


Ah, it works if I use Seam from CVS. Should have tried that earlier I suppose, but I still can't see why it doesn't work against the downloaded Seam 2.0.0.BETA. Here is the patch:

  | ### Eclipse Workspace Patch 1.0
  | #P jboss-seam
  | Index: examples/ui/resources/import.sql
  | ===================================================================
  | RCS file: /cvsroot/jboss/jboss-seam/examples/ui/resources/import.sql,v
  | retrieving revision 1.6
  | diff -u -r1.6 import.sql
  | --- examples/ui/resources/import.sql	13 Jun 2007 23:49:05 -0000	1.6
  | +++ examples/ui/resources/import.sql	5 Aug 2007 22:15:35 -0000
  | @@ -1,4 +1,6 @@
  |  insert into person (name, age, hobbies) values ('Peter Muir', 25, '/works on Seam/, *of course*');
  | +insert into person (name, age, hobbies) values ('Damian Harvey', 99, '/quite likes using Seam/, *of course*');
  | +
  |  insert into continent(name) values('North America');
  |  insert into continent(name) values('South America');
  |  insert into continent(name) values('Australasia');
  | Index: examples/ui/resources/WEB-INF/components.xml
  | ===================================================================
  | RCS file: /cvsroot/jboss/jboss-seam/examples/ui/resources/WEB-INF/components.xml,v
  | retrieving revision 1.9
  | diff -u -r1.9 components.xml
  | --- examples/ui/resources/WEB-INF/components.xml	1 Aug 2007 11:49:57 -0000	1.9
  | +++ examples/ui/resources/WEB-INF/components.xml	5 Aug 2007 22:15:35 -0000
  | @@ -19,7 +19,9 @@
  |      
  |      <framework:entity-query name="continents" ejbql="select c from Continent c" />
  |       
  | -    <framework:entity-home name="personHome" entity-class="org.jboss.seam.example.ui.Person" />
  | +    <framework:entity-home name="personHome" entity-class="org.jboss.seam.example.ui.Person">
  | +	    <framework:id>#{personId}</framework:id>
  | +	</framework:entity-home>
  |      
  |      <framework:entity-query name="colours" ejbql="select c from Colour c" />
  |      
  | Index: examples/ui/view/selectItems.xhtml
  | ===================================================================
  | RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/selectItems.xhtml,v
  | retrieving revision 1.20
  | diff -u -r1.20 selectItems.xhtml
  | --- examples/ui/view/selectItems.xhtml	29 Jun 2007 16:43:46 -0000	1.20
  | +++ examples/ui/view/selectItems.xhtml	5 Aug 2007 22:15:35 -0000
  | @@ -22,6 +22,19 @@
  |  	<p><s:link view="/continents.xhtml" value="Edit the continent/country relationship." /></p>
  |  
  |  	<h:form>
  | +		<s:link view="/selectItems.xhtml" action="#{personHome.find}" value="Load Pete">
  | +			<f:param name="personId" value="1"/>
  | +		</s:link>
  | +		<br/>
  | +		<s:link view="/selectItems.xhtml" action="#{personHome.find}" value="Load Damian">
  | +			<f:param name="personId" value="2"/>
  | +		</s:link>
  | +	
  | +		<s:decorate template="decorateField.xhtml">
  | +			<ui:define name="label">ID</ui:define>
  | +			#{person.id}
  | +		</s:decorate>		
  | +
  |  		<s:decorate template="decorateField.xhtml">
  |  			<ui:define name="label">Title</ui:define>
  |  			<h:selectOneMenu value="#{person.honorific}">
  | 

Cheers,

Damian.

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

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



More information about the jboss-user mailing list