Sets the character encoding of submitted form data.
This filter is not installed by default and requires an entry in components.xml
to enable it:
<web:character-encoding-filter encoding="UTF-16" override-client="true" url-pattern="*.seam"/>
Transactions
Finally, let's talk about transactions. In an EJB3 environment, we recommend the use of a special built-in component for transaction management, that is fully aware of container transactions, and can correctly process transaction success events registered with the
Events
component. If you don't add this line to your components.xml
file, Seam won't know when container-managed transactions end:<transaction:ejb-transaction/>
<persistence:hibernate-session-factory name="hibernateSessionFactory"/>
<persistence:managed-hibernate-session name="hibernateSession"
session-factory="#{hibernateSessionFactory}"/>
<persistence:entity-manager-factory name="entityManagerFactory"/>
<persistence:managed-persistence-context name="entityManager"
entity-manager-factory="#{entityManagerFactory}"/>
No hay comentarios:
Publicar un comentario