[jboss-user] [JBoss Seam] - Re: Problem with @Transactional

gustajz do-not-reply at jboss.com
Fri Jun 8 14:09:16 EDT 2007


Yes, I using this.
The transaction works, but not correctly.

In this code.

  | try {
  |       log.debug("will be delete...");
  |       projetoManager.remove(selected.getId()); <---- generates a exception
  |       log.debug("deleted??");  <--- after execption... this continue...
  |       FacesMessages.instance().add("{0} has been removed.", new Object[] { selected.getNome() });
  | } catch (Throwable e) {
  |       addMessage("Faild to remove"); <--- not printed
  | }
  | 

this is my faces-config 

  | <faces-config>
  | 	<application>
  | 		<view-handler>
  | 			org.jboss.seam.ui.facelet.SeamFaceletViewHandler
  | 		</view-handler>
  | 		<el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
  | 		<locale-config>
  | 			<default-locale>pt_BR</default-locale>
  | 			<supported-locale>pt_BR</supported-locale>
  | 			<supported-locale>en_US</supported-locale>
  | 		</locale-config>
  | 		<message-bundle>MessageBundle</message-bundle>
  | 	</application>
  | 
  | 	<lifecycle>
  | 		<phase-listener>
  | 			org.jboss.seam.jsf.TransactionalSeamPhaseListener
  | 		</phase-listener>
  | 	</lifecycle>
  | </faces-config>
  | 

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

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



More information about the jboss-user mailing list