automatically sizing modal window

2010-09-25 Thread Josh Kamau
Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content? the default size seems sometimes too big and sometimes too small for the contents. Regards. Josh

Requests that lasts more than 1 minute

2010-09-25 Thread Predrag Spasojevic
I have an upload form where users can upload very large files. Upload can take more than 1 minute. If user during upload tries to access any other page that request will be blocked until upload is finished or until 1 minute passes. After 1 minute an exception is thrown: After 1 minute the

Re: Requests that lasts more than 1 minute

2010-09-25 Thread Johan Compagner
Any other page can't be true, access to that page is not possible, but other pages in other pagemaps should be accessable just fine that time out can be configured see irequestcyclesetttings - Original message - I have an upload form where users can upload very large files. Upload can

IndexedParamUrlCodingStrategy for multiple customers

2010-09-25 Thread Mathias Nilsson
Hi, I'm having trouble on setting up the following scenario. I'm developing a mediabase application that multiple users from different customers can consume. They will get to loginpage by http://mydomain.com/mediabase/customer1. The wicket application is http://mydomain.com/mediabase. I was

Re: IndexedParamUrlCodingStrategy for multiple customers

2010-09-25 Thread Mathias Nilsson
Another problem I'm facing with this is that I have to mount every customer in my application. The last mount will be the one wicket will use when setting responsePage etc. -- View this message in context:

Re: automatically sizing modal window

2010-09-25 Thread Fernando Wermus
I would like so much this feature. It is so important to me! On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content? the default size seems sometimes too big and

Re: IndexedParamUrlCodingStrategy for multiple customers

2010-09-25 Thread Mathias Nilsson
Ok I found http://blog.jteam.nl/2010/02/24/wicket-root-mounts/ http://blog.jteam.nl/2010/02/24/wicket-root-mounts/ that pretty much fixes my problem. -- View this message in context:

Clear cached key Localizer

2010-09-25 Thread Mathias Nilsson
Hi, I have copied the code from Localizer to support clearCachedKey. I want this so that a user can change a text in the database and update the key. I don't want to clear the entire cache because this will add roundtrips to the database. The getLocalizer() in component is final. Is there a

Re: Clear cached key Localizer

2010-09-25 Thread Mathias Nilsson
Just added these lines public void clearCachedKey(final String key, final Component component, final IModel? model){ clearCachedKey(key, component, model, null); } public void clearCachedKey(final String key, final Component component){

Re: Clear cached key Localizer

2010-09-25 Thread Mathias Nilsson
Sorry, This public void clearCachedKey(final String key, final Component component){ String cacheKey = getCacheKey(key, component); if( cacheKey != null ){ if( cache.containsKey( cacheKey )){ log.debug(

Re: Requests that lasts more than 1 minute

2010-09-25 Thread Johan Compagner
yes make sure that the upload uses a page in a different pagemap. On Sat, Sep 25, 2010 at 17:29, Predrag Spasojevic predrag.spasoje...@gmail.com wrote: It seems like any nonbookmarkable pages in the same page map are blocked. Increasing time its not very user friendly solution. Is there any

Re: dynamic crumb trail

2010-09-25 Thread LutherBaker
Ah yes, a closure of sorts. Thanks, that was exactly what I was looking for. Since I am passing this to 'super', one issue popped up. I'd like to use a StringResourceModel (and leverage some parameter substitution) but obviously, at page instantiation time, my current page doesn't exist and

Re: dynamic crumb trail

2010-09-25 Thread Igor Vaynberg
you dont want to pass a crumb around that contains references to other pages anyways, i would put all the resources that crumbs need into the application-scoped properties file. -igor On Sat, Sep 25, 2010 at 9:35 AM, LutherBaker lutherba...@gmail.com wrote: Ah yes, a closure of sorts. Thanks,

Re: dynamic crumb trail

2010-09-25 Thread Igor Vaynberg
alternatively, instead of passing the new crumb to super, you can pass around the entire trail, that way you can say super(trail); trail.add(new crumb(getstring(my.page.resource))); -igor On Sat, Sep 25, 2010 at 9:53 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you dont want to pass a

Is it a good practice to use intern() in all ids ?

2010-09-25 Thread smallufo
I am using a profiler to analyze an OOM heap-dump file , and find tons of duplicated Strings . These strings are mostly IDs of wicket components or PropertyModel's expression ... I wonder if it a good practice to intern() all these Strings ? such as : private final static String TIME_STR =

Re: Is it a good practice to use intern() in all ids ?

2010-09-25 Thread James Carman
If you use literal strings, they will be interned automatically. On Sat, Sep 25, 2010 at 9:53 PM, smallufo small...@gmail.com wrote: I am using a profiler to analyze an OOM heap-dump file , and find tons of duplicated Strings . These strings are mostly IDs of wicket components or

Re: Saving a component in session

2010-09-25 Thread Alexander Morozov
So IComponentResolver cannot modify component hierarchy. Right ? And there is no way for the author to create and handle special tag lt;translategt;. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Saving-a-component-in-session-tp2551649p2714088.html Sent from the