Wicket-auth-roles and wicket 6

2012-11-13 Thread lsm_7
Hi all, I am migrating a project from Wicket 1.4.7 to Wicket 6.2.0. Well, I have a problem when executing the application. Tomcat says that AuthenticatedWebApplication cannot be found. However, it is included in pom.xml and I can see it in Maven dependencies included in the project... Any idea??

Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread lsm_7
Yes, I have the jar in classpath: wicket-auth-roles-6.2.0.jar. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-roles-and-wicket-6-tp4653804p4653806.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 6 event script tag and JavaScriptFilteredIntoFooterHeaderResponse

2012-11-13 Thread Martin Grigorov
Hi, Please show us your code. This requirement works fine in my application. On Tue, Nov 13, 2012 at 2:31 AM, jlangston jrlangs...@gmail.com wrote: Wicket 6 has been very pleasant to work with thus far though I do have one question someone might be able to help me with. When using a

Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread Martin Grigorov
Share the problem and the solution so next time when someone has the same or similar problem (s)he can see your solution. On Tue, Nov 13, 2012 at 1:12 PM, lsm_7 luismi.amo...@gmail.com wrote: Well, I finally got the solution. There was a problem in Tomcat configuration. Thanks anyway! ;)

Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread lsm_7
Sure! The problem was that some dependencies were not included in Deployment Assembly configuration of Eclipse project. Maven dependencies must point to /WEB-INF/lib/ That was all. It seems a dummy thing but I spent some hours with that... -- View this message in context:

Re: Ability to simply enable jQuery.noConflict() globally for an application in Wicket 6

2012-11-13 Thread Martin Grigorov
Hi, For wicket-examples' http://www.wicket-library.com/wicket-examples-6.0.x/ajax/effectshttp://www.wicket-library.com/wicket-examples-6.0.x/ajax/effects?1 all I had to do was to add @Override public void renderHead(IHeaderResponse response) { super.renderHead(response);

Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread Martin Grigorov
Hi, Check the contents of your.war#WEB-INF/lib folder. Look for wicket-auth-roles-6.2.0.jar On Tue, Nov 13, 2012 at 10:47 AM, lsm_7 luismi.amo...@gmail.com wrote: Hi all, I am migrating a project from Wicket 1.4.7 to Wicket 6.2.0. Well, I have a problem when executing the application.

Re: Wicket-auth-roles and wicket 6

2012-11-13 Thread Martin Grigorov
Please paste the exception. On Tue, Nov 13, 2012 at 11:30 AM, lsm_7 luismi.amo...@gmail.com wrote: Yes, I have the jar in classpath: wicket-auth-roles-6.2.0.jar. -- View this message in context:

Re: Detecting HTML 5 Features in Wicket

2012-11-13 Thread Martin Grigorov
Hi, To detect browser capabilities you have to use WebClientInfo. See http://www.wicket-library.com/wicket-examples-6.0.x/hellobrowser/http://www.wicket-library.com/wicket-examples-6.0.x/hellobrowser/howdy By default there is no info for Web Storage, so you will need a custom BrowserInfoPage,

Re: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread Martin Grigorov
Hi, Can you be more specific in your question ? What exactly is the problem ? Is there a compile error or runtime one ? This code is not part of Wicket core and it is not easy to find the problem by just looking at this line. On Tue, Nov 13, 2012 at 12:39 AM, saty satya...@gmail.com wrote:

Re: need advice for wicket-plugin's implementation

2012-11-13 Thread Martin Grigorov
Hi, Since you use custom ClassLoaders you have to use custom IClassResolver too. On Fri, Nov 9, 2012 at 5:22 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I'm working to first version of wicket-plugin. I encounter some problems. In few words I implemented a PluginManagerInitializer that

Re: Wicket-Atmosphere complex JS

2012-11-13 Thread Emond Papegaaij
This is most likely caused by incorrect escaping, which might be a bug in Wicket or Wicket-Atmosphere. Can you try to create a quickstart to demonstrate the problem and file a Jira ticket? You can use the example application at https://github.com/papegaaij/wicket-atmosphere-quickstart Best

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Martin Grigorov
This is the reason why Wicket works with relative urls. The absolute ones do not work well behind proxies. On Mon, Nov 12, 2012 at 5:46 PM, Alec Swan alecs...@gmail.com wrote: It turned out that RequestCycle.get().getUrlRenderer().renderFullUrl(..) always returns URL starting with

Re: Session Destroy

2012-11-13 Thread Martin Grigorov
Hi, Servlet APIs provides http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSessionListener.html#sessionDestroyed(javax.servlet.http.HttpSessionEvent) From the passed event you can get the HttpSession. One of the attributes inside is the Wicket Session. On Mon, Nov 12, 2012 at 10:32

