Hi we're using getRequestCycle().scheduleRequestHandlerAfterCurrent,
various places in our application which causes 500 error, is there any we
to replace, lines below because my solution which is:
String url = RequestCycle.get().urlFor(rs).toString();
throw new
thanks for a replay, yes there is an exception in a log
here's an example
HTTP Status 500 - Cannot call sendRedirect() after the response has been
committed
--
*type* Exception report
*message* *Cannot call sendRedirect() after the response has been committed*
Wicket by default buffers the write/flush of the markup to the browser
until the end of the the request cycle.
The exception says that the application has already written some
bytes/characters to the browser and it is not possible to make a redirect,
because the response headers are already sent.
It seems we cannot reproduce this locally - only in production. Difference
being apache is in front of tomcat. If we comment out the following code we
have no issues:
setPageRendererProvider(new IPageRendererProvider() {
@Override public PageRenderer get(final RenderPageRequestHandler
Hi,
Error 500 means that there must be an exception in the logs. What is it ?
What exactly doesn't work means in your case ? Another exception, or
no-op behavior, or ... ? Please give more details.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, Jan 26,
Hi everyone,
I was just playing around a little bit with shape-outside and wrapped
the css stuff into a small wicket component.
https://github.com/klopfdreh/wicket-components-playground
(Search for HTML5 Shapes)
The browsers which support this functionality are listed here:
Hi,
I don't see any better way.
Either you use a simple switch statement or a special factory class it is
almost the same - you have to keep it up-to-date with the list of supported
locales/markets.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Tue, Jan 27,
Thank you Tobias,
but this will unfortunately just solve the problem having the same validator
with different parameters. To add a market specific validator, I still would
need to switch case the locale.
Any other ideas?
Hi,
you could place the values in the locale file and parse them.
Hi,
you could switch the locale of the session
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/protocol/http/WebSession.html
setLocale(Locale locale)
Here is an example in which the locale is switched by a link click:
Ah, just one addition: No you would not require to switch the parameter,
because the parameter would remain the same - in the property files it would
look like this:
Propertyfile for en_GB:
maxvalue=200
Propertyfile for de_DE:
maxvalue=100
in the code you would receive the max value based
On Tue, Jan 27, 2015 at 9:16 AM, Tobias Soloschenko
tobiassolosche...@googlemail.com wrote:
Ah, just one addition: No you would not require to switch the parameter,
because the parameter would remain the same - in the property files it
would look like this:
Propertyfile for en_GB:
Hi Tobias,
Have you considered using
https://github.com/adobe-webplatform/css-shapes-polyfill as a fallback for
the browsers which do not yet support the new feature ?
About the API:
#shapeType(new CircleShapeType(...))
#transitionShapeType(new CircleShapeType(50%))
I find the names a bit
Hi,
very good points! I am going to change the API calls the way you suggested.
Demo: Nice service - I'm looking forward to also be a happy user of RedHat's
OpenShift. ;-D
kind regards
Tobias
Am 27.01.2015 um 08:37 schrieb Martin Grigorov mgrigo...@apache.org:
Hi Tobias,
Have you
Hey,
I would be interested to know if there is a builtin mechanism to add specific
validators for a certain locale.
For example:
de_DE - StringValidator.maximumLength(100)
en_GB - StringValidator.maximumLength(200);
en_US - StringValidator.maximumLength(200);
AnotherValidatorOnlyForUS();
My
Hi,
you could place the values in the locale file and parse them.
Integer.parseInt(getString(maxvalue));
kind regards
Tobias
Am 26.01.2015 um 11:01 schrieb Christian Schröter
christian.schroe...@1und1.de:
Hey,
I would be interested to know if there is a builtin mechanism to add
Hi,
I find it tacky to have to wrap the entire DataTable in a span or a
Div for check group
usually your web designer will use enough DIVs in the markup anyway, so
you rarely have to add an additional one just for your Wicket component.
AjaxFormChoiceComponentUpdatingBehavior get called
Hello again,
Thank you for your hints. Ajax debug shows nothing interesting. It seems it
has to do with
target.appendJavaScript(setTimeout(\window.location.href=' + url +
'\, 100);); from AjaxDownload. If I comment this the timer works but not
file is downloaded. I refreshed manually the
17 matches
Mail list logo