[JBoss Seam] - Re: Error when using ajax and facelets
by yj4jboss
These are the mods i did in my web.xml to have Ajax4JSf working
|
|
| <!-- Ajax4jsf -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>com.sun.facelets.FaceletViewHandler</param-value>
| </context-param>
|
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
You also need to have the oscache-2.3.2 and ajax4jsf jars to have ajax working
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989172#3989172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989172
19Â years, 5Â months
[JBoss Seam] - Re: Error with SeamGen
by stealth_nsk
All code is autogenerated.
persistence.xml
<persistence>
| <persistence-unit name="seam_test">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/seam_testDatasource</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="validate"/>
| <property name="hibernate.cache.use_query_cache" value="true"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/seam_testEntityManagerFactory"/>
| </properties>
| </persistence-unit>
| </persistence>
|
components.xml
<?xml version="1.0" ?>
| <!DOCTYPE components PUBLIC
| "-//JBoss/Seam Component Configuration DTD 1.1//EN"
| "http://jboss.com/products/seam/components-1.1.dtd">
|
| <components>
|
| <component name="org.jboss.seam.core.init">
| <property name="debug">true</property>
| <property name="jndiPattern">@jndiPattern@</property>
| </component>
|
| <component name="org.jboss.seam.core.manager">
| <!-- half second wait for conversation lock on concurrent requests -->
| <property name="concurrentRequestTimeout">500</property>
| <!-- 120 second conversation timeout -->
| <property name="conversationTimeout">120000</property>
| <property name="conversationIdParameter">cid</property>
| <property name="conversationIsLongRunningParameter">clr</property>
| </component>
|
| <component name="org.jboss.seam.core.pages">
| <property name="noConversationViewId">/home.xhtml</property>
| </component>
|
| <component name="entityManager"
| class="org.jboss.seam.core.ManagedPersistenceContext">
| <property name="persistenceUnitJndiName">java:/seam_testEntityManagerFactory</property>
| </component>
|
| <component class="org.jboss.seam.core.Ejb" installed="@embeddedEjb@"/>
|
| <!-- For use with jBPM pageflow or process management -->
| <!--
| <component class="org.jboss.seam.core.Jbpm">
| <property name="processDefinitions"></property>
| <property name="pageflowDefinitions"></property>
| </component>
| -->
|
| </components>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989168#3989168
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989168
19Â years, 5Â months