Re: RequestCycle and Jersey Jax-rs REST application

2017-09-22 Thread wicket-jokke
jdelaire wrote > Thanks Martin, I successfully injected one handmade! jdelaire, could you elaborate how you injected the request cycle? Would be much appreciated! -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html --

Re: RequestCycle and Jersey Jax-rs REST application

2017-05-08 Thread jdelaire
Thanks Martin, I successfully injected one handmade! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RequestCycle-and-Jersey-Jax-rs-REST-application-tp4677786p4677797.html Sent from the Users forum mailing list archive at Nabble.com

Re: RequestCycle and Jersey Jax-rs REST application

2017-05-05 Thread Martin Grigorov
get() always return null so it's ending with a null > pointer > exception, > > Is there any to either set myself the RequestCycle object or some > hack-alike > in order to be able to use this legacy code ? > > Thanks you! > > -- > View this message in context: ht

RequestCycle and Jersey Jax-rs REST application

2017-05-05 Thread jdelaire
that: RequestCycle.get().someMethod() And RequestCycle.get() always return null so it's ending with a null pointer exception, Is there any to either set myself the RequestCycle object or some hack-alike in order to be able to use this legacy code ? Thanks you! -- View this message in cont

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
lvl. >> >> I will try it with a custom Filter next. >> >> thanks, >> >> Ravi >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828p4670830.html >>

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Martin Grigorov
ut I still pass through the WicketFilter, since it is mapped to root lvl. > > I will try it with a custom Filter next. > > thanks, > > Ravi > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
try it with a custom Filter next. thanks, Ravi -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828p4670830.html Sent from the Users forum mailing list archive at Nabble.com

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Martin Grigorov
rg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > I don't see how to best approach that.Do you have any advice/ideas?I am > working with Wicket 7.M5.Thanks, Ravi > > -- > View this message in context: >

Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
message in context: http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
I have found another solution: in my scenario I can get parameters from DefaultMapperContext. newPageInstance(). Thanks for your help and tips. -- Daniel On Mon, Jan 19, 2015 at 5:44 PM, Daniel Stoch wrote: > This code is called inside custom > DefaultMapperContext.newPageInstance() implementati

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
This code is called inside custom DefaultMapperContext.newPageInstance() implementation and in custom IRequestMapper.mapRequest() method. -- Daniel On Mon, Jan 19, 2015 at 5:22 PM, Martin Grigorov wrote: > In what context do you need to extract these parameters ? > In what class is this code ? >

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Martin Grigorov
In what context do you need to extract these parameters ? In what class is this code ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 19, 2015 at 6:20 PM, Daniel Stoch wrote: > Sorry, my fault - I forgot to pass a parameter. > So: > requestCycle.getR

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
Sorry, my fault - I forgot to pass a parameter. So: requestCycle.getRequest().getUrl() returns full path including mountpath and parameters, eg.: somepath/param1/value1 But if I pass this to UrlPathPageParametersEncoder.decodePageParameters() this decodes somepath as a first argument. On Mon,

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Martin Grigorov
On Mon, Jan 19, 2015 at 6:09 PM, Daniel Stoch wrote: > On Mon, Jan 19, 2015 at 4:54 PM, Martin Grigorov > wrote: > > Hi, > > > > On Mon, Jan 19, 2015 at 4:38 PM, Daniel Stoch > > wrote: > > > >> Hi, > >> > >> In Wicket 1.4 I can get a page parameter value using this code: > >> > >> PagePara

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
"requestCycle.getRequest().getUrl() return null for me." - sorry, not null but returns only a mount path without paramname/paramvalue part. On Mon, Jan 19, 2015 at 5:09 PM, Daniel Stoch wrote: > On Mon, Jan 19, 2015 at 4:54 PM, Martin Grigorov wrote: >> Hi, >> >> On Mon, Jan 19, 2015 at 4:38 PM,

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
On Mon, Jan 19, 2015 at 4:54 PM, Martin Grigorov wrote: > Hi, > > On Mon, Jan 19, 2015 at 4:38 PM, Daniel Stoch > wrote: > >> Hi, >> >> In Wicket 1.4 I can get a page parameter value using this code: >> >> PageParameters pageParameters = requestCycle.getPageParameters(); >> String value =

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Martin Grigorov
Hi, On Mon, Jan 19, 2015 at 4:38 PM, Daniel Stoch wrote: > Hi, > > In Wicket 1.4 I can get a page parameter value using this code: > > PageParameters pageParameters = requestCycle.getPageParameters(); > String value = pageParameters.getString(paramName); > > > The problem is that in Wick

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
cleListeners().add(new PageRequestHandlerTracker()); > > private Page getCurrentPage(RequestCycle requestCycle) { > IPageRequestHandler pageRequestHandler = > PageRequestHandlerTracker.getLastHandler(requestCycle); > if ((pageRequestHandler != null) && (pageRequest

Re: How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
Maybe such workaround (not very elegant though): app.init(): getRequestCycleListeners().add(new PageRequestHandlerTracker()); private Page getCurrentPage(RequestCycle requestCycle) { IPageRequestHandler pageRequestHandler = PageRequestHandlerTracker.getLastHandler(requestCycle); if

How to get request/page parameters from RequestCycle?

2015-01-19 Thread Daniel Stoch
Hi, In Wicket 1.4 I can get a page parameter value using this code: PageParameters pageParameters = requestCycle.getPageParameters(); String value = pageParameters.getString(paramName); The problem is that in Wicket 6 there is no equivalent. I have tried with this solution: IReques

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
NTERNATIONAL GMBH > Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender) > Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, > Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann > Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 > Sitz der Gesellschaft

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
icht Frankfurt am Main HRB 55933 Sitz der Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567 -Ursprüngliche Nachricht- Von: Martin Grigorov [mailto:mgrigo...@apache.org] Gesendet: Montag, 13. Januar 2014 13:48 An: users@wicket.apache.org Betreff: Re: set RequestCycle in parallel Thre

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Ernesto Reinaldo Barreiro
nder), Dr. Ferri Abolhassan, > Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann > Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 > Sitz der Gesellschaft: Frankfurt am Main > WEEE-Reg.-Nr. DE50335567 > > > -Ursprüngliche Nachricht- > Von: Erne

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
Main HRB 55933 > Sitz der Gesellschaft: Frankfurt am Main > WEEE-Reg.-Nr. DE50335567 > > > -Ursprüngliche Nachricht- > Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] > Gesendet: Montag, 13. Januar 2014 13:09 > An: users@wicket.apache.org > Betreff: Re: set R

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
endet: Montag, 13. Januar 2014 13:09 An: users@wicket.apache.org Betreff: Re: set RequestCycle in parallel Thread Hi, Just put a div that covers the table and make it visible (hive it after AJAX). There are many ways to do this in Wicket one is using IAjaxIndicatorAware. There was an article on wick

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Ernesto Reinaldo Barreiro
che Nachricht- > Von: Martin Grigorov [mailto:mgrigo...@apache.org] > Gesendet: Montag, 13. Januar 2014 12:44 > An: users@wicket.apache.org > Betreff: Re: set RequestCycle in parallel Thread > > Hi, > > It won't be faster again. > Your best bet

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
h, Dr. Markus Müller, Georg Pepping, Hagen Rickmann > Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 > Sitz der Gesellschaft: Frankfurt am Main > WEEE-Reg.-Nr. DE50335567 > > > -Ursprüngliche Nachricht- > Von: Martin Grigorov [mailto:mgrigo...@apache.org] > Gesendet

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
sers@wicket.apache.org Betreff: Re: set RequestCycle in parallel Thread Hi, It won't be faster again. Your best bet is to use plain JavaScript so that the table is disabled before the Ajax call is even made to the server. See AjaxRequestAttributes's onBeforeSend() method (Indica

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Martin Grigorov
big. That's why I want to do this in a parallel thead. > > > Mit freundlichen Grüßen > Christoph Manig > > -Ursprüngliche Nachricht- > Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] > Gesendet: Montag, 13. Januar 2014 12:10 > An: users@wicket.apache.

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
Mit freundlichen Grüßen Christoph Manig -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Montag, 13. Januar 2014 12:10 An: users@wicket.apache.org Betreff: Re: set RequestCycle in parallel Thread Why do you need o start a new thread? Is I might as

Re: set RequestCycle in parallel Thread

2014-01-13 Thread Ernesto Reinaldo Barreiro
; > > } > }); > } > } > > When the button is clicked I start this thread, but I get this exception: > Exception in thread "Thread-69" org.apache.wicket.WicketRuntimeException: > No RequestCycle is currently set! > at org.

