[ 
https://issues.apache.org/jira/browse/WICKET-2560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-2560.
-----------------------------------

    Resolution: Invalid

most browsers share session cookies between windows and tabs. try opening your 
app in firefox and ie to see two different sessions.

also remove this

@Override
public void cleanupFeedbackMessages() {
// TODO Auto-generated method stub

} 

unless you are planning on cleaning up the messages yourself?

> Old session values are getting rendered.
> ----------------------------------------
>
>                 Key: WICKET-2560
>                 URL: https://issues.apache.org/jira/browse/WICKET-2560
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 1.4.1
>            Reporter: Madhuri
>   Original Estimate: 240h
>  Remaining Estimate: 240h
>
> I have a simple web application which will take input from one page and print 
> it in another page using sessions. First time it is running fine. But from 
> the second time (even though i open a new browser ) first page is displaying 
> the old values.Here is the sample code :
> HelloWorldApplication.java
> ...........
> public Session newSession(Request request, Response response) {
>       return new userSession(request);
>       }
> ...............
> UserSession.java
> public userSession(Request request) {
>               super(request);
>               // TODO Auto-generated constructor stub
>       }
>       @Override
>       public void cleanupFeedbackMessages() {
>               // TODO Auto-generated method stub
>       }
>       
>       public User getUser(){
>               return user;
>       }
> HelloWorld.java
> User user = (UserSession)Session.get().getUser();
>       
>       final List LIS1 = new ArrayList();
>     
>     PropertyModel projectdesciplineprop = new PropertyModel(user,"combo");
> TextField username = new TextField("user",new PropertyModel(user,"User"));
>  DropDownChoice drop = new DropDownChoice("choice", 
> projectdesciplineprop,LIS1,new ChoiceRenderer()); 
>   
>   
>   public HelloWorld()
>   {
>         
>     Form form = new Form("form");
>     form.add(username);
>     LIS1.add("anc");
>     LIS1.add("sdgf");
>     
>       form.add(drop);
>     form.add(new Button("login"){
>       public void onSubmit(){
>               
>               setResponsePage(success.class);
>       }
>     });
>     add(form);
>   }
>   
> } 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to