Re: Lazy loading exception despite of OpenSessionInViewFilter and object loading within a request

2011-09-05 Thread Florian B.
You're right. The redirect form the login page to the application's home page seems to be a new request. I've simply tested it by trying to access the user's roles directly after the user was retrieved from the database and before the redirect to the application's home page. Here the roles could

setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Hi, Is it a valid behavior that setRenderAllowed(...) method is called for invisible components (components that are not visible in hierarchy). I have a use case with DataView component displaying list of links. When I hide this DataView (eg. by setting dataView.setVisible(false)) then for each

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Wicket 1.4.18 On Mon, Sep 5, 2011 at 12:29 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, Is it a valid behavior that setRenderAllowed(...) method is called for invisible components (components that are not visible in hierarchy). I have a use case with DataView component displaying list

Re: Can't properly override getConverter on FormComponent subclasses

2011-09-05 Thread vineet semwal
In FormComponent class /** * subclasses would override it instead of getConverter(Class) so no cast is necessary */ public IConverterT getFCConverter(ClassTtype) { // -- returns converter for FormComponent's type return super.getConverter(type);

Re: Can't properly override getConverter on FormComponent subclasses

2011-09-05 Thread Fabio Cechinel Veronez
why getFCConverter would need a Class as parameter? I mean, FormComponent whould be already known whether by getType or by T type... wouldn't it? On Mon, Sep 5, 2011 at 8:24 AM, vineet semwal vineetsemwal1...@gmail.com wrote: In FormComponent class  /**        * subclasses would override

[Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Mike Mander
Hi, i couldn't find a working solution until now for the following usecase. I would like to include a css file from my package structure in a page. It sits in package-path/res/css. I included the css in my page: code @Override public void renderHead(IHeaderResponse response) {

RE: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Sotil Bertanzetti, Matteo
Hi, Maybe code @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderCSSReference(new PackageResourceReference(getClass(), res/css/screen.css)); } /code without mountResource in application.init() Matteo Sotil

Re: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Mike Mander
Am 05.09.2011 14:58, schrieb Sotil Bertanzetti, Matteo: Hi, Maybe code @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderCSSReference(new PackageResourceReference(getClass(), res/css/screen.css)); }

Setting new DynamicImageResource to Image and update it

2011-09-05 Thread mapping
Hello guys, I have the following problem: I have a view that shows images within itself and also have a method that updates the model of that view. While updating the model I set the images new DynamicImageResource where I return another image byte data. However, getImageData() of the new

Re: Setting new DynamicImageResource to Image and update it

2011-09-05 Thread Ernesto Reinaldo Barreiro
Do you use NonCachingImage? Regards, Ernesto On Mon, Sep 5, 2011 at 3:27 PM, mapp...@mail.bg wrote: Hello guys, I have the following problem: I have a view that shows images within itself and also have a method that updates the model of that view. While updating the model I set the

Re: Setting new DynamicImageResource to Image and update it

2011-09-05 Thread mapping
Thank you, it did the trick :) I thought it was up to the resource. Best regards, Martin - Цитат от Ernesto Reinaldo Barreiro (reier...@gmail.com), на 05.09.2011 в 16:39 - Do you use NonCachingImage? Regards, Ernesto On Mon, Sep 5, 2011 at 3:27 PM, wrote: Hello guys,

RE: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Sotil Bertanzetti, Matteo
I don't know, I'm migratin to Wicket 1.5 too. I think PackageResourceReference and SharedResourceReference are two different approaches, you can use one or other. Matteo Sotil -Mensaje original- De: Mike Mander [mailto:wicket-m...@gmx.de] Enviado el: lunes, 05 de septiembre de 2011

Re: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Martin Grigorov
SharedResourceReference should be used with application.getSharedResources().add(some/key, new SomeResource()); mountResources(path, ResRef) is something similar, it is new in 1.5 and is more focused into the mount path (/some/nice/url), while SharedResources is more about the resource and its

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Andrea Del Bene
Hi, I'm not completely sure, but setRenderAllowed is called to check rendering authorization, so it should be called also on invisible components. Wicket 1.4.18 On Mon, Sep 5, 2011 at 12:29 PM, Daniel Stochdaniel.st...@gmail.com wrote: Hi, Is it a valid behavior that

Re: Can't properly override getConverter on FormComponent subclasses