set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
uot;searchTable"); table.setEnabled(false); ajaxRequestTarget.add(table); } }); } } When the button is clicked I start this thread, but I get this exception: Exception in thread "Thread-69" org.apache.wicket.WicketRuntimeException: No RequestCycl

Re: RequestCycle with multiple handlers

2013-10-31 Thread Nick Pratt
I figured this out - the handler was being invoked by the JS component in two different places - one using Wicket.Ajax.get() and the other by direct jquery Ajax invocation (same callback URL). I swapped out the plain jQuery invocation for a Wicket.ajax call and everything works as expected. N

Re: RequestCycle with multiple handlers

2013-10-31 Thread Nick Pratt
The JS component sends JSON to the server and expects JSON in response. I was stepping through the Wicket code, and it looks like I can only invoke scheduleRequestHandlerAfterCurrent once since there is only a single 'next' variable. Any JS appended to the ART doesn't seem to get executed on the c

Re: RequestCycle with multiple handlers

2013-10-31 Thread Ernesto Reinaldo Barreiro
Hi, Yes I think than when you schedule new request target ajax request target is discarded. I do not know how this component works but maybe you can return your JSON as part as a javaScript eval target.append("myEvalaJSON('JSON')) ? On Thu, Oct 31, 2013 at 8:35 PM, Nick Pratt wrote: > Wicke

RequestCycle with multiple handlers

2013-10-31 Thread Nick Pratt
Wicket 6.11 I have an AbstractDefaultAjaxBehavior that returns JSON in its protected void respond( AjaxRequestTarget target ) method by: requestCycle.scheduleRequestHandlerAfterCurrent( new TextRequestHandler( "text/plain", "UTF-8", json ) ); This ADAB is used for returning status information ba

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-09 Thread Martin Dietze
On Mon, September 09, 2013, Martin Dietze wrote: > No, nothing of that kind. It's just a helper to make sure noone > uses Ajax on components which are added to the markup as > "..". OK, that one is solved, too. After replacing the Application used in this test by the one created to solve the

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-09 Thread Martin Dietze
On Sat, September 07, 2013, Martin Grigorov wrote: > > com.mycompany.request.WicketContainerChecker.onInstantiation(WicketContainerChecker.java:48) > > > > What is this doing ? > Does it start a new thread by chance ? > Or doing something like: ThreadContext.detach() / > ThreadContext.setRequestC

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-07 Thread Martin Grigorov
ame from the moment > I instanciate the test page, and the super constructor is > called. > > Here's the stacktrace again: > > org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set! > org.apache.wicket.Component.getRequest(Com

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-06 Thread Martin Dietze
; |this.tester.startPage( new FeedbackFormSpecEditorTestPage( formSpec ) ); |// ... I.e., the stacktrace below is exactly the same from the moment I instanciate the test page, and the super constructor is called. Here's the stacktrace again: org.apache.wicket.WicketRuntimeE

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-06 Thread Martin Grigorov
il with some exception inside Wicket. > > Since I am rather unfamiliar with the wicket test infrastructure, > I'd like to ask here, if the stuff below rings any bell with > anyone of you? Did I forget something fundamental? A missing > RequestCycle seems rather fundamental to m

Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-06 Thread Martin Dietze
test infrastructure, I'd like to ask here, if the stuff below rings any bell with anyone of you? Did I forget something fundamental? A missing RequestCycle seems rather fundamental to me, i.e. I'd expect the testing infrastructure to take care that there is one, or am I mistaken here

Re: NullPointerException at Session line 492 - current RequestCycle is null

2012-03-09 Thread Martin A
session. > > > > The problem is that, this piece of code being called by the client via > the > > REST service throws NullPointerException at Session line 492, which means > > that current RequestCycle is null. This happens due to calling > > invalidateNow(). I'm

Re: NullPointerException at Session line 492 - current RequestCycle is null

2012-03-08 Thread Martin Grigorov
stored in the session. > > The problem is that, this piece of code being called by the client via the > REST service throws NullPointerException at Session line 492, which means > that current RequestCycle is null. This happens due to calling > invalidateNow(). I'm using wicket

NullPointerException at Session line 492 - current RequestCycle is null

2012-03-07 Thread Martin A
is expired, so it'll lack all data I've stored in the session. The problem is that, this piece of code being called by the client via the REST service throws NullPointerException at Session line 492, which means that current RequestCycle is null. This happens due to calling invalidateNow(

Re: Strange issue in RequestCycle

2011-10-17 Thread Igor Vaynberg
On Sun, Oct 16, 2011 at 8:56 PM, Kent Tong wrote: > Hi Igor, > > Thanks for the reply! > >> the usecase is simple, one requesthandler handing work off to another >> one. an easy example is a request handler that handles a callback >> (such as a link being clicked) scheduling the handler that rende

Re: Strange issue in RequestCycle

2011-10-16 Thread Kent Tong
Hi Igor, Thanks for the reply! > the usecase is simple, one requesthandler handing work off to another > one. an easy example is a request handler that handles a callback > (such as a link being clicked) scheduling the handler that renders the > page after it handled the click. Yes, it is very

Re: Strange issue in RequestCycle

2011-10-16 Thread Igor Vaynberg
e is a request handler that handles a callback (such as a link being clicked) scheduling the handler that renders the page after it handled the click. > b) There is no execute() method in the RequestCycle class at all. So > there is actually no way for a request handler to call execute() on i

Strange issue in RequestCycle

2011-10-16 Thread Kent Tong
to be no code in Wicket doing that and I don't see why one would want to do that. What's the use case? b) There is no execute() method in the RequestCycle class at all. So there is actually no way for a request handler to call execute() on invoke another. Does it mean that there is inc

