Re: ModalWindow and jQuery mousedown binding

2014-03-10 Thread Martin Grigorov
Hi, I don't know what is the reason to stop the event at https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js?source=c#L1186 You can remove that binding with: jQuery('.wicket-modal

Re: Wicket and memory, caching

2014-03-10 Thread Martin Grigorov
Hi, On Sat, Mar 8, 2014 at 9:24 PM, Brown, Berlin [PRI-1PP] berlin.br...@primerica.com wrote: We are running into memory issues and it looks like wicket stores a lot of data in heap memory but also a lot of data is stored in session. Some numbers that prove your words would really help

Re: Show textfield as plaintext when disabled?

2014-03-10 Thread Entropy
Igor, This was great. Exactly what I needed. I applied this to my TextField and DropDownChoice with a few tweaks and it's perfect. But when I went to do the same to TextArea, I am told that onComponentTagBody is final and cannot be overridden. So i tired without that method overidden like so:

Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
hi, i want to add noise to the url of a ResourceLink component (to avoid browser caching problem) ... i looked at Image#addAntiCacheParameter and try to put it in onComponentTag of my ResourceLink @Override protected void onComponentTag(ComponentTag tag) {

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
Links use a href attribute instead of src. Sven On 03/10/2014 03:19 PM, BenHoit wrote: hi, i want to add noise to the url of a ResourceLink component (to avoid browser caching problem) ... i looked at Image#addAntiCacheParameter and try to put it in onComponentTag of my ResourceLink

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
thanks, i modify my onComponentTag @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString(href); log.debug(URL = +url); url = url + antiCache=

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
Are you using popupSettings? Sven On 03/10/2014 04:01 PM, BenHoit wrote: thanks, i modify my onComponentTag @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString(href);

RE: Wicket and memory, caching

2014-03-10 Thread Brown, Berlin [PRI-1PP]
Berlin Brown – Software Developer Primerica Online Primerica_Online_-_Java_Development 770-564-6374 -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, March 10, 2014 4:03 AM To: users@wicket.apache.org Subject: Re: Wicket and memory, caching Hi,

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
yes i'm using popupSettings final String mime=application/xml; ByteArrayResource res = new ByteArrayResource(mime,dSOBean.getOrder()); ResourceLinkByteArrayResource resourceL= new ResourceLinkByteArrayResource(myF, res) { @Override

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
Hi, take a look at Link#onComponentTag() on why this does not work in your case. You should override #getURL() instead. Sven On 03/10/2014 04:14 PM, BenHoit wrote: yes i'm using popupSettings final String mime=application/xml; ByteArrayResource res = new

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
unfortunately getUrl is : protected final CharSequence getURL() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Add-noise-to-the-URL-of-ResourceLink-component-tp4664870p4664879.html Sent from the Users forum mailing list archive at Nabble.com.

mounting // mapping subdomain HomePage

2014-03-10 Thread Simon B
Hi, I want one instance of Wicket to handle different subdomains, so for example: http://mydomain.com/ http://www.mydomain.com/ Map to GeneralHomePage.class and http://foo.mydomain.com/ Maps to FooHomePage.class and http://bar.mydomain.com/ Maps to BarHomePage.class sorry for the unoriginal

RE: Add noise to the URL of ResourceLink component

2014-03-10 Thread Stijn de Witt
This! There are so many methods in Wicket final... I often ended up copying a whole class just because the method I wanted to override was final... -Original Message- From: BenHoit [mailto:benoit.lanoise...@orange.com] Sent: maandag 10 maart 2014 16:38 To: users@wicket.apache.org

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Martin Grigorov
On Mon, Mar 10, 2014 at 6:20 PM, Stijn de Witt stijn.dew...@planonsoftware.com wrote: This! There are so many methods in Wicket final... I often ended up copying a whole class just because the method I wanted to override was final... Next time start a new thread asking to remove some

Re: mounting // mapping subdomain HomePage

2014-03-10 Thread Martin Grigorov
Hi, Create a new IRequestMapper and setup it as a root mapper (see HttpsMapper and CryptoMapper for example). If the request's Url has no segments then use the HttpServletRequest (request.getContainerObjec()) to read the host and from this decide which page to return (new

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
finally, it works with Sven's solution but tag html has to be as i can see in the link class (initially it was button in my html). I create a ResourceLinkWithAnticache like this : public class ResourceLinkWithAnticacheT extends ResourceLinkT { public ResourceLinkWithAnticache(String

ListView - onComponentTag

2014-03-10 Thread Nick Pratt
Is there any reason why onComponentTag() wouldn't be invoked on a ListView: ListViewUser users = new ListViewUser( team-members, usersModel ) { @Override protected void onComponentTag( ComponentTag tag ) { super.onComponentTag( tag ); int i = 0; } ... I set a breakpoint on 'int i =0'; but

Re: ListView - onComponentTag

2014-03-10 Thread Sven Meier
Hi, ListView uses its markup tag to render each of its items and is not visible in the output by itself - thus it doesn't contribute anything to the component tag. Sven On 03/10/2014 07:19 PM, Nick Pratt wrote: Is there any reason why onComponentTag() wouldn't be invoked on a ListView:

Wicket with X-editable

2014-03-10 Thread Jered Myers
Has anybody tried to work with Wicket and X-editable (http://vitalets.github.io/x-editable/index.html)? If so, what was your experience (e.g. X-editable stability, difficulty to implement, etc.)? I am curious if it would be a good idea to go down the road of making my Wicket application run

Re: Wicket with X-editable

2014-03-10 Thread Ernesto Reinaldo Barreiro
IMHO this should be very easy to implement/integrate with Wicket: judging from the documentation. I haven't used the library myself, so I might be missing some nuances/caveats... On Tue, Mar 11, 2014 at 12:03 AM, Jered Myers jer...@maplewoodsoftware.comwrote: Has anybody tried to work with