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
--
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
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
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
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
>>
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
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
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:
>
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...
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
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 ?
>
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
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,
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
"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,
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 =
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
cleListeners().add(new PageRequestHandlerTracker());
>
> private Page getCurrentPage(RequestCycle requestCycle) {
> IPageRequestHandler pageRequestHandler =
> PageRequestHandlerTracker.getLastHandler(requestCycle);
> if ((pageRequestHandler != null) && (pageRequest
Maybe such workaround (not very elegant though):
app.init():
getRequestCycleListeners().add(new PageRequestHandlerTracker());
private Page getCurrentPage(RequestCycle requestCycle) {
IPageRequestHandler pageRequestHandler =
PageRequestHandlerTracker.getLastHandler(requestCycle);
if
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
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
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
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
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
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
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
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
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
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.
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
;
>
> }
> });
> }
> }
>
> 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.
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
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
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
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
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
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
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
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
;
|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
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 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
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
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
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(
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
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
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
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
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:
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
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
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
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
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...
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
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,
;>> 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 <
>>&
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
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,
> >>
> &
; 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
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
>
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
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
--
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
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
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
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
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
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
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
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
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
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
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());
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
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,
>
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
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
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
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
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
;>> "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)
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
> after the page expired?
>>
>> Any sugestion will be apreciated.
>>
>>
>>
>
> -----
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-
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,
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
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
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
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.
>
>
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
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
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
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
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
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
--
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!
--
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
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
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 - 100 of 154 matches
Mail list logo