Re: Error detaching RequestCycle listener error

2011-09-22 Thread Martin A
Ready.. here it is: https://issues.apache.org/jira/browse/WICKET-4077 Regards On Thu, Sep 22, 2011 at 9:57 AM, Martin Grigorov wrote: > I see how this can happen ... > > I guess org.apache.wicket.serialize.java.JavaSerializer.serialize(Object) > returns null and logs an exception with message:

Re: Error detaching RequestCycle listener error

2011-09-21 Thread Martin Grigorov
I see how this can happen ... I guess org.apache.wicket.serialize.java.JavaSerializer.serialize(Object) returns null and logs an exception with message: Error serializing object " + object.getClass() + " [object=" + object + "]" please create a ticket On Wed, Sep 21, 2011 at 7:11 PM, Martin A w

Error detaching RequestCycle listener error

2011-09-21 Thread Martin A
Hello, guys, I encounter a strange error in my wicket logs. I don't have any idea what the reason may be. Would you give some hints? I have a simple WebApplication subclass with nothing special in it. Thank you! Here's the stacktrace 20-09-2011 16:46:44,875 ERROR org.apache.wicket.request.cycle

Re: 1.5: How to get Page instance from RequestCycle in IRequestCycleListener

2011-09-05 Thread Martin Grigorov
See how org.apache.wicket.protocol.http.RequestLoggerRequestCycleListener does this. On Sat, Sep 3, 2011 at 4:35 AM, wrote: > Hi, > > in 1.4, I could get the last page instance with > WebRequestCycle#getResponsePage() > > > In 1.5, I cannot find org.apache.wicket.Page instances, only > IRequesta

