Re: IE 6 - 'Wicket' is undefined

2011-06-24 Thread Martin Makundi
Hi! > For all poor souls that may run into this problem here is a sanity > check to consider. > > Attempt to run the following URL: > http://yourmachinename[:port]/appRoot/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js Interesting. It might be related to: http://apache-wicke

Re: IE 6 - 'Wicket' is undefined

2011-06-24 Thread Sven Meier
Thanks Dave, that's a good advice. Just out of curiosity: what did go wrong with your deployment? Best, Sven On 25.06.2011 04:26, D D wrote: For all poor souls that may run into this problem here is a sanity check to consider. Attempt to run the following URL: http://yourmachinename[:port]/ap

[Announce] Wicket 1.5-RC5.1 is released

2011-06-24 Thread Martin Grigorov
The Wicket Team is proud to introduce the fifth Release Candidate in Wicket 1.5 series. It includes bug fixes and improvements reported against 1.5-RC4.2. See the changelog for full list. More detailed migration notes are available on our [Migrate to 1.5 Wiki Page](https://cwiki.apache.org/WICKET/

Re: IE 6 - 'Wicket' is undefined

2011-06-24 Thread D D
For all poor souls that may run into this problem here is a sanity check to consider. Attempt to run the following URL: http://yourmachinename[:port]/appRoot/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js Your browser should attempt downloading a file (in case of IE6 - that's

Re: Check the markup in onBeforeRender

2011-06-24 Thread Igor Vaynberg
in 1.5 you can use getMarkup() and you can move your code to onMarkupAttached() -igor On Fri, Jun 24, 2011 at 12:39 PM, Adriano dos Santos Fernandes wrote: > Hi! > > I want to add some components to the hierarchy dynamically based on the > wicket:id presents in the HTML. > > Basically, I want to

Re: IE 6 - 'Wicket' is undefined

2011-06-24 Thread Martin Makundi
Hi! It will probably cost you quite some time but you can debug the order of js library references being loaded in various situations. Wicket is a javascript reference to the wicket js methods and if "Wicket" is undefined it means it is not loaded at that time... for some reason. ** Martin 201

Check the markup in onBeforeRender

2011-06-24 Thread Adriano dos Santos Fernandes
Hi! I want to add some components to the hierarchy dynamically based on the wicket:id presents in the HTML. Basically, I want to check if an used wicket:id was not explicitly added (with add method) by the user and then (in some cases) add it. But I'm having trouble to do that. I tried with

IE 6 - 'Wicket' is undefined

2011-06-24 Thread D D
Hello, We have an issue where IE6 loads and works fine with wicket's js during development. As soon as we moved app to "community" server IE6 comes up with an error: "Error: 'Wicket' is undefined As much as we would wish to get off IE6 we have to stick with it for a little longer. I've seen peop

Re: Sorting problem

2011-06-24 Thread Dan Retzlaff
It seems like an "instanceof String" followed by downcasts and String#compareToIgnoreCase should do the trick. On Fri, Jun 24, 2011 at 12:30 AM, pragya.rawal wrote: > Hi, > > I have a DataView and I am sorting data column (on click of column header) > inside it using my custom SortableTaskDataPro

Re: Column Filters

2011-06-24 Thread Andrea Del Bene
Hi, take a look at the fantastic :-) free chapter from Wicket Cookbook. It's about what are you doing with tables. http://www.google.com/url?sa=t&source=web&cd=5&ved=0CC8QFjAE&url=http%3A%2F%2Fwww.packtpub.com%2Fsites%2Fdefault%2Ffiles%2F1605OS-Chapter-5-Displaying-Data-Using-DataTable.pdf&ei=

Re: Render WebPage to String in Wicket 1.5

2011-06-24 Thread Martin Grigorov
Hi, I'd recommend to preserve the old reponse, use StrintResponse temporarily, and at the end in finally{} restore the original response. On Fri, Jun 24, 2011 at 12:42 PM, Marco wrote: > I need a second opinion about using Wickets template capabilities to send > HTML emails from a Wicket web app

Column Filters

