[jboss-user] [JBoss Seam] - Re: Complete, working Example-Implementation for EntityHome

2007-05-22 Thread anarinsky
Dear Gaven, Seam-gen allows one to quickly generate a lot of functionalities. However, EntityHome objects are used instead of session beans. The only available example for using EntityHome objects is seampay, but this example is not described in the documentation or available books.

[jboss-user] [JBoss Seam] - Re: ClassCastException with @DataModel

2007-05-05 Thread anarinsky
I have the same problem. Did you find a solution? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043457#4043457 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043457 ___

[jboss-user] [JBoss Seam] - @PersistenceUnit in error: EMPTY STRING unitName

2007-04-20 Thread anarinsky
I am trying to use TestNG in my application. When I included resources into the application classpath I received the following exception: java.lang.RuntimeException: Field private javax.persistence.EntityManager com.scea.sp8.ProjectAddBean.em @PersistenceUnit in error: EMPTY STRING unitName

[jboss-user] [JBoss Seam] - Optimal methodology for Seam ?should we use seam-gen and Ent

2007-04-18 Thread anarinsky
Please look at http://blog.hibernate.org/cgi-bin/blosxom.cgi. Gavin King recommends using seam-gen. It gives enormous speed and very helpful but we are attached to EntityHome for creating, persisting and removing objects. In contrast all described examples use session beans for this

[jboss-user] [JBoss Seam] - Problems in Running the Seam examples in JBoss using the JSF

2007-04-11 Thread anarinsky
The seam manual contains instruction about running the Seam examples in JBoss using the JSF 1.2 RI. The conversion of the booking example works fine. However, the same conversion for the registration and numberguess examples does not work for some reason. The message is The requested

[jboss-user] [JBoss Seam] - How to manage the ?managed? property of EntityHome?

2007-04-09 Thread anarinsky
I am using seam-gen to generate classes and default pages. The boolean ?managed? property of a Home bean derived from ?EntityHome? indicates whether we persist the object or edit it. I tracked the value of this property. Before ?persist? it is true. Immediately after invoking ?persist?

[jboss-user] [JBoss Seam] - Re: seam-gen and @GeneratedValue

2007-04-06 Thread anarinsky
Andy, I have the same problem with generated entities. Did you find any workaround? My database was generated by Hibernate using org.hibernate.tool.hbm2ddl.SchemaExportTask Id supposed to be auto generated. However, when I add @GeneratedValue to the Id getter I am getting the exception

[jboss-user] [JBoss Seam] - How to insert a timestamp to a Not Nullable column from a fo

2007-04-05 Thread anarinsky
I have a class that contains a Date property - timestamp. Also, I have a form for persisting this object in the database. This form was created by the seam generator. In the database the timestamp is not nullable. The timestamp should be equal to a current time. A user should not insert it.

[jboss-user] [JBoss Seam] - Re: How to insert a timestamp to a Not Nullable column from

2007-04-05 Thread anarinsky
Thank you, great. Prepersist did help. Still, with above scenario I have the problem with id. It supposed to be auto generated. However, when I add @GeneratedValue I am getting the exception on startup: ObjectName: persistence.units:ear=spot4.ear,unitName=spot4 State: FAILED Reason:

[jboss-user] [JBoss Seam] - How to generate Id automatically?

2007-04-05 Thread anarinsky
I use seam generator to generate entities based on the database. This database originally was generated by Hibernate using org.hibernate.tool.hbm2ddl.SchemaExportTask Id supposed to be auto generated. However, when I add @GeneratedValue to the Id getter I am getting the exception on startup:

[jboss-user] [JBoss Seam] - How to sort a table by a column corresponding to a transient

2007-03-26 Thread anarinsky
I use seam-gen to generate a table view corresponding to a database table. Column sorting works fine using f:param name=order (f:param name=order value=#{projectsList.order=='name asc' ? 'name desc' : 'name asc'}/. ) However, this table includes only the columns that correspond to the

[jboss-user] [JBoss Seam] - How to presort a table by a specific column?

2007-03-26 Thread anarinsky
I use seam-gen to generate a table view corresponding to a database table. Column sorting works fine using f:param name=order (f:param name=order value=#{projectsList.order=='name asc' ? 'name desc' : 'name asc'}/. ) However, sorting of this table happens only by clicking on column headers.

[jboss-user] [JBoss Seam] - Re: How to sort a table by a column corresponding to a trans

2007-03-26 Thread anarinsky
Thank you. There is no problem in sorting results. The problem is that if I use generating view tables from a database table then sorting is resulted from adding ?order by? to a query specified in getEjbql. The ?getEjbql? method is specified in ?EntityQuery?. How can I force the table ordering

[jboss-user] [JBoss Seam] - Please, help to find optimal strategy for multiple iteration

2007-03-22 Thread anarinsky
For the sake of simplicity my database contains 2 tables ? containers and fruits. I need to show a report that contains a list of fruits for every container So, on my report page I have to iterate through the list of containers and for every container show the list of fruits I generated the

[jboss-user] [JBoss Seam] - Re: Please, help to find optimal strategy for multiple itera

2007-03-22 Thread anarinsky
Thanks. Is it better (less complicated) than adding an additional @Transient method returning the List to the entity bean? I still need to sort the collection ? how can I do this with this approach? Still, is it better to use a session bean or work only with entity beans? View the

[jboss-user] [JBoss Seam] - How to show both image and text on a button?

2007-03-22 Thread anarinsky
I need to create a button that shows both text and image. I found that if I use s:button then after image specification the text does not show up. For a particular button based on id I can write a stylesheet similar to (http://www.jboss.com/index.html?module=bbop=viewtopict=100199).

[jboss-user] [JBoss Seam] - Re: Deploying Seam tutorial existent examples on Eclipse

2007-03-21 Thread anarinsky
After several iterations I was able to deploy the ?Booking? example on Eclipse. The key is to use the ant build file prepared by seam-gen for a new application and then adapt it for ?Booking? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4030316#4030316

[jboss-user] [JBoss Seam] - Re: How can s:button be rendered as an image button

2007-03-21 Thread anarinsky
I tried s:button with or without image specification. When image is specified the value attribute is ignored. Is it possible to have both image (on the left) and label? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4030421#4030421 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Navigation mechanism after seam-gen

2007-03-20 Thread anarinsky
Thank you There is no creation of a file *.page.xml for new actions. The only file *.page.xml that has been created is login.page.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029856#4029856 Reply to the post :

[jboss-user] [JBoss Seam] - What is the advantages of using pages.xml or JBPM page?

2007-03-19 Thread anarinsky
As I understand either pages.xml located in WEB-INF or the org.jboss.seam.core.Jbpm component page defined in components.xml can define page navigation. What is the advantages of using pages.xml or JBPM page? View the original post :

[jboss-user] [JBoss Seam] - Navigation mechanism after seam-gen

2007-03-19 Thread anarinsky
Seam-gen allows one to create new entities or actions and link them to *.xhtml pages. However, I do not see any new entries in pages.xml. How seam navigates from a page to a bean in this case? Is it based on the correspondence in names of the action and the page? View the original post :

[jboss-user] [JBoss Seam] - Deploying Seam tutorial existent examples on Eclipse

2007-03-16 Thread anarinsky
How to deploy Seam tutorial existent examples on Eclipse? The ?seam new-project? tool allows creation of the Eclipse new project but does not work with existent projects. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4028959#4028959 Reply to the post :