StackOverflow while getting browser info

2012-03-13 Thread André Schütz
Hi,

I have the following code in my MyApplication class:

{CODE}

public void init() {
super.init();
getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
getResourceSettings().setThrowExceptionOnMissingResource(false);

...
}

public Session newSession(Request request, Response response) {
MySession session = new MySession(request);

// determine default language from the browser
String defaultLanguage = null;
if (request != null && request.getClientUrl() != null && 
!request.getClientUrl().toString().isEmpty()) {
defaultLanguage = 
session.getClientInfo().getProperties().getNavigatorLanguage();
}
Locale locale = session.getLocale();

// no locale available
if (locale == null) {
if (defaultLanguage != null) {
if (defaultLanguage.startsWith("en")) {
locale = new Locale("en", "EN");
}
else if (defaultLanguage.startsWith("de")) {
locale = new Locale("de", "DE");
}
}
else {
locale = new Locale("en", "EN");
}

session.setLocale(locale);
}

return session;
}

{CODE}

I get an error, when I delete the Cookies in my browser and reload the actual 
page. The same error occurs when I delete the line ( if (request != null && 
request.getClientUrl() != null && request.getClientUrl().toString().isEmpty()) 
{ ) from the code example at building time from the TestHomePage.java.

The error is:

{ERROR}

java.lang.StackOverflowError

org.apache.wicket.session.HttpSessionStore.getHttpSession(HttpSessionStore.java:95)

org.apache.wicket.session.HttpSessionStore.getSessionId(HttpSessionStore.java:155)

org.apache.wicket.session.HttpSessionStore.lookup(HttpSessionStore.java:192)

org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1526)
org.apache.wicket.Session.get(Session.java:156)
org.apache.wicket.Application$1.onInstantiation(Application.java:279)

org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:36)

org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)

org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)

org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:32)
org.apache.wicket.Component.(Component.java:678)
org.apache.wicket.MarkupContainer.(MarkupContainer.java:118)
org.apache.wicket.Page.(Page.java:206)
org.apache.wicket.Page.(Page.java:170)
org.apache.wicket.markup.html.WebPage.(WebPage.java:74)

org.apache.wicket.markup.html.pages.BrowserInfoPage.(BrowserInfoPage.java:66)

org.apache.wicket.protocol.http.WebSession.newBrowserInfoPage(WebSession.java:239)

org.apache.wicket.protocol.http.WebSession.getClientInfo(WebSession.java:216)

{ERROR}

Any ideas why that happens?

Thank you,
Andre
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Links with old PageID do not work

2012-03-08 Thread André Schütz
Hi,

I will check this once more. If I can not find a solution,
I will create a quickstart for further debugging.

Andre

 Original-Nachricht 
> Datum: Thu, 8 Mar 2012 09:24:55 +0200
> Von: Martin Grigorov 
> An: users@wicket.apache.org
> Betreff: Re: Links with old PageID do not work

