3 Replies Latest reply: Mar 19, 2012 9:09 PM by H Dam RSS

cid duplicated

H Dam Newbie

Hi,

 

I use conversation scope for my controller in CDI, but I have 1 problem is in the URL there are 2 cid parameters, as following:

http://localhost:8080/test/test.jsf?cid=2&cid=2

 

How to remove this duplication? Please help me.

 

P/S: My application is run normally with this url, but I use pretty-faces to clean my URL, if there are this duplication, I have problem because url as following:

http://localhost:8080/testObject/2&cid=2

 

Refer the following code:

 

@Named
@ConversationScoped
@LoggedIn
public class TestController implements Serializable {
     .......
     @Inject
     private Conversation conversation;

     public void initialize() {
          if (conversation.isTransient()) {
               conversation.begin();
          }
     }
     ......
}