2011-09-05 Thread vineet semwal
i think it would need class because getConverter itself needs class gettype() resolves class from the class name afaik .. On Mon, Sep 5, 2011 at 5:17 PM, Fabio Cechinel Veronez fabio.vero...@gmail.com wrote: why getFCConverter would need a Class as parameter? I mean, FormComponent whould

WicketFilter always sets expires header to 1h for shared resources if browser sends if-modified-since header

2011-09-05 Thread Thomas Heigl
Hey all, I've just been investigating some performance problems indicated by Page Speed. It reported that some of my resources did not send far future expiry headers, although my default expiry and my expiry for all resources is set to one year. After some debugging, I found out that Wicket

Re: WicketFilter always sets expires header to 1h for shared resources if browser sends if-modified-since header

2011-09-05 Thread Martin Grigorov
Caching is improved a lot in Wicket 1.5, consider upgrading. You can always override headers set by Wicket by introducing your own servlet filter which wraps WicketFilter and resets the headers after WicketFilter returns, i.e. chain.doFilter() call in your filter. On Mon, Sep 5, 2011 at 5:42 PM,

Re: Know if FileUploadField has value set before its parent form is submitted and file gets uploaded

2011-09-05 Thread Martin Grigorov
Check https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent/wicket-html5/src/main/java/org/wicketstuff/html5/fileapi and its examples. But this uses HTML5 APIs and wont work on your favorite Internet Explorer. On Sun, Sep 4, 2011 at 7:35 PM, Christian Huber

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, b...@actrix.gen.nz 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

Wicket job

2011-09-05 Thread Martin Makundi
Hi! Looking for an on-site Wicket developer/consultant, Helsinki, Finland: If you are interested, apply at http://www.youritprofile.com/job_ad/id/3375 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: [Migration 1.5] How to map custom-layout of urls?

2011-09-05 Thread Martin Grigorov
Yes, you need a custom IRequestMapper. You need to set it as root mapper (see HttpsMapper and CryptoMapper examples). You don't need custom IPageParametersEncoder unless you encode the parameters in a special way. The url you showed below has no parameters at all. On Sat, Sep 3, 2011 at 5:25 PM,

Re: passing information to the modal window class

2011-09-05 Thread Martin Grigorov
I see many * characters in your code, but there is no question. On Fri, Sep 2, 2011 at 6:05 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, I have a modal window defined like in the following example: *public class *Modal *extends *WebPage {  *public *Modal()  {  *final *ModalWindow

Re: WicketFilter always sets expires header to 1h for shared resources if browser sends if-modified-since header

2011-09-05 Thread Thomas Heigl
Hi Martin, Thanks for the fast reply! Upgrading to Wicket 1.5 is on our roadmap but is quite a lot of work for a bigger project and we most likely won't upgrade until the final release. As we use a Wicket application managed by JBoss-Seam, wrapping the wicket filter is not trivial either. Is

Re: WicketFilter always sets expires header to 1h for shared resources if browser sends if-modified-since header

2011-09-05 Thread Martin Grigorov
Because this change may confuse some apps which just work at the moment and start behaving strangely in 1.4.19 On Mon, Sep 5, 2011 at 6:37 PM, Thomas Heigl tho...@umschalt.com wrote: Hi Martin, Thanks for the fast reply! Upgrading to Wicket 1.5 is on our roadmap but is quite a lot of work for

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Hi, Yes, it should be called also on invisible components, but only when it is any chance that these components can be rendered. If one of theirs parents are not visible, then such component will not be rendered. In my scenario DataView is visible only when dataView.getItemCount() 0. But it

Re: [Migration 1.5] How to map custom-layout of urls?

2011-09-05 Thread Per Newgro
Thanks Martin, the parameters are the appendixes to page name (-ti123-ki345-ii789). So i think i have to provide and encoder. Cheers Per Yes, you need a custom IRequestMapper. You need to set it as root mapper (see HttpsMapper and CryptoMapper examples). You don't need custom

Re: [Migration 1.5] How to map custom-layout of urls?

2011-09-05 Thread Thomas Matthijs
It has some basic support for this, you can just mountPage(ShowTheme-${foo}, ShowPage.class); and then foo will in the PageParameters check MountedMapper javadoc On Mon, Sep 5, 2011 at 8:10 PM, Per Newgro per.new...@gmx.ch wrote: Thanks Martin, the parameters are the appendixes to page name