Re: 404 on resource

2012-03-04 Thread Martin Grigorov
Hi, On Mon, Mar 5, 2012 at 6:05 AM, Douglas Ferguson wrote: > Does wicket 1.5 still use the resource urls? > > I'm getting a 404 on this > > resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif This url is generated by Wicket 1.4.x. AFAIK you upgrade your app to 1.5 where t

Re: logging 404s

2012-03-04 Thread Martin Grigorov
Hi, Servlet specification says that the original request should be available in request attribute named "javax.servlet.error.request_uri" See org.apache.wicket.protocol.http.servlet.ErrorAttributes On Mon, Mar 5, 2012 at 6:15 AM, Douglas Ferguson wrote: > I setup a 404 handler in my web.xml to p

Re: Links with old PageID do not work

2012-03-04 Thread Martin Grigorov
Hi, It sounds to be related to Page#renderCount. 'renderCount' is used to prevent using an obsolete version of a page instance. I.e. a page with a given page id counts how many times it has been rendered. If you have a tab/window which contains an earlier version of that page and you click on it t

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-04 Thread Martin Grigorov
Hi, Just try with: WebResponse response = (WebResponse)getResponse(); response.reset(); OpenIDService.sendDiscoveryResponse(response); On Sun, Mar 4, 2012 at 10:19 PM, singh13 wrote: > Sorry for another reply but can anybody give me an example solution. > > Thanks > > -- > View this message in c

Re: Eclipse, Wicket 1.5 and Jrebel

2012-03-04 Thread Jürgen Lind
Hi Dan, thanks for your answer, then the problem might lie within my setup. One more thing: which version of Wicket are you using? Maybe the Packaged Resource Bug that was mentioned earlier is the culprit... J. On 05.03.2012 03:55, Dan Retzlaff wrote: Jürgen, my coworkers and I use that combi

logging 404s

2012-03-04 Thread Douglas Ferguson
I setup a 404 handler in my web.xml to point to a wicket page. I'd like to be able to log what the original request was, but I'm having trouble figuring this out. Douglas - To unsubscribe, e-mail: users-unsubscr...@wicket.apach

404 on resource

2012-03-04 Thread Douglas Ferguson
Does wicket 1.5 still use the resource urls? I'm getting a 404 on this resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif

Re: Eclipse, Wicket 1.5 and Jrebel

2012-03-04 Thread Dan Retzlaff
Jürgen, my coworkers and I use that combination successfully. Good luck. On Sun, Mar 4, 2012 at 1:29 AM, Jürgen Lind wrote: > Hi, > > I was just wondering if anybody is using the above combination. Since > upgrading to 1.5. I have massive problems in reloading changed HTML > templates as Eclipse

Re: Wicket authentication: how to store user?