1.5: How to get Page instance from RequestCycle in IRequestCycleListener

2011-09-02 Thread bht
Hi, in 1.4, I could get the last page instance with WebRequestCycle#getResponsePage() In 1.5, I cannot find org.apache.wicket.Page instances, only IRequestablePage, and this indirectly via (RenderPageRequestHandler)getActiveRequestHandler() Any help is appreciated. Kind Regards, Bernard

Re: Set RequestCycle to not try RequestHandlers for static resources

2011-08-14 Thread Bruno Borges
I've edited Wiki and added the description for ignorePaths parameter: https://cwiki.apache.org/confluence/display/WICKET/Best+Practices+and+Gotchas#BestPracticesandGotchas- *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Sun, Aug 14, 2011 at 10:56 PM, Bruno Borges wrote: > Found...

Re: Set RequestCycle to not try RequestHandlers for static resources

2011-08-14 Thread Bruno Borges
Found... Add an init-param for WicketFilter named 'ignorePaths' with paths separated by comma. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Sun, Aug 14, 2011 at 10:44 PM, Bruno Borges wrote: > My Wicket app is mapped to / and because of that, lookups are being done > for static res

Set RequestCycle to not try RequestHandlers for static resources

2011-08-14 Thread Bruno Borges
My Wicket app is mapped to / and because of that, lookups are being done for static resources under /css, /js, /images and so on. Is there any way to configure Wicket to not trying to find a RequestHandler for these specific paths? These paths are going to be processed by the container. Thanks,

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ernesto Reinaldo Barreiro
;>> request >>> > however some resources are not needed to be allocated during some ajax >>> > calls. i need to filter such requests by knowing who called them? >>> > >>> > On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro < >>&

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
I allocate resources to each call from each >> request >> > however some resources are not needed to be allocated during some ajax >> > calls. i need to filter such requests by knowing who called them? >> > >> > On Mon, May 3, 2010 at

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
needed to be allocated during some ajax > > calls. i need to filter such requests by knowing who called them? > > > > On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > >> Hi, > >> > &

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ernesto Reinaldo Barreiro
; reier...@gmail.com> wrote: > >> Hi, >> >> > >> > 1. is there a way to know from RequestCycle if a call is Ajax? >> >>  AjaxRequestTarget.get() != null >> >> or >> >> ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isA

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
such requests by knowing who called them? On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > > > > 1. is there a way to know from RequestCycle if a call is Ajax? > > AjaxRequestTarget.get() != null > > or >

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ernesto Reinaldo Barreiro
Hi, > > 1. is there a way to know from RequestCycle if a call is Ajax? AjaxRequestTarget.get() != null or ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isAjax(); > 2. is there a way to know which Link reference initiated a call from > RequestCyclle? Do yo

Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Hi, I have 2 questions: 1. is there a way to know from RequestCycle if a call is Ajax? 2. is there a way to know which Link reference initiated a call from RequestCyclle? thanks --

