[jboss-user] [JBoss Seam] - Re: CRUD <-- Facelets installation guide ( todo list for peo

nicola9000 do-not-reply at jboss.com
Sun Aug 20 10:35:23 EDT 2006


CORRIGE

1. Like always remember to change JBOSS.home in build.properties

2.  build.xml
add this [!-- EAR --]
    [fileset id="seam.lib" dir="lib"]
        [include name="jboss-seam.jar"/]
    [/fileset]
and this 
[target name="ear"  ....
   [zipfileset refid="seam.lib"/]

3. Add this include  to enable auto.interception
    [fileset id="ejb3.root" ...
        [include name="META-INF/ejb-jar.xml"/]

4. file seam.properties delete all and leave only this 1
org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local

5. web.xml
you can use booking example file, exactly like it is

6. component.xml. I have it so, but i think is not so important
[components]
    [component name="org.jboss.seam.core.init"]
        [!-- JNDI name pattern for JBoss EJB 3.0 --]
        [property name="jndiPattern"]#{ejbName}/local[/property]
    [/component]
[/components]

7. faces-confilg.xml
Important !!
    [!-- Facelets support --]
    [application]
        [view-handler]org.jboss.seam.ui.facelet.SeamFaceletViewHandler[/view-handler]
	    [locale-config]
              [default-locale]en[/default-locale]
	    [/locale-config]
    [/application]
    
    [lifecycle]
        [phase-listener]org.jboss.seam.jsf.SeamPhaseListener[/phase-listener]
    [/lifecycle]

8. Add locale files message_XX in WEB-INF/classes

9. persistence.xml
Modify it with your database ( and dialect )
change it so
[property name="hibernate.hbm2ddl.auto" value="update"/]
delete this line
[!--property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManager"/--]


10. ejb-jar
[ejb-jar]
   [assembly-descriptor]
      [interceptor-binding]
         [ejb-name]*[/ejb-name]
         [interceptor-class]org.jboss.seam.ejb.SeamInterceptor[/interceptor-class]
      [/interceptor-binding]
   [/assembly-descriptor]
[/ejb-jar]

11.jboss-abb
[jboss-app]
      [loader-repository] 
      seam.jboss.org:loader=xage
      [/loader-repository] 
[/jboss-app] 

12. application.xml. Add this module
	[module]
		[java]jboss-seam.jar[/java]
	[/module]

13. WEB-INF/lib : add these libraries
el-api, el-ri,jboss-seam-debug, jboss-seam-ui, jsf-facelet

14. Project path-lib add only these libs : 
hibernate-all, jboss-ejb3-all, jboss-seam, myface-api.jar

USE ALL BOOKING-EXAMPLE VERSION LIBS

15.
replace in all java.files:
javax.ejb.Interceptors --] javax.interceptor.Interceptors

16. Every where there is a ResourceBundle declaration change it so
	  @In(create=true)
      private transient ResourceBundle resourceBundle;

17. And fix the EM declarations so
    @PersistenceContext
    private EntityManager entityManager;

18. Now you can //comment some 1-N getters to compile the project

19. remember you can use import.sql to  populate 1st time your db with create-drop option

I hope i did not forget many things
Good Work , and have a nice sunday :-)

Ciao Nicola




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

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



More information about the jboss-user mailing list