2011-06-24 Thread pragya.rawal
Hi, I have a requirement wherein I want to filter data in a DataView. I want a Microsoft Excel type filter wherein we select filter on a column(header) and it displays all the values in the column in a dropdown. Then I should select some value from that dropdown and I should get the data filtered

Sorting problem

2011-06-24 Thread pragya.rawal
Hi, I have a DataView and I am sorting data column (on click of column header) inside it using my custom SortableTaskDataProvider which extends SortableDataProvider. So, I pass the property name (column) and DataView (list) and I get the list sorted on the basis of property. So, as per the defau

Render WebPage to String in Wicket 1.5

2011-06-24 Thread Marco
I need a second opinion about using Wickets template capabilities to send HTML emails from a Wicket web application. Situation: I create an instance of a WebPage which must rendered to a String. This String is then passed to JavaMail as payload of an email. The email is created and sent after sub

Re: Wicket and OSGi

2011-06-24 Thread Martin Grigorov
Looks simpler solution. If it works OK then we can commit it in SVN. You are right, wicket-bundle just combines -util.jar, -request.jar and -core.jar into one. We can create a new wicket-osgi project in wicketstuff that will provide the integration code, like OsgiClassResolver and whatever else is

Re: Wicket and OSGi

2011-06-24 Thread Brian Topping
wicket-bundle appears to be simply using assembly plugin to mash all the jars together. I haven't tested it yet, but I believe https://github.com/topping/wicket/commit/b120bdd4e6b7b085f2644aab1f77b3d40558c967 is a better solution. Haven't found OsgiClassResolver yet, but it's late here and I

Re: Wicket and OSGi

2011-06-24 Thread Martin Grigorov
OsgiClassResolver will be in wicket-bundle.jar (the one in wicketstuff). The user application will use it by: MyApp#init() { super.init(); getApplicationSettings.setClassResolver(new OsgiClassResolver()); } On Fri, Jun 24, 2011 at 10:46 AM, Brian Topping wrote: > If by that you mean Wicket

Re: Wicket and OSGi

2011-06-24 Thread Brian Topping
If by that you mean Wicket would be injected with something like the system classloader or wicket's classloader, it kind of breaks modularity. How would one upgrade wicket itself? There's no limitation to doing so, the new Wicket bundle can have dependencies in parallel with the old wicket bun

Re: Wicket and OSGi

2011-06-24 Thread Martin Grigorov
Wicket has org.apache.wicket.application.IClassResolver. The mentioned ticket earlier has OsgiClassResolver impl On Fri, Jun 24, 2011 at 10:39 AM, David Leangen wrote: > > IIUC, other frameworks allow for the injection of a classloader. Wouldn't > that be enough? > > We could then package an opt

Re: Wicket and OSGi

2011-06-24 Thread Brian Topping
On Jun 23, 2011, at 11:09 PM, Martin Grigorov wrote: > This sounds like the problem solved with > http://www.tomcatexpert.com/blog/2011/05/31/parallel-deployment-tomcat-7 Kind of assumes one is using Tomcat and not one of the other ways to deploy a web application with OSGi. :-) --

Re: Wicket and OSGi

2011-06-24 Thread David Leangen
IIUC, other frameworks allow for the injection of a classloader. Wouldn't that be enough? We could then package an optional classloader just for that purpose. Cheers, =David On Jun 24, 2011, at 4:34 PM, Brian Topping wrote: > It seems that Wicket should not be burdened with this tracking t

Re: Wicket and OSGi

2011-06-24 Thread Brian Topping
It seems that Wicket should not be burdened with this tracking that is only used in OSGi configurations. Another issue is that an admin will use OSGi interfaces to swap out bundles, not wicket interfaces. OSGi is going to use the BundleActivator of the component bundle to stop it, and it won't

Re: regarding wicketstuff push

2011-06-24 Thread vineet semwal
Hey seb , thanks for the quick fix ! On Fri, Jun 24, 2011 at 5:01 AM, Sebastian wrote: > hi vineet, > > you are right. this is probably a left over from the refactoring we did. I > just fixed it on github. > > regards, > > seb > > On 23.06.2011 22:58, vineet semwal wrote: >> >> hellos ! >> >> i