RequestCycle infinite loop

2010-03-23 Thread Josh Chappelle
Hi, I have a BasePanel that has an html table in it. The subpanels all fill in the table rows. When I try to view the page I get the following error message: java.lang.IllegalStateException: Request processing executed 100 steps, which means it is probably in an infinite loop. org.a

Re: Portlet RequestCycle logRuntimeException

2009-11-27 Thread Martin Makundi
Hi! We get something similar often on our production site: http://osdir.com/ml/users-wicket.apache.org/2009-11/msg00825.html I am not sure, but maybe more often when bots (googlebot,msnbot) visit our site. It might have something to do with state? I am curious if anybody finds out what's going o

Portlet RequestCycle logRuntimeException

2009-11-27 Thread Goran Novak
I'm using wicket 1.4.1 for developing portlets on liferay 5.2.5 jboss 4.2.3. In my portlet on a page I have three DataView-es each with its own page navigation. I overrided PagingNavigation, PagingNavigator, PagingNavigationLink and PagingNavigationIncrementLink to be able to give paging navigato

Re: WicketFilter.getLastModified creates a RequestCycle but does not clean it up

2009-11-09 Thread Peter Dotchev
rs, >> >> I noticed that WicketFilter.getLastModified creates a RequestCycle but >> does >> not /detach /it, so onEndRequest is not called. >> I use JCR and open a session to it on first use (lazy init). I store the >> JCR >> session in th RequestCycle. I close the JCR session