> Hi,
> 
> The debug statement in your page's constructor wont show anything. At
> this time the page is not rendered yet and the value will be the
> initial one - 0.
> You need to put a breakpoint at org.apache.wicket.Page#renderPage()
> and see why it is being incremented second time.
> 
> Or just create a ticket with a quickstart and we'll try to debug it.
> 
> 2012/3/7 Andre Schütz :
> > Anybody any idea?
> >
> > On Tue, 6 Mar 2012 22:17:10 +0100
> > Andre Schütz  wrote:
> >
> >> Hi,
> >>
> >> I tested my application and checked for the renderCount variable. I
> made a
> >> breakpoint and checked the variable in the Debugger. Surprisingly, the
> >> renderCount variable was not increased and remained 0 during the whole
> >> test.
> >>
> >> To verify my result, I made a System.out.println in the constructor of
> Page2
> >> that showed the PageID and the value of renderCount variable. The
> result was
> >> the same.
> >> It looked like the following:
> >>
> >> (1) Tab1 starts with Page1, url is:
> >> localhost:8080/myapp?0
> >> PageID: 2 renderCount: 0
> >>
> >> (2) Tab2 starts with Page1, url is:
> >> localhost:8080/myapp?1
> >> PageID: 2 renderCount: 0
> >>
> >> (3) Tab1 makes a submit from Page1 to Page2, url is:
> >> localhost:8080/myapp?2&q=word1
> >> PageID: 2 renderCount: 0
> >>
> >> (4) Tab2 makes a submit from Page1 to Page2, url is:
> >> localhost:8080/myapp?3&q=word2
> >> PageID: 3 renderCount: 0
> >>
> >> (5) Tab1 clicks on a link, the link does not work, but the page is
> rerendered, url is:
> >> localhost:8080/myapp?4&q=word1
> >> PageID: 4 renderCount: 0
> >>
> >> (6) Tab1 clicks on a link, the link works as expected and the page is
> rerendered, url is:
> >> localhost:8080/myapp?5&q=word1&filter=linkPage1
> >> PageID: 5 renderCount: 0
> >>
> >> (7) Tab2 clicks on a link, the link does not work, but the page is
> rerendered, url is:
> >> localhost:8080/myapp?6&q=word2
> >> PageID: 6 renderCount: 0
> >>
> >> (8) Tab2 clicks on a link, the link works as expected and the page is
> rerendered, url is:
> >> localhost:8080/myapp?7&q=word2&filter=linkPage2
> >> PageID: 7 renderCount: 0
> >>
> >> (9) Tab2 clicks on another link, the link works as expected and the
> page is rerendered, url is:
> >> localhost:8080/myapp?8&q=word2&filter=linkPage2;linkPage2b
> >> PageID: 8 renderCount: 0
> >>
> >> You can see, that the renderCount does not increase and the links need
> a rerender of
> >> the pages when the pageID is not the highest.
> >>
> >> Any ideas about such a constellation?
> >> Andre
> >>
> >> On Tue, 6 Mar 2012 09:13:26 +0200
> >> Martin Grigorov  wrote:
> >>
> >> > 2012/3/5 Andre Schütz :
> >> > > Hi,
> >> > >
> >> > > thank you for the answer. I will test this and reply with my
> results.
> >> > >
> >> > > I have three questions depending on the test you have mentioned.
> >> > >
> >> > > (1)
> >> > > Can you tell me more about this o.a.w.Page? I did not really find
> >> > > something about it.
> >> >
> >> > org.apache.wicket.Page
> >> >
> >> > >
> >> > > (2)
> >> > > Can you explain me a little bit more in detail, what I should try
> >> > > to find out with the breakpoint regarding the 'renderCount'. What
> >> > > could be the interesting parts regarding 'renderCount'?
> >> >
> >> > See why renderCount is incremented after the the html generation.
> >> >
> >> > >
> >> > > (3)
> >> > > I have my .html files stored in src/main/html, my .properties files
> in
> >> > > src/main/resources and modified my pom.xml with:
> >> > >
> >> > > 
> >> > > 
> >> > >    
> >> > >        false
> >> > >        src/main/resources
> >> > >    
> >> > >    
> >> > >        src/main/html
> >> > >    
> >> > >    
> >> > >        false
> >> > >        src/main/java
> >> > >        
> >> > >            **
> >> > >        
> >> > >        
> >> > >            **/*.java
> >> > >        
> >> > >    
> >> > > 
> >> > > 
> >> > >    
> >> > >        false
> >> > >        src/test/java
> >> > >        
> >> > >            **
> >> > >        
> >> > >        
> >> > >            **/*.java
> >> > >        
> >> > >    
> >> > > 
> >> > >
> >> > > If I start the jetty server, I get a MarkupNotFoundException. After
> storing the
> >> > > .html files to the class files in the src/main/java path, it works
> and only the
> >> > > properties files are not found.
> >> > >
> >> > > Can you tell me, how I have to modify the pom.xml that it will find
> the .html
> >> > > and the .properties files in their different paths?
> >> >
> >> > I guess you need to reimport the project in your IDE so that it also
> >> > knows about these additional source folders
> >> >
> >> > >
> >> > > Thank you,
> >> > > Andre
> >> > >
> >> > >
> >> > > On Mo

Component not found after AjaxSelfUpdatingTimerBehavior

2012-03-03 Thread André Schütz
Hi,

I have two Tabs in the same browser where the same application is running. The 
scope is different but the session is the same.
When I make a call to my application at Page1 in Tab1 and get the results In 
Page2, everything is fine.

The problem occurs when I make parallel calls in the two Tabs and get the 
results.
The links in the two tabs throw an Unexpected RuntimeException when I click on 
them.

Error:

Last cause: Could not find component 
'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link'
 on page 'class org.mycomp.client.website.MyResults

Stacktrace:

Root cause:

org.apache.wicket.request.handler.ComponentNotFoundException: Could not find 
component 
'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link'
 on page 'class org.mycomp.client.website.MyResults
at 
org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:181)
at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:92)
at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:239)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781)
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)


