Hi,
I created a quickstart but was unable to reproduce the problem.
I traced down the roots of the error and found out that the
LoadableDetachableModel-s that my repeater views use get their object
detached IMMEDIATELY after page gets rendered. And this happens only when
the application is browsed via IE.
Here is a snippet from the logs:
10-09-2011 19:15:56,197 DEBUG org.apache.wicket.Page.componentRendered:395
- Rendered [Page class = ui.Canvas, id = 1, version = 0]
10-09-2011 19:15:56,197 DEBUG org.apache.wicket.Component.render:2555 - End
render [Page class = ui.Canvas, id = 1, version = 0]
10-09-2011 19:15:56,199 DEBUG org.apache.wicket.Page.onDetach:1568 - ending
request for page [Page class = ui.DispatchPage, id = 0, version = 0],
request [method = POST, protocol = HTTP/1.1, requestURL =
http://**********/****/, contentType = application/x-www-form-urlencoded,
contentLength = 447, contextPath = /****, pathInfo = null, requestURI =
/****/, servletPath = /, pathTranslated = null]
10-09-2011 19:15:56,199 DEBUG org.apache.wicket.Page.onDetach:1568 - ending
request for page [Page class = ui.Canvas, id = 1, version = 0], request
[method = POST, protocol = HTTP/1.1, requestURL = http://**********/****/,
contentType = application/x-www-form-urlencoded, contentLength = 447,
contextPath = /****, pathInfo = null, requestURI = /****/, servletPath = /,
pathTranslated = null]
10-09-2011 19:15:56,199 DEBUG
org.apache.wicket.model.LoadableDetachableModel.detach:106 - removed
transient object for
util.ComparisonDataProvider$1@3a78ad:attached=false:tempModelObject=[null],
requestCycle [RequestCycle@1313e0e thread=http-8080-1]
....
....
As you can see model is detached right after page render and therefore the
model object's data cannot be processed.
Thank you,
Martin
----- Цитат от Carl-Eric Menzel ([email protected]), на
09.09.2011 в 12:14 ----- Do you have a quickstart to try this?
Carl-Eric
www.wicketbuch.de
On Thu, 8 Sep 2011 13:37:03 -0000
[email protected] wrote:
Would anyone help me with this? I'm desparate on fixing it....
Thank you,
Martin
----- Цитат от [email protected], на 06.09.2011 в 15:51
-----
Hello,
I have the following problem. I have a repeater which declares Images
as so:
NonCachingImage image1 = new NonCachingImage("image1", new
BufferedDynamicImageResource() {
private static final long serialVersionUID = 1L;
@Override
protected byte[] getImageData() {
return detachable.getObject().getItem1().getThumbData();
}
});
When the repeater is rendered and displayed in IE, getImageData is not
called and therefore images are not shown. However, if I copy the
image src
and hit that URL, the image gets loaded.
I believe for some reason IE thinks the image is cached, although it
has never beed loaded and therefore does not retrieve the source of
the image. Don't know if this is the real reason.
Has anybody been into this issue before?
Regards,
Martin
-------------------------------------
Сега е по-лесно да получиш най-добрата
куриерска услуга на
телефон *3456(*DHL6)
-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите
характеристики на
българския пазар - 10 GB пощенска кутия, 20 MB
прикрепен файл,
безплатен POP3, мобилна версия, SMS
известяване и други.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар
- 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия,
SMS известяване и други.