Re: Wicket 6 Atmosphere - where to configure filter-mapping dispatchers?

2012-11-13 Thread Emond Papegaaij
As far as I know, the latest versions of wicket-atmosphere and atmosphere should fall through to the default servlet handling if wicket does not handle the request. I don't know that much about servlet configuration, but I don't think wicket-atmoshpere changes anything in this context. You

Re: Detecting HTML 5 Features in Wicket

2012-11-13 Thread Martin Grigorov
On Mon, Nov 12, 2012 at 5:10 PM, Corbin, James jcor...@iqnavigator.comwrote: Thanks, I have already. I know how to detect HTML5 features using javascript, just wondered what is the best way to do so from Wicket code. Given your suggestion, how could I use Modernizr to set browser state

Re: Wicket-Atmosphere complex JS

2012-11-13 Thread Martin Grigorov
The problem is that Atmosphere sends the response in chunks. Jean Francois explained in Atmosphere mailing lists that a special Atmosphere has to be used that will collect the whole response before flushing it. On Tue, Nov 13, 2012 at 3:25 PM, Emond Papegaaij emond.papega...@topicus.nl wrote:

Re: Wicket-Atmosphere complex JS

2012-11-13 Thread Emond Papegaaij
I found the link to the wiki page explaining how to fix this: https://github.com/Atmosphere/atmosphere/wiki/Multiply-messages-arrives-as- single-response-body-or-message-received-are-incomplete It seems the trackMessageLength option needs to be enabled in the js, and some additional code is

Re: need advice for wicket-plugin's implementation

2012-11-13 Thread Jesse Long
See CompoundClassResolver. Designed for this purpose. On 12/11/2012 14:12, Martin Grigorov wrote: Hi, Since you use custom ClassLoaders you have to use custom IClassResolver too. On Fri, Nov 9, 2012 at 5:22 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I'm working to first version of

[Announce] WicketStuff 1.5.9 is released

2012-11-13 Thread Martin Grigorov
Hello, WicketStuff Core projects version 1.5.9 have been released and shortly will be available at Maven Central repository. They are built against Apache Wicket 1.5.9. The changelog is: Michael Mosmann (44): init commit tests are green package rename from kryo to kryo2

Re: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread saty
Thanks for responding, To use SCRIPTACULOUS js libraries: We are using in maven: dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-jslibraries/artifactId version1.5.8/version /dependency And than code like this @Override public void

Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread saty
Anyone? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/strange-issue-OnChangeAjaxBehavior-executed-only-once-tp4653798p4653834.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Wicket-Atmosphere complex JS

2012-11-13 Thread Pierre Goupil
Cheers, men, I'll try it ASAP! Big thanks, Pierre On Tue, Nov 13, 2012 at 3:49 PM, Emond Papegaaij emond.papega...@topicus.nl wrote: I found the link to the wiki page explaining how to fix this: https://github.com/Atmosphere/atmosphere/wiki/Multiply-messages-arrives-as-

Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread Uwe Schäfer
On 11/13/2012 04:13 PM, saty wrote: Anyone? wild guess, but could it be that the component with this behavior is rerendererd on the way back, but it's URL is now pointing to the initial version's behavior? (means you do not get different URLS for the callback) i tricked myself the other

Re: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread Martin Grigorov
On Tue, Nov 13, 2012 at 5:13 PM, saty satya...@gmail.com wrote: Thanks for responding, To use SCRIPTACULOUS js libraries: We are using in maven: dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-jslibraries/artifactId version1.5.8/version You

Re: how do you pass load=effects to scriptaculous.js

2012-11-13 Thread saty
Thanks, this is helpful. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-do-you-pass-load-effects-to-scriptaculous-js-tp4653797p4653841.html Sent from the Users forum mailing list archive at Nabble.com.

error Running wicket in development mode

2012-11-13 Thread saty
Switched to run in development mode but it throws below error, am i suppose to add markup for these? Did extensive google on this, found nothing so far, thanks Root cause: org.apache.wicket.WicketRuntimeException: The component(s) below failed to render. Possible reasons could be that: 1) you

Convert bookmarkable url to wicket relative url?

2012-11-13 Thread Corbin, James
I need some help with converting a bookmarkable url into a wicket relative url. My intent is to persist the url convert it to a wicket relative url and then redirect to that relative url. I am using Component.urlFor(Class, PageParameters) api to generate the bookmarkable url. Some interesting

Re: Convert bookmarkable url to wicket relative url?

