Component.isVisibleInHierarchy() - expensive or not?

2013-10-03 Thread Marios Skounakis
Hi all, I have a form with a few hundred components and I am calling isVisibleInHierarchy for each one of them twice. The reason I am doing this is because I am running some validations in onValidateModelObjects() and I want them skip validations for invisible components in some cases. None of th

Re: Problems with Autocomplete in 6.11.0

2013-10-03 Thread manuelbarzi
followed your patch, Jan, but the indicator was not hiding when deleting the input value (backspace key). so forced to hide the indicator on auto complete hiding [1]. for the moment it works, until the issue is solved in the original component. [1] wicket-autocomplete.js function hideAutoComplete

Session expired controll - timeout redirect

2013-10-03 Thread sidorczukp
Hi, I set up session expiration in web.xml: 1 COOKIE and set up: getApplicationSettings().setPageExpiredErrorPage( SignInPage.class ); but it doesn't work: When tomcat session expired user is not redirecting to another site, but it throws error with null session variable.

CryptoMapper and mounted pages.

2013-10-03 Thread Roman Grigoriadi
Hello Wicket users! I am trying to make a CryptoMapper working for a mounted page, in a way, that the URL in browser would be unencrypted, but all the other stuff like ListenerInterface links urls will be encrypted. I am using a wicket 1.5.10, but I tried to reproduce it on a quickstart project w

Re: Problems with Autocomplete in 6.11.0

2013-10-03 Thread Andrea Del Bene
Thank you for your feedbacks, I'm working on a patch! followed your patch, Jan, but the indicator was not hiding when deleting the input value (backspace key). so forced to hide the indicator on auto complete hiding [1]. for the moment it works, until the issue is solved in the original component

Error in authentication

2013-10-03 Thread MartinoSuperman
Hi, I have an authentication error. I do not know what I am doing wrong. The error is as follows: Last cause: org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;)Z WicketMessage: Method onFormSubmitted of interface org.apache.wick

Dynamic markup loading & caching in base page

2013-10-03 Thread Bas Gooren
Hi *, We built an app which has a base page, and several child pages which inherit from the base page. The app is themeable, and one of the requirements of the app is/was that these themes should be manageable. This means we have a set of themes which can be changed on-the-fly. To add flexibi

Re: Dynamic markup loading & caching in base page

2013-10-03 Thread Bas Gooren
Sorry, I forgot to add that this is a wicket 1.5 app. As a quick follow-up, after looking at the InheritedMarkupMarkupLoader, I see that it delegates loading of the parent (base page) markup to the MarkupFactory. I think that means that our current setup should work, when it doesn't. Met vri

Re: Error in authentication

2013-10-03 Thread Gabriel Landon
Did you check that your are using the same version for both jar? pom.xml : *6.11.0* org.apache.wicket *wicket-core* *${wicket.version}* org.apache.wicket *wicket-auth-roles* *${wicket.version}*

Re: Error in authentication

2013-10-03 Thread Francois Meillet
Hi, java.lang.NoSuchMethodError: org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;) means that you call the method with string arrays. The signature is public abstract boolean authenticate(final String username, final St

Re: Dynamic markup loading & caching in base page

2013-10-03 Thread Bas Gooren
Another hour of debugging revealed the problem... The MarkupCache method loadMarkupAndWatchForChanges has code which shortcuts our custom cache key: // get the location String String locationString = markupResourceStream.locationAsString(); if (locationString == null)

Re: Error in authentication

2013-10-03 Thread MartinoSuperman
Hi, Thanks!!! I changed the version of wicket-auth-roles to 6.0.0. That is the version I use in my wicket-core. But now, I am getting a different. Now a warning: WARNING: Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[username]

Re: Error in authentication

2013-10-03 Thread Francois Meillet
Use generics like PropertyModel(person, "username") François Meillet Formation Wicket - Développement Wicket Le 4 oct. 2013 à 00:42, MartinoSuperman a écrit : > Hi, > > Thanks!!! > > I changed the version of wicket-auth-roles to 6.0.0. That is the version I > use in my wicket-core. > >