2012-03-04 Thread Dan Retzlaff
Paolo, sessions are accessed with a JSESSIONID cookie or query parameter supplied with each request. It's not possible for one user to guess another user's session ID, so the approach Martin describes is inherently secure. (Just be careful with your authentication code and form/query parameter vali

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-04 Thread singh13
Sorry for another reply but can anybody give me an example solution. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-IllegalStateException-Can-t-call-write-CharSequence-after-write-byte-has-been-called-tp4416819p190.html Sent from the Users forum

Links with old PageID do not work

2012-03-04 Thread Andre Schütz
Hello, i have a question about the behavior of links in two tabs. I have an application that I opened in two tabs. In Tab1, I make a submit from Page1 and get Page2. At the same time, I make a submit in Tab2 from Page1 to Page2. The two pages with the name Page2 in the two tabs display the resul

Re: redirecting in IRequestCyleListener.onException

2012-03-04 Thread Douglas Ferguson
I don't have a no arg constructor, and it was blowing up trying to construct the page. On Mar 4, 2012, at 9:38 AM, vineet semwal wrote: > hi martin, > WebPage exceptionPage = new NotifyUserOfException(ex); > IPageProvider provider = new PageProvider(page); > return new RenderPageRequestHandler(p

Re: reload model on render

2012-03-04 Thread nazeem
Yes I understand your point. But i have to get the object manipulate it then only feed it to the label. In this case i cannot pass the model directly. For this i had to workaround this problem bit differently. I had moved the section to a fragment and then inside onBeforeRender i am reconstructin

Re: redirecting in IRequestCyleListener.onException

2012-03-04 Thread vineet semwal
hi martin, WebPage exceptionPage = new NotifyUserOfException(ex); IPageProvider provider = new PageProvider(page); return new RenderPageRequestHandler(provider /*, RenderPageRequestHandler.RedirectPolicy.XYZ */ ); he actually means page instance not found in page store and new page instance is

Re: redirecting in IRequestCyleListener.onException

2012-03-04 Thread Douglas Ferguson
See below: On Mar 4, 2012, at 7:29 AM, Martin Grigorov wrote: > I'm not sure what you mean by "throws away the page". It should work. What I mean is that the even thought I "new up" a page and pass the into the the PageProvider/RequestHander. It still does a Page.class.newInstance() > > On Sa

Re: reload model on render

2012-03-04 Thread Sven Meier
If you're using LDM, you have to take care to *never* pull something out of the model and pass it somewhere else, e.g. never do: new FooComponent(model.getObject().getFoo()) new PropertyModel(foo.getBar(), "baz") As long as you adhere to this guideline LDM should just work. Sven nazeem schri

Re: Wicket 1.5 - Accessing the "Previously Requested Page"

2012-03-04 Thread Martin Grigorov
On Sat, Mar 3, 2012 at 4:48 PM, Douglas Ferguson wrote: > I think something else was interfering because it is working now. If you put > the setRootRequstMapper after all the other mounts it works. > It's a shame it has to be order dependent. With the current way you can handle some pages with H

Re: Button requires clicking multiple times in IE 8

2012-03-04 Thread Martin Grigorov
Hi, We are not aware of any problems similar to what you described. If you can reproduce the problem in a quickstart then attach it to a ticket in Jira and we will try to help/fix. On Fri, Mar 2, 2012 at 7:30 PM, azadbajaj wrote: > Hi, > I am using Apache wicket 1.4 for my application and this a

Re: redirecting in IRequestCyleListener.onException

2012-03-04 Thread Martin Grigorov
I'm not sure what you mean by "throws away the page". It should work. On Sat, Mar 3, 2012 at 7:19 PM, Douglas Ferguson wrote: > I decided to just put the exception in the session and just grab it from > there. Another place to put it is RequestCycle#metaData. This way you wont have to clean it.

Re: Eclipse, Wicket 1.5 and Jrebel

2012-03-04 Thread Jürgen Lind
Thanks for the hint, but I do not think that this is the problem. The resource (HTML file) is locked in the classes directory that is monitored by jRebel and not in the directory where the WAR-File is located. Anyway, I will be looking into that... J. On 04.03.2012 11:31, Christoph Leiter wro

Re: WicketTester & Spring

2012-03-04 Thread Douglas Ferguson
Yes. Now on to others. :( On Mar 4, 2012, at 4:27 AM, Per Newgro wrote: > So problem is solved? > Per > > Am 04.03.2012 11:22, schrieb Douglas Ferguson: >> I'm doing that. >> >> The fix involved moving the injector initialization to a template method so >> I could override. >> >>

Re: Eclipse, Wicket 1.5 and Jrebel

2012-03-04 Thread Christoph Leiter
Hi, do you use 1.5.4 with package resources? There's a bug that causes locked resources: https://issues.apache.org/jira/browse/WICKET-4359 Until 1.5.5 is released you can use 1.5.3, which is not affected by this bug. Christoph On 04.03.2012 10:29, Jürgen Lind wrote: Hi, I was just wond

Re: WicketTester & Spring

2012-03-04 Thread Per Newgro
So problem is solved? Per Am 04.03.2012 11:22, schrieb Douglas Ferguson: I'm doing that. The fix involved moving the injector initialization to a template method so I could override. tester = new WicketTester(new MyApp(){ @Override

Re: WicketTester & Spring

2012-03-04 Thread Douglas Ferguson
I'm doing that. The fix involved moving the injector initialization to a template method so I could override. tester = new WicketTester(new MyApp(){ @Override public SpringComponentInjector setupInjector() {

Eclipse, Wicket 1.5 and Jrebel

2012-03-04 Thread Jürgen Lind
Hi, I was just wondering if anybody is using the above combination. Since upgrading to 1.5. I have massive problems in reloading changed HTML templates as Eclipse sometimes tries to do a full build because of a locked resource. I am also in contact with the Jrebel guys, I just wanted to know if s

Re: WicketTester & Spring

2012-03-04 Thread Per Newgro
Assign the app to the wicket tester instance you use. See section below. Per Am 04.03.2012 10:11, schrieb Douglas Ferguson: What does this mean? "you have to set the app to wicket tester instance." Douglas On Mar 4, 2012, at 1:32 AM, Per Newgro wrote: And the app should know the context in

Re: WicketTester & Spring

2012-03-04 Thread Douglas Ferguson
What does this mean? "you have to set the app to wicket tester instance." Douglas On Mar 4, 2012, at 1:32 AM, Per Newgro wrote: > And the app should know the context in which way? No no you have to set the > app to wicket tester instance. > >tester = new WicketTester(new MyApp()); > > >