2012-11-13 Thread Martin Grigorov
Hi, Do you use Wicket's CryptoMapper to encrypt the urls ? Because last time I checked it it encrypted the url segments themselves. Wicket 1.4 works with query parameter named 'x', but since 1.5 there is no such parameter. Additionally Component#urlFor() produces a url which is already relative

Re: error Running wicket in development mode

2012-11-13 Thread Martin Grigorov
It complains because this check is active only in DEV mode. See org.apache.wicket.settings.IDebugSettings#getComponentUseCheck On Tue, Nov 13, 2012 at 9:26 PM, saty satya...@gmail.com wrote: Just wanted to add that application is running fine in deployment mode, not sure why its complaining

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Alec Swan
Martin, My original problem was in the environment without any proxies but relative URLs on the modal dialog loaded from jQuery were still broken. If you have a chance could you please review my original email and suggest what can be done to fix the links? Thanks, Alec On Mon, Nov 12, 2012 at

Re: Wicket 6 event script tag and JavaScriptFilteredIntoFooterHeaderResponse

2012-11-13 Thread jlangston
Testing our application with wicket 6.0.0 it works that the event block is in the footer bucket but with wicket 6.2.0 it gets rendered in the head. I was able to see the same behavior using a quickstart on wicket 6.2.0. In the init method of WicketApplication I set the response decorator.

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Martin Grigorov
Hi, The problem is trivial. You are loading the markup of a _page_ into an element of another page. The loaded page doesn't know that it is being included in another page and its links doesn't count this. See ModalWindow from wicket-extensions. It has two modes - Page and Panel. When using a Page

Re: error Running wicket in development mode

2012-11-13 Thread saty
I can disable this using: getDebugSettings().setComponentUseCheck(false); what is the equivalent for below (wicket 1.4) in wicket 6+ getAjaxSettings().setAjaxDebugModeEnabled(true); -- View this message in context:

Re: error Running wicket in development mode

2012-11-13 Thread Martin Grigorov
org.apache.wicket.settings.IDebugSettings#setAjaxDebugModeEnabled On Tue, Nov 13, 2012 at 11:23 PM, saty satya...@gmail.com wrote: I can disable this using: getDebugSettings().setComponentUseCheck(false); what is the equivalent for below (wicket 1.4) in wicket 6+

Re: any book about wicket 6?

2012-11-13 Thread Martin Grigorov
Hi, I'm not aware of such. But that doesn't mean that someone doesn't write one in stealth mode. On Tue, Nov 13, 2012 at 9:29 PM, Djalma Silva Junior djalma.silva...@gmail.com wrote: Hi guys, Does anyone know of future book about 6 wicket? Thanks, -- Djalma G. Silva Jr -- Martin

Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread saty
Thanks, using the debug mode i see that it prints INFO: Channel '0' is busy - scheduling the callback to be executed when the previous request finish. not sure what it means. -- View this message in context:

Re: strange issue, OnChangeAjaxBehavior() executed only once

2012-11-13 Thread saty
Thanks martin. I see that i have two java script errors and these could be causing the problem. ReferenceError: Prototype is not defined TypeError: Tip is not a constructor These are related to prototype.js and wicketstuff-minis (tool tip) Any help on resolving these? Thanks -- View

Re: Wicket 6 Atmosphere - where to configure filter-mapping dispatchers?

2012-11-13 Thread pkc
Just got a response from Jeanfrancois in the atmosphere forum and dispatchers are currently not supported by the ReflectorServletProcessor. There is a general ticket open for better filter support: https://github.com/Atmosphere/atmosphere/issues/157 -- View this message in context:

Re: Wicket 6 and wicket push

2012-11-13 Thread pkc
The atmosphere support is experimental right? I just migrated from 1.5 to 6.2 and used the wicket atmosphere support but I'm having issues where pushes sometimes stop working. I thought I found a way around it by turning on atmosphere broadcaster caching and message length checking but then I

Re: Wicket 6 and wicket push

2012-11-13 Thread Martin Grigorov
Hi, I think Atmosphere provides a bit more than what Play has. Atmosphere falls back from WebSocket to Server Side events/Long polling/Streaming if any of those is not supported by the browser and/or server. Play (version 2.0.4 is latest at the moment) has modules for WebSocket or Comet but not

Re: Wicket 6 event script tag and JavaScriptFilteredIntoFooterHeaderResponse

2012-11-13 Thread Martin Grigorov
Hi, My setup is a bit longer: // this is the id of the HeaderResponseContainer in the end of the body String JsInFooterFilterName = jsInFooter; setHeaderResponseDecorator(new IHeaderResponseDecorator { public IHeaderResponse decorate(IHeaderResponse response) { String headBucket =