Re: WicketFilter.getLastModified creates a RequestCycle but does not clean it up

2009-11-08 Thread Igor Vaynberg
peter, please open a jira issue. looks like a bug to me. -igor On Sat, Nov 7, 2009 at 1:52 PM, Peter Dotchev wrote: > Hi Wicketeers, > > I noticed that WicketFilter.getLastModified creates a RequestCycle but does > not /detach /it, so onEndRequest is not called. > I use JCR and

WicketFilter.getLastModified creates a RequestCycle but does not clean it up

2009-11-07 Thread Peter Dotchev
Hi Wicketeers, I noticed that WicketFilter.getLastModified creates a RequestCycle but does not /detach /it, so onEndRequest is not called. I use JCR and open a session to it on first use (lazy init). I store the JCR session in th RequestCycle. I close the JCR session in

Re: RequestCycle().urlFor not work

2009-09-12 Thread Dima Rzhevskiy
I use wicket 1.4.1, and I want send e-mail's notifications to users. I create problem code as simple as possible: only with AjaxLink Users of my site send internal messages. Messages will be composed in ModalWindow. Inside AjaxButton.onSumbit method e-mail notification sent. (Long way to carry abs

Re: RequestCycle().urlFor not work

2009-09-12 Thread Johan Compagner
Which version of wicket do you use? Why do you need absoluut urls? On 11/09/2009, Dima Rzhevskiy wrote: > Sorry, yes, urlFor return correct result. > toAbsolutePath(final String relativePagePath) do not return result what I > expected. > javadoc copy/pasted from toAbsolutePath(final String requ

Re: RequestCycle().urlFor not work

2009-09-11 Thread Dima Rzhevskiy
Sorry, yes, urlFor return correct result. toAbsolutePath(final String relativePagePath) do not return result what I expected. javadoc copy/pasted from toAbsolutePath(final String requestPath, String relativePagePath)... I undestand that it is nessesary to use toAbsolutePath(final String requestPa

Re: RequestCycle().urlFor not work

2009-09-11 Thread Jeremy Thomerson
what is incorrect about those URLs? they are relative - relative to the path you are on. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Sep 11, 2009 at 10:14 AM, Dima Rzhevskiy wrote: > Hi ! > > I create simple page X1 with AjaxLink : > .. > new AjaxLink("message"){ >@O

RequestCycle().urlFor not work

2009-09-11 Thread Dima Rzhevskiy
Hi ! I create simple page X1 with AjaxLink : .. new AjaxLink("message"){ @Override public void onClick(AjaxRequestTarget ajaxRequestTarget) { CharSequence url = getRequestCycle().urlFor(X1.class, new PageParameters());

Re: AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Eyal Golan
use this one. > > On Thu, Sep 3, 2009 at 5:27 AM, Eyal Golan wrote: > > > Hello, > > We have in our application the following code: > >/** > > * @see > > org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request, > > * org.apache.wicket.Respo

Re: AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Pedro Santos
RequestCycle(org.apache.wicket.Request, > * org.apache.wicket.Response) > */ >@Override >public RequestCycle newRequestCycle(final Request request, >final Response response) { >return new WebRequestCycle(this, (WebRequest) request, >

AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Eyal Golan
Hello, We have in our application the following code: /** * @see org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request, * org.apache.wicket.Response) */ @Override public RequestCycle newRequestCycle(final Request request, final Response

Re: RequestCycle bug at urlFor?

2009-08-25 Thread Vytautas Čivilis
all-tabpanel > > Just thought it would be relevant mentioning. > > Francisco > > > 2009/8/24 Vytautas Čivilis : >> Hi. >> >> I'm using RequestCycle urlFor method for building my link in this >> fashion: getRequestCycle().urlFor(this, ILinkListener.INT

Re: RequestCycle bug at urlFor?

2009-08-24 Thread francisco treacy
wse/WICKET-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Just thought it would be relevant mentioning. Francisco 2009/8/24 Vytautas Čivilis : > Hi. > > I'm using RequestCycle urlFor method for building my link in this > fashion: getRequestCycle().urlFor(this, ILinkListener.I

RequestCycle bug at urlFor?

2009-08-24 Thread Vytautas Čivilis
Hi. I'm using RequestCycle urlFor method for building my link in this fashion: getRequestCycle().urlFor(this, ILinkListener.INTERFACE, parameters). The idea is to have link with default behavior (implement onclick), but with the explicitly set parameters too. The parameters are being ask

Re: Can I send a parameter value to RequestCycle?

2009-08-07 Thread marius1maru
e a page that displays information about a particular item. On >>>>> that >>>>> page there is also an ajax tab panel (from wicket.extensions). >>>>>  For every item, the url looks like this: >>>>> http://mysite?itemId=-x. After the page e

Re: Can I send a parameter value to RequestCycle?

2009-08-06 Thread Alex Objelean
;>>  "itemId". Inside RequstCycle, if I try request.getUrl, I get something >>>> like this: >>>> mypage?wicket:interface=:5:10:::0:&random=0.8618006417527795. >>>> >>>>  My question is: can I somehow send a parameter(itemId)

Re: Can I send a parameter value to RequestCycle?

2009-08-06 Thread Igor Vaynberg
equest >>> cycle when a page expired exception is thrown? >>> Or how can I refresh the current page(witch has the itemId as parameter) >>> when the user clicks on an ajax link(in this case a tab) >>> after the page expired? >>> >>> Any sugestio

Re: Can I send a parameter value to RequestCycle?

2009-08-06 Thread marius1maru
> after the page expired? >> >> Any sugestion will be apreciated. >> >> >> > > ----- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-

Re: Can I send a parameter value to RequestCycle?

2009-08-05 Thread Igor Vaynberg
your request cycle has access to the url that caused the page expired exception. at that point you cannot know anything else because there is no longer a session either. what you might want to do is append itemid to the urls generated by the ajaxtabbedpanel. -igor On Wed, Aug 5, 2009 at 1:52 AM,

Can I send a parameter value to RequestCycle?

2009-08-05 Thread Marius Anton
Hello everybody, I hope that someone can help me on this. I have a page that displays information about a particular item. On that page there is also an ajax tab panel (from wicket.extensions). For every item, the url looks like this: http://mysite?itemId=-x. After the page expires

how to get RequestData in RequestCycle

2009-08-04 Thread Vytautas Čivilis
Hi. I'd like to log the request data (org.apache.wicket.protocol.http.RequestLogger.RequestData) in RequestCycle logRuntimeException. The RequestLogger keeps RequestData by it's private MetaData key in RequestCycle object. In other words, I can only completely re-implement Reques

Re: Using RequestCycle outside of a http request

2009-03-06 Thread Wayne Pope
ookmarkable link the >> same way and call toString() to get the good URL. However I get an >> exception about not running inside a request/application. >> >> Is it possible to create a new RequestCycle outside of a request (it >> doesn't

Re: Using RequestCycle outside of a http request

2009-03-06 Thread Jeremy Thomerson
good. > > However we need to move the email sending aspect to a batch/thread > (for daily updates). I would like create the bookmarkable link the > same way and call toString() to get the good URL. However I get an > exception about not running inside a request/application. > >

Using RequestCycle outside of a http request

2009-03-06 Thread Wayne Pope
sending aspect to a batch/thread (for daily updates). I would like create the bookmarkable link the same way and call toString() to get the good URL. However I get an exception about not running inside a request/application. Is it possible to create a new RequestCycle outside of a request (it

Re: can requestcycle or response be null in websession constructor?

2008-09-16 Thread lars vonk
Hi Igor, Thanks for replying. I already added null checks and additional logging to see which of the two (RequestCycle or Response) is actually null. It will take some time to get it in into production though so if you have any ideas in the meanwhile I'll be glad to hear them :-). Lars O

Re: can requestcycle or response be null in websession constructor?

2008-09-16 Thread Igor Vaynberg
not really sure when either would be null, seems strange. why dont you add null checks and if one of them is null dump the stacktrace into your log. -igor On Tue, Sep 16, 2008 at 1:47 AM, lars vonk <[EMAIL PROTECTED]> wrote: > Hi all, > > In the constructor of a custom websession we write a coock

Re: How to catch an Error (and not only RuntimeException) in the RequestCycle ?

2008-07-03 Thread Gerald Reinhart
jwcarman wrote: > > You shouldn't try to catch errors. > In order to log it, not to catch it. (the subject of the Thread is not well define) -- View this message in context: http://www.nabble.com/How-to-catch-an-Error-%28and-not-only-RuntimeException%29-in-th

Re: How to catch an Error (and not only RuntimeException) in the RequestCycle ?

2008-07-03 Thread James Carman
You shouldn't try to catch errors. On Thu, Jul 3, 2008 at 11:50 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm wondering how to catch Error or no RuntimeException in the RequestCycle. > > There is a RequestCycle.onRuntimeException(Page p

How to catch an Error (and not only RuntimeException) in the RequestCycle ?

2008-07-03 Thread Gerald Reinhart
Hi, I'm wondering how to catch Error or no RuntimeException in the RequestCycle. There is a RequestCycle.onRuntimeException(Page page, RuntimeException e) but not RequestCycle.onError(Page page, Error e) or RequestCycle.onThrowable(Page page, Throwable t)... Regards, Gerald Reinhart --

Re: WicketTester.startPage(page) throws "No requestCycle is currently set"

2008-04-21 Thread Federico Fanton
On Sat, 19 Apr 2008 10:39:41 +0200 "Johan Compagner" <[EMAIL PROTECTED]> wrote: > Somehow something detaches everything when it shouldnt have done it > yet in your example. Upload your test to a jira issue Done, WICKET-1558, thanks! --

Re: WicketTester.startPage(page) throws "No requestCycle is currently set"

2008-04-19 Thread Johan Compagner
testcase is > > WicketTester c = new WicketTester(); > c.createRequestCycle(); > c.startPage(new HomePage()); > > But I'm still getting "No requestCycle is currently set".. Before that, I > have a > > "there was an error cleaning up ta

Re: WicketTester.startPage(page) throws "No requestCycle is currently set"

2008-04-17 Thread Federico Fanton
orry, but I can't figure out how to use that call.. Now my testcase is WicketTester c = new WicketTester(); c.createRequestCycle(); c.startPage(new HomePage()); But I'm still getting "No requestCycle is currently set".. Before that, I have a "t

Re: WicketTester.startPage(page) throws "No requestCycle is currently set"

2008-04-16 Thread Frank Bille
sage with WicketTester in 1.3.3.. Whenever I use > startPage(Page) I get a "No requestcycle is currently set!" logged.. > To reproduce, just use a QuickStart with a completely static Homepage.html > (no wicket:id's) and an empty Homepage.class (just a "Homepage exte

  1   2   >