The error just occurs, when I use the application in both tabs. The page ID of 
the pages in the two tabs is different and works fine, only the links are not 
working correctly.

Thanks,
Andre
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Component not found after AjaxSelfUpdatingTimerBehavior

2012-03-03 Thread André Schütz
Hi,

I have two Tabs in the same browser where the same application is running. The 
scope is different but the session is the same.
When I make a call to my application at Page1 in Tab1 and get the results In 
Page2, everything is fine.

The problem occurs when I make parallel calls in the two Tabs and get the 
results.
The links in the two tabs throw an Unexpected RuntimeException when I click on 
them.

Error:

Last cause: Could not find component 
'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link'
 on page 'class org.mycomp.client.website.MyResults

Stacktrace:

Root cause:

org.apache.wicket.request.handler.ComponentNotFoundException: Could not find 
component 
'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link'
 on page 'class org.mycomp.client.website.MyResults
at 
org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:181)
at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:92)
at 
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:239)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781)
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)


The error just occurs, when I use the application in both tabs. The page ID of 
the pages in the two tabs is different and works fine, only the links are not 
working correctly.

Thanks,
Andre
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multi Tab and Session

2012-03-01 Thread André Schütz
the common case of it being required by the next request. (I think the
> > > logic is in PageStoreManager, but it's not clear to me. Hopefully a
> dev
> > can
> > > confirm/correct me.) At any rate, this may cause the difference
> between
> > > your two scenarios. In your successful, single-tab scenario, you may
> be
> > > benefiting from a lack of serialization/deserialization round-trip. We
> > have
> > > noticed this difference when our components have transient variables
> that
> > > aren't set to null in detach(): in the most recent page the variable
> > > remains not-null; if the session has intermediate requests for other
> > pages,
> > > the variable is null when next accessed.
> > >
> > > Good luck,
> > > Dan
> > >
> > > 2012/2/29 "André Schütz" 
> > >
> > > > Hi,
> > > >
> > > > Page1 gets the click of the submit button and collects the search
> word.
> > > > This will be changed into a hash value and set as PageParameter
> > > > (q=Hashvalue) to the ResponsePage which is Page2.
> > > > Additionally, I store the hash value into a session HashMap which
> holds
> > > > the hash value as key and an own class with the original search
> word.
> > This
> > > > class will be filled with the results from the search of the
> background
> > > > thread.
> > > >
> > > > On Page2, I have the PageParameter as hash value and can search for
> the
> > > > correct entry of the HashMap in the session to react, when the
> results
> > are
> > > > found.
> > > >
> > > > I hope, I could describe it.
> > > >
> > > > Andre
> > > >
> > > >  Original-Nachricht 
> > > > > Datum: Tue, 28 Feb 2012 14:27:35 -0800
> > > > > Von: Dan Retzlaff 
> > > > > An: users@wicket.apache.org
> > > > > Betreff: Re: Multi Tab and Session
> > > >
> > > > > Hi Andre. I'm trying to understand your setup. A quickstart may be
> > > > > required.
> > > > >
> > > > > What does your Page1's onSubmit() look like? Specifically I'd like
> to
> > > > know
> > > > > how Page2 knows to watch for "word2".
> > > > >
> > > > > 2012/2/28 Andre Schütz 
> > > > >
> > > > > > Hello,
> > > > > >
> > > > > > I have a problem with my application that I am not able to solve
> > since
> > > > > >  the last three days.
> > > > > >
> > > > > > I realized that Wicket 1.5 provides multi tab / multi window
> > support
> > > > > > for more than one opened tab in a browser.
> > > > > > I have a problem with multiple tabs in my program, that I want
> to
> > > > > > describe now.
> > > > > >
> > > > > > The program consists of two pages. Page1 contains a search field
> > that
> > > > > > will be used to type in a search word.
> > > > > > Page2 makes the search on a database, returns the results and
> > > > > > displays it as a list. The search will be done from a background
> > > > > > thread that stores the result in a hashmap in the session with
> the
> > > > > > search word as the key. Furthermore, Page2 shows a little
> loading
> > > > > > animation that will be updated (AjaxSelfUpdatingTimerBehavior),
> > when
> > > > the
> > > > > > result is stored in the session.
> > > > > >
> > > > > > Now the problem.
> > > > > >
> > > > > > (1) I open the application in two tabs of the same browser.
> > > > > > (2) The URL looks as follows:
> > > > > > Tab1 - localhost:8080/appli/?0
> > > > > > Tab2 - localhost:8080/appli/?1
> > > > > > (3) Tab1 gets word1 in the search field and Tab2 gets word2
> > > > > > into the search field.
> > > > > > (4) I press the submit button of Tab1, switch to Tab2 and press
> the
> > > > > > submit button, too.
> > > > > > (5) The two Threads start to search for the results.
> > > > > > (6) During the AjaxSelfUpdatingTimeBehavior, the result panel of
> > Page2
> > > > > &g

