Thanks for your response pete.
I tried seam reverse engineering but there is an error in seam generate-ui
command
ERROR:-
[hibernate] INFO: Hibernate EntityManager 3.3.1.GA
| [hibernate] An exception occurred while running exporter #2:generic
exportertemplate: view/list.xhtml.ftl
| [hibernate] To get the full stack trace run ant with -verbose
| [hibernate] Problems in creating a configuration for JPA. Have you
remembered to add hibernate EntityManager jars to the classpath ?
| [hibernate] java.lang.reflect.InvocationTargetException
| [hibernate] javax.persistence.PersistenceException:
java.lang.TypeNotPresentException: Type org.jboss.seam.annotations.Name not
present
| [hibernate] java.lang.TypeNotPresentException: Type
org.jboss.seam.annotations.Name not present
| [hibernate] java.lang.ClassNotFoundException:
org.jboss.seam.annotations.Name
| [hibernate] A class were not found in the classpath of the Ant task.
| [hibernate] Ensure that the classpath contains the classes needed for
Hibernate and your code are in the classpath.
|
| BUILD FAILED
| /home/vikramc/eclipseEuropa/seam/seam-gen/build.xml:1057: Problems in
creating a configuration for JPA. Have you remembered to add hibernate
EntityManager jars to the classpath ?
|
I have one more question.
I have a dropdown populated from the database.
the value of the option always starts from 0, i want it to be the primary key
from the database.
<s:decorate template="layout/edit.xhtml">
| <ui:define name="label">Favourite Book</ui:define>
| <ui:define name="description">A book has a composite key</ui:define>
| <h:selectOneMenu value="#{roles.iroleId}">
| <s:selectItems value="#{role.resultList}" var="role1"
label="#{role1.strDescription}" noSelectionLabel="Please Select."/>
| <s:convertEntity />
| </h:selectOneMenu>
| </s:decorate>
How do I solve this?
Thanks in advace.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118264#4118264
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118264
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user