[jboss-user] [JBoss Seam] - CRUD <-- Facelets installation guide ( todo list for people@

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


CRUD <-- Facelets installation guide ( todo list for people at jboss to fix wizard :-) )

hi mate

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

2.  build.xml
add this <!-- EAR -->
    
        
    
and this 
<target name="ear"  ....
   

3. Add this include  to enable auto.interception
    <fileset id="ejb3.root" ...
        

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

    
        <!-- JNDI name pattern for JBoss EJB 3.0 -->
        #{ejbName}/local
    


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

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

9. persistence.xml
Modify it with your database ( and dialect )
change it so

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
	
		jboss-seam.jar
	

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=3966322#3966322

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



More information about the jboss-user mailing list