[JBoss Seam] - profile based component configuration
by marius.oancea
Sory for the post. Again:
I have an application that is deployed on many servers (A, B, C).
my compunents.xml has a section where i configure component X like this (on server A):
<component name="XComponent">
| <property name="pr1">5</property>
| <property name="pr2">6</property>
| </component>
on another server (B) tis section has to look like:
<component name="XComponent">
| <property name="pr1">2</property>
| <property name="pr2">3</property>
| </component>
Is there a posibility to include an xml into components.xml? Because the rest of the file is equal between servers.
I can create a components-A.xml and components-B.xml and at build time to make the copy of the rigth file into components.xml but this makes modification of components.xml difficult (because you have to maintain the common area in many places). Is there a way to make a <include file="components-A.xml" /> in components.xml ?
Or is there another nicer mechanism to configure XComponent to be profile(server) specific?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118267#4118267
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118267
18 years, 3 months
[JBoss Seam] - Re: Edit details
by vikramchhetryy
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
18 years, 3 months