Re: Multi Tab and Session

2012-03-01 Thread André Schütz
Hi Martin,

I compile the wicket project via Maven from the command line. I do not use the 
IDE to start the project and trace it? Do you have a hint how I can do that? As 
IDE, Ia m using  IntelliJ IDEA.

Andre

 Original-Nachricht 
> Datum: Thu, 1 Mar 2012 09:40:30 +0200
> Von: Martin Grigorov 
> An: users@wicket.apache.org
> Betreff: Re: Multi Tab and Session

> 2012/2/29 Andre Schütz :
> > Hi,
> >
> > I could identify the cause of the problem, but still have no
> > solution.
> >
> > I set some breakpoints and made some output messages to trace
> > the system. The following thinks happened:
> >
> > (1)
> > I submit a search in Tab1. The search word will be passed as
> > Page Parameter to Page2 in Tab1. While Tab1 is showing the loading
> > animation with it AjaxSelfUpdatingTimerBehavior, I submit a second
> > search in Tab2. Tab2 switches to its Page2 and the loading animation
> > stops in both Tabs.
> >
> > Reason:
> > --> The constructors of Page2 is called twice on the two Tabs.
> >
> > As diagram:
> > 01.) Tab1: Page1 submit search
> > 02.) Tab1: Page2 (Page id = 14) calls its constructor and adds a PanelA
> > 03.) Tab1: shows loading animation with its
> AjaxSelfUpdatingTimerBehavior at PanelA
> > 04.) Tab2: Page1 submit search
> > 05.) Tab2: Page2 (Page id = 16) calls its constructor and adds a PanelA
> > 06.) Tab2: shows loading animation with its
> AjaxSelfUpdatingTimerBehavior at PanelA
> > 07.) Tab1: Page2 (Page id = 17) calls its constructor
> > 08.) Tab1: does not update anymore
> > 09.) Tab2: Page2 (Page id = 18) calls its constructor
> > 10.) Tab2: does not update anymore
> >
> > I do nothing from the beginning of step 7 and do not know why the
> constructor
> > is called again.
> 
> Put a breakpoint in Page2 constructor and see why it is called.
> 
> >
> > (2)
> > The same odd behavior happens, when I do the following. I submit a
> search
> > in Tab1 from its Page1. While the loading animation is shown, I reload
> the
> > Page1 in Tab2. The constructor of Page2 in Tab1 is called again and the
> > Page2 in Tab1 stops its update progress.
> >
> > As diagram:
> > 01.) Tab1: Page1 submit search
> > 02.) Tab1: Page2 (Page id = 22) calls its constructor and adds a PanelA
> > 03.) Tab1: shows loading animation with its
> AjaxSelfUpdatingTimerBehavior at PanelA
> > 04.) Tab2: Reload any Page
> > 05.) Tab1: Page2 (Page id = 23) calls its constructor
> > 06.) Tab1: does not update anymore
> >
> >
> > I really can't explain to myself, why the constructor is called again.
> But I think
> > that this second call in the individual Tabs is crashing my application.
> > Any ideas about this odd behavior?
> >
> > Thank in advance,
> > Andre
> >
> >
> > On Wed, 29 Feb 2012 10:10:37 -0800
> > Dan Retzlaff  wrote:
> >
> >> Your description is clear, thank you. I'm not certain that the
> background
> >> thread's reference to the Session is valid outside of the servlet
> request.
> >> I would verify your assumption by logging the session's object ID when
> the
> >> value is read/written.
> >>
> >> I have one other thought for you. I believe Wicket keeps the most
> recent
> >> page in a deserialized state to save itself the work of deserialization
> in
> >> the common case of it being required by the next request. (I think the
> >> logic is in PageStoreManager, but it's not clear to me. Hopefully a dev
> can
> >> confirm/correct me.) At any rate, this may cause the difference between
> >> your two scenarios. In your successful, single-tab scenario, you may be
> >> benefiting from a lack of serialization/deserialization round-trip. We
> have
> >> noticed this difference when our components have transient variables
> that
> >> aren't set to null in detach(): in the most recent page the variable
> >> remains not-null; if the session has intermediate requests for other
> pages,
> >> the variable is null when next accessed.
> >>
> >> Good luck,
> >> Dan
> >>
> >> 2012/2/29 "André Schütz" 
> >>
> >> > Hi,
> >> >
> >> > Page1 gets the click of the submit button and collects the search
> word.
> >> > This will be changed into a hash value and set as PageParameter
> >> > (q=Hashvalue) to the ResponsePage which is Page2.
> >> > Additionally, I store the hash value into a sess

Re: Multi Tab and Session

2012-02-29 Thread André Schütz
Hi,

Page1 gets the click of the submit button and collects the search word. This 
will be changed into a hash value and set as PageParameter (q=Hashvalue) to the 
ResponsePage which is Page2.
Additionally, I store the hash value into a session HashMap which holds the 
hash value as key and an own class with the original search word. This class 
will be filled with the results from the search of the background thread.

On Page2, I have the PageParameter as hash value and can search for the correct 
entry of the HashMap in the session to react, when the results are found.

I hope, I could describe it.

Andre

 Original-Nachricht 
> Datum: Tue, 28 Feb 2012 14:27:35 -0800
> Von: Dan Retzlaff 
> An: users@wicket.apache.org
> Betreff: Re: Multi Tab and Session

> Hi Andre. I'm trying to understand your setup. A quickstart may be
> required.
> 
> What does your Page1's onSubmit() look like? Specifically I'd like to know
> how Page2 knows to watch for "word2".
> 
> 2012/2/28 Andre Schütz 
> 
> > Hello,
> >
> > I have a problem with my application that I am not able to solve since
> >  the last three days.
> >
> > I realized that Wicket 1.5 provides multi tab / multi window support
> > for more than one opened tab in a browser.
> > I have a problem with multiple tabs in my program, that I want to
> > describe now.
> >
> > The program consists of two pages. Page1 contains a search field that
> > will be used to type in a search word.
> > Page2 makes the search on a database, returns the results and
> > displays it as a list. The search will be done from a background
> > thread that stores the result in a hashmap in the session with the
> > search word as the key. Furthermore, Page2 shows a little loading
> > animation that will be updated (AjaxSelfUpdatingTimerBehavior), when the
> > result is stored in the session.
> >
> > Now the problem.
> >
> > (1) I open the application in two tabs of the same browser.
> > (2) The URL looks as follows:
> > Tab1 - localhost:8080/appli/?0
> > Tab2 - localhost:8080/appli/?1
> > (3) Tab1 gets word1 in the search field and Tab2 gets word2
> > into the search field.
> > (4) I press the submit button of Tab1, switch to Tab2 and press the
> > submit button, too.
> > (5) The two Threads start to search for the results.
> > (6) During the AjaxSelfUpdatingTimeBehavior, the result panel of Page2
> > checks
> > in its overwritten onBeforeRender method for the results. When the
> result
> > for the search word is found in the session, the updateBehavior of Page2
> > is stopped and the results will be displayed.
> > -> Here starts my problem:
> >
> > None of the two pages will be updated and show the results. If I start
> > the search in one of the Tabs, the process will be finished and the
> > results displayed onto the screen.
> >
> > For me, it seems that both tabs share the same session data and also
> > the same updateBehavior on the Page2.
> >
> > Can anybody help me with that problem? Would be great.
> >
> > --
> > Andre Schütz 
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Error during start of wicket application

2012-02-23 Thread André Schütz
Hello,

I get the following error message during a start of the tomcat server with a 
clean packed wicket application:

/**
 * BEGIN
 */

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: 
org/apache/wicket/ApplicationListenerCollection$2
at 
org.apache.wicket.ApplicationListenerCollection.onBeforeDestroyed(ApplicationListenerCollection.java:44)
at org.apache.wicket.Application.internalDestroy(Application.java:639)
at 
org.apache.wicket.protocol.http.WebApplication.internalDestroy(WebApplication.java:563)
at 
org.apache.wicket.protocol.http.WicketFilter.destroy(WicketFilter.java:478)
at 
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
at 
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at 
org.apache.catalina.core.StandardService.stop(StandardService.java:584)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
at 
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:687)
Caused by: java.lang.ClassNotFoundException: 
org.apache.wicket.ApplicationListenerCollection$2
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
... 14 more

/**
 * END
 */

Any ideas about this error?

Thanks,
Andre
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org