[jboss-user] [JBoss Seam] - Re: Join natural conversation ? how ??
enda
do-not-reply at jboss.com
Sat Feb 2 03:13:01 EST 2008
My working solution that is such a hack but now I see the power we have ;D
Please comment it or provide better solution
| public String select(Team team) {
| conversationId = team.getId().toString();
| ConversationEntries.getInstance().updateConversationId(Conversation.instance().getId(),
| conversationId);
| Set<String> existingIds = ConversationEntries.getInstance().getConversationIds();
| for (String existingConversationId : existingIds) {
| String[] split = existingConversationId.split(":");
|
| if(split.length == 2 && conversationId.equals(split[1])) {
|
| getFacesMessages().add("Conversation already exists");
| ConversationEntries.getInstance().getConversationEntry(existingConversationId).
| redirect();
| return null;
|
| }
| }
|
| return super.select(team);
| }
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125745#4125745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125745
More information about the jboss-user
mailing list