Here is the source. package test.conversation; import java.io.Serializable; import javax.enterprise.context.Conversation; import javax.enterprise.context.ConversationScoped; import javax.inject.Inject; import javax.inject.Named; @Named("mainView") @ConversationScoped public class MainView implements Serializable{ @Inject private Conversation c; private String textT; public String send() { c.begin(); return "page1?faces-redirect=true"; } public String logout() { c.end(); return "index?faces-redirect=true"; } public void setTextT(String textT) { this.textT = textT; } public String getTextT() { return textT; } } |