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.
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
___
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
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
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
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?
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
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.
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:
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:
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
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.
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
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
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
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).
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
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 :
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 :
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 :
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 :
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 :
22 matches
Mail list logo