Sorry for the delay in getting back on this.
Renderer.render ISN'T resetting the tree each time it is called (within the same
action method), so, each time you call it elements are added to existing tree. I'll
need to talk to Norman about this.
Anyway, there is, IMO a neater way to do this, which does work :)
@Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("users")
| public class UsersBean implements com.rmemoria.mdrtb.seam.UsersLocal {
|
| public void sendNewPassword()
| {
| List<User> lst = ItemSelectHelper.createItemsList(userList, true);
| ...
| Contexts.getEventContext().set("selectedUsers", lst);
| sendMail("/mail/newpassword.xhtml");
| ...
| }
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:s="http://jboss.com/products/seam/taglib"
|
xmlns:m="http://jboss.com/products/seam/mail"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:f="http://java.sun.com/jsf/core">
| <ui:repeat value="#{selectedUsers}" var="user">
| <m:message>
| <m:from address="suporte(a)rmemoria.com.br" />
| <m:to name="#{user.full_name}">#{user.email}</m:to>
| <m:subject>MDR-TB System - #{subject}</m:subject>
| ...
| </m:message>
| </ui:repeat>
| </ui:composition>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012970#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...