[jboss-user] [JBoss Seam] - Problem with Seam Email - in Loop + Transaction

bsmithjj do-not-reply at jboss.com
Tue Mar 13 07:54:57 EDT 2007


I'm running into some new issues with the Seam Email Renderer.  These issues emerge when 2 or more emails are sent in a single transaction.

one issue:

  | <m:to name="#{nonTestEvergreenUser.name}">#{mailConfiguration.testEmail}</m:to>

when used this way, it appears that facelets (or something) caches what goes inside the <m:to> tags - what happens is that the email keeps getting calculated as:

#{mailConfiguration.testEmail} = #{mailConfiguration.testEmail} + cached value

so if mailConfiguration.testEmail == joe at joe.com, then we have:

First usage of template in transaction: 

#{mailConfiguration.testEmail} = joe at joe.com  (now this gets cached)

Second usage of template in transaction:

#{mailConfiguration.testEmail} = joe at joe.comjoe@joe.com (this gets cached)

and so on with the EL expression growing each time the Renderer uses the same template to send an email.

There's still another issue that I think comes from using Facelets templates...  basically, everytime a same template is used to render in the scope of a transaction, the last rendering gets concatenated to the current rendering (another caching problem I think).

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

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

More information about the jboss-user mailing list