Load testing ajax-based application

2007-09-27 Thread Meddle Smeddle
Hi we have some problems testing our web application written in wicket. The whole application is one page and all the functionality is implemented with through ajax with wicket. All the load testing tools use the GET http method to test the urls but with the wicket ajax is imposable to use them.

Re: Wicket + JExcel

2007-09-27 Thread Edi
please explain clearly. Jan Kriesten wrote: I have one excel file. I want to display only excel cell A1 and C2 only. How? (how to restrict the unwanted excel cells) Please explain. just add a1 and c2 as labels to the output (a repeater e.g.) and throw the rest away?! ;-) how to

Wicket behind a junction: Invalid Content-Length header response

2007-09-27 Thread martial delahaye
Hi, We are using Wicket 1.2.6 for the first time on a project. everything works fine when testing in localhost. But when we tried it on a test environment, with a junction we got a Invalid Content-Length header returned by TCP junction server. it seems to happen when trying to get the JS files

Re: Wicket + JExcel

2007-09-27 Thread Jan Kriesten
please explain clearly. exactly what? how to use repeaters/labels can be found on the wiki - or with http://www.wicketstuff.org/wicket13/ how to use jexcel is up to your investigation. i only used apache poi to access/create excel files. and there the documentation is quite clear - you should

Re: wicket 1.3 examples

2007-09-27 Thread David Bernard
Hi, What do you download exactly ? in the .zip or .tar.gz from http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ * the source of org.apache.wicket.examples in under apache-wicket-1.3.0-beta3/src/jdk-1.5/wicket-examples/src/main/java/ * the war under apache-wicket-1.3.0-beta3/lib /david

Re: wicket 1.3 examples

2007-09-27 Thread Gwyn Evans
On Thursday, September 27, 2007, 9:12:27 AM, tsuresh [EMAIL PROTECTED] wrote: Hello, I downloaded the wicket 1.3 , but could not find the package org.apache.wicket.examples , please help me. thanks If you downloaded the beta3 kit, it should be below src/jdk-1.5/wicket-examples/ /Gwyn

wicket 1.3 examples

2007-09-27 Thread tsuresh
Hello, I downloaded the wicket 1.3 , but could not find the package org.apache.wicket.examples , please help me. thanks -- View this message in context: http://www.nabble.com/wicket-1.3-examples-tf4527009.html#a12916783 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: wicket 1.3 examples

2007-09-27 Thread tsuresh
Thank you for your help , I found it. -- View this message in context: http://www.nabble.com/wicket-1.3-examples-tf4527009.html#a12917089 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe,

Re: auto dirty and widget factory

2007-09-27 Thread Sam Hough
Is this coding style documented anywhere? I have a vague memory that spring pushes towards composition not extension but that is obviously not the wicket way. Did the people behind javax.swing, java.util make a mistake being light with final or is their task different? The Lucene people seem to

Re: auto dirty and widget factory

2007-09-27 Thread Martijn Dashorst
http://wicket.apache.org/vision.html http://cwiki.apache.org/WICKET/faqs.html#FAQs-Whyaresomanymethodsfinal%253F Martijn On 9/27/07, Sam Hough [EMAIL PROTECTED] wrote: Is this coding style documented anywhere? I have a vague memory that spring pushes towards composition not extension but that

Re: auto dirty and widget factory

2007-09-27 Thread Johan Compagner
the problem is that that still not really does auto dirty.. Because where does it end? just add/remove/visitble/enable? The nice thing is we have already something like that: thats page versioning with the undo/change map. If we extend that a little bit then we could have something like

Re: auto dirty and widget factory

2007-09-27 Thread Sam Hough
This posting put me off using the change recorder: http://www.nabble.com/forum/ViewPost.jtp?post=12473029framed=y Did I get the wrong end of the stick? Johan Compagner wrote: we already have a change recorder on a page for its components, all the methods you mention should also call

Re: auto dirty and widget factory

2007-09-27 Thread Johan Compagner
that doesn't matter, We don't store them (the changes for rollback) anymore but the page still gets the events. Because we still have to know it so that we can increment the page counter... johan On 9/27/07, Sam Hough [EMAIL PROTECTED] wrote: This posting put me off using the change

Re: auto dirty and widget factory

2007-09-27 Thread Sam Hough
So the Wicket dev team commits to supporting that as a legitimate extension point? ;) It shouldn't be too painful for me to switch whatever method I use as it will be encapsulated in a very small portion of code. Just really didn't want to use AOP, our own version of wicket or something stupidly

Re: How to log the serialization of object in wicket

2007-09-27 Thread Meddle Smeddle
We want to see how many objects are serialized in the session and to try optimize somehow our application. We want logging like Object [id] has been serialized, Object [id] has been deserialized. - To unsubscribe, e-mail: [EMAIL

Re: retrieve a text file's content from C drive and display in table listing

2007-09-27 Thread Swaroop Belur
Hi If u see the interface IDataProvider , it is my no means explicitly coupled to the database. Basically all it expects u to do is implement it in such a way so it that what is the result for the current page and what kind of model you want to store the data in session . i.e in model(Object)

Wicket, IDEA and Winstone...

2007-09-27 Thread Gwyn Evans
I thought I ought to flag the above combination, as I'm finding it really useful at the moment. I've typically used Jetty, either via the wicket 'Start' class or via the Maven plugin, but just at the moment I've come across some issues with it. Basically, I'm investigating moving a Model 1 JSP

Adding a jar file...

2007-09-27 Thread Neil B. Cohen
This question may be as much for Netbeans 6 as for Wicket, but in either case, I'm stumped... I want to add the MySQL jdbc driver to my program so I can connect to a MySQL database. In a regular VWP project in Netbeans 5.5 I would just add the jar file under the libraries tab. But it doesn't

Re: Wicket, IDEA and Winstone...

2007-09-27 Thread Martijn Dashorst
Priceless! The best reason [1] why one would ever create a servlet container: to embarrass your friend. Martijn [1] http://winstone.sourceforge.net/#whyCalled -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now:

Re: Spring Into Wicket at the next London Wicket User Group

2007-09-27 Thread jweekend
Al will also begin his mini-series on Custom Ajax Components on Tuesday. Event details and free registration at the usual place, http://jweekend.co.uk/dev/LWUGReg/ here . Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk jweekend wrote: At our upcoming monthly

Re: Adding a jar file...

2007-09-27 Thread Gwyn Evans
On Thursday, September 27, 2007, 12:26:15 PM, Neil [EMAIL PROTECTED] wrote: This question may be as much for Netbeans 6 as for Wicket, but in either case, I'm stumped... I want to add the MySQL jdbc driver to my program so I can connect to a MySQL database. In a regular VWP project in

Re: Reach into a component to change XML attribute

2007-09-27 Thread Martijn Dashorst
This: Component first = null; Component last = null; for(Foo foo : foos) { last = new Component(view.newChildId()); if(first == null) first = last; view.add(last); } first.add(new SimpleAttributeModifier(class, first)); last.add(new SimpleAttributeModifier(class, last)); doesn't

Re: Reach into a component to change XML attribute

2007-09-27 Thread Sam Hough
In my ignorance it seems tough to make that work the second time if the list has changed. It is also less pretty as the only extension points I have are renderIterator and renderChild. I can think of nasty hacks like using IdentityHashMap to hold onto Components I've already added an

Re: Adding a jar file...

2007-09-27 Thread Neil B. Cohen
Gwyn Evans wrote: On Thursday, September 27, 2007, 12:26:15 PM, Neil [EMAIL PROTECTED] wrote: This question may be as much for Netbeans 6 as for Wicket, but in either case, I'm stumped... I want to add the MySQL jdbc driver to my program so I can connect to a MySQL database. In a

Wicket Listeners

2007-09-27 Thread Vit Rozkovec
Hallo, I would like to achieve following functionality, how is it possible? I have an abstract panel with upload field in it. The panel is to be used as a form component. In the panel there is an abstract method processFile(FileUpload fileUpload) which I would like to get called everytime a

Re: Reach into a component to change XML attribute

2007-09-27 Thread Al Maw
You can override onComponentTag for the component itself, if that's an option. Call super.onComponentTag(...) then tag.put(class, foo) or whatever it is. Regards, Al Sam Hough wrote: In my ignorance it seems tough to make that work the second time if the list has changed. It is also less

Re: ModalWindow JS error

2007-09-27 Thread Don Hass
Matej, Yes the new .js file does appear to resolve the problem for me. Thanks for the quick fix! Can you please update and try current trunk? (or wait for another snapshot) It should be fixed. Thanks for spotting this. -Matej On 9/27/07, Don Hass [EMAIL PROTECTED] wrote: No problem, just

Re: Reach into a component to change XML attribute

2007-09-27 Thread Sam Hough
That seems a bit ugly as I want this rule to apply to all components I put into MyRepeatingView. I'm trying to have MyLink, MyPanel, MyBlah so could add some standard behaviour but seems like wrong way around and will obviously break if somebody puts vanilla wicket component in. :wq Al Maw

Re: LinkTree lazy loading possible?

2007-09-27 Thread MikeyG
Hi I've tried both solutions offered here do the same thing however to force the nodes to be redrawn you need to call treeNodesChanged() - which in turn adds the right components to the ajax target. Unfortunately the api is a bit awkward and uses Enumerations. Here's my solution which seems to

Wicket + Hibernate + Spring + Terracotta + Tomcat + Apache

2007-09-27 Thread beam
Hello everybody! I've used wicket, spring jdbc and tomcat in my last project. Now, we want to start a web project, some kind of social network. And we'll go to use wicket as a web framework, hibernate for persistence and spring for DI. So, this project must be deployed on a cluster. I've decided

Re: LinkTree lazy loading possible?

2007-09-27 Thread MikeyG
Actually I was over complicating it. The following work better: @Override protected void onJunctionLinkClicked(AjaxRequestTarget target, TreeNode node) { // expand the next level of the model modelChanging(); if (isNodeExpanded(node)) { // node has

Re: Wicket + Hibernate + Spring + Terracotta + Tomcat + Apache

2007-09-27 Thread Andrew Klochkov
Sam Hough wrote: trouble. Tomcat also has a native plugin that you might want to investigate... I would guess that careful tuning of what you serve (compression, cache management) will buy you a lot. btw dont you know how to tune cache headers tomcat generates for static resources? I thought

Re: Wicket + Hibernate + Spring + Terracotta + Tomcat + Apache

2007-09-27 Thread Sam Hough
Guess servlet filter is the obvious way. I've certainly done that in the past. At worse case the default servlet is open source... Andrew Klochkov wrote: Sam Hough wrote: trouble. Tomcat also has a native plugin that you might want to investigate... I would guess that careful tuning of

Changing html-template programmatically?

2007-09-27 Thread wfaler
Hi, Is it possible to change the default html-template file loaded for a class programmatically (for instance, changing from a classpath file, to a file in another file-directory)? For instance, if I want to change the underlying html-template on the fly, but keeping the same component hierarchy?

Re: Wicket + Hibernate + Spring + Terracotta + Tomcat + Apache

2007-09-27 Thread Orion Letizi
I've always used apache as a front-end to tomcat, but it's been a while since I ran a high-scale web application. You might also look into Jetty (http://jetty.mortbay.org/). It's lightweight, easily embeddable, and very fast-- and, quite frankly, a joy to use. BTW, if you have any questions

Re: Wicket + Hibernate + Spring + Terracotta + Tomcat + Apache

2007-09-27 Thread Orion Letizi
Oh, also, check out Geronimo (http://geronimo.apache.org/) as a container. Orion Letizi wrote: I've always used apache as a front-end to tomcat, but it's been a while since I ran a high-scale web application. You might also look into Jetty (http://jetty.mortbay.org/). It's lightweight,

Wicket Extensions 1.3?

2007-09-27 Thread NateRedding
Hello, I was playing around with Wicket and I have to say it is really cool! I was having problems with Wicket 1.2.6 because it's log4j conflicts with that in JBoss, so I switched to 1.3 (which I like better anyways). However, I couldn't get the Wicket Extensions working with 1.3. Is there a

Re: Wicket Extensions 1.3?

2007-09-27 Thread Igor Vaynberg
the snapshots are available here: http://wicketstuff.org/maven/repository/org/apache/wicket/ named releases are available from maven repos -igor On 9/27/07, NateRedding [EMAIL PROTECTED] wrote: Hello, I was playing around with Wicket and I have to say it is really cool! I was having

RE: Wicket + Hibernate + Spring + Terracotta + Tomcat + Apache

2007-09-27 Thread Mark van Leeuwen
For the servlet container you can use either Tomcat or JBoss with the Apache Portable Runtime. Performance will be similar to using Apache as a frontend, but is simpler to setup. http://labs.jboss.com/jbossweb/index.html As for whether to go with Tomcat or JBoss, perhaps that will depend on

Form behaviour...

2007-09-27 Thread Gwyn Evans
Hi, I've got a form, on which I have, among other things, a TextField and an AjaxFallbackButton. The problem I have is that when then user enters a string into the text field and presses return, both the TextField.onModelChanged() and the AjaxFallbackButton.onSubmit() fire, but I'd like to avoid

Re: beyond image maps

2007-09-27 Thread Michael Preiss
I tested it, but an error occured: event.offsetX (/Y) returns undefined and the get method on the parameter map throws a null pointer exception. I currently need such a function, but I actually don't know, how to do it. Jonathan Locke wrote: i ran into an interesting problem that igor helped

Re: beyond image maps

2007-09-27 Thread Jonathan Locke
yeah, it turns out this is browser specific. to save you several hours, you need this: script type=text/javascript function getEventX(element, event) { if (event.offsetX != null) { return event.offsetX;

Re: Form behaviour...

2007-09-27 Thread Matej Knopp
I don't think there's an easy solution for what you want. You can try putting in two buttons, set one button as form default and hide it using css. That one should be submitted when you press enter on the text field. -Matej On 9/27/07, Gwyn Evans [EMAIL PROTECTED] wrote: Hi, I've got a form,

substitute same value in several places

2007-09-27 Thread Peter Dotchev
Hi, I'd like to use the same value in several places of a page, e.g. two labels with same content. Let's say I want to substitute the same property using CompoundPropertyModel. How can I do that in Wicket 1.3? Thanks for your help. Peter -- View this message in context:

Border within a DataView

2007-09-27 Thread Atzanteol
I have a page that uses a DataView to display a 'search results' page. Within each line I need to have a collapsible box that displays more information about the search result. I created a Border object that collapses fine (based off an example from _Pro Wicket_) when in a simple example, but

Re: Appending JS to an Ajax Component

2007-09-27 Thread UPBrandon
I can see how one JavaScript might be dependent on another (although it seems like such scripts should really be one script anyway) but that case is definitely not universal. In my experience, sometimes a Wicket user needs to add an onclick or onchange event to an Ajax component and execution

Ajax error with AjaxFormSubmitBehavior

2007-09-27 Thread Joel Hill
I'm trying to use AjaxFormSubmitBehavior, and in the ajax debug I'm getting: ERROR: Received Ajax response with code: 404 Anyone know what this means? Nothing in the logs indicates a problem, but maybe I'm not using AjaxFormSubmitBehavior properly. I'm trying to wicketify a javascript-based

Context menu within a LinkTree?

2007-09-27 Thread Doug Leeper
Has anyone been able to create a context menu for items on a LinkTree? If so, was it all JS based (like YUI)? or did you create a small framework to be used in Wicket? If the latter, would it be possible to contribute to the wicket-contrib-yui (menu2) package? I am in need of a tree component

Re: Border within a DataView

2007-09-27 Thread Igor Vaynberg
mind creating a quickstart and attaching it to jira? -igor On 9/27/07, Atzanteol [EMAIL PROTECTED] wrote: I have a page that uses a DataView to display a 'search results' page. Within each line I need to have a collapsible box that displays more information about the search result. I

Re: Appending JS to an Ajax Component

2007-09-27 Thread Igor Vaynberg
even if we always append it is still not guaranteed to work. for example the previous scriptlet can end with return false; or just have a return somewhere in it, which would prevent the following scriptlet from executing. we would have to start wrapping things in anonymous functions to make this

Re: Context menu within a LinkTree?

2007-09-27 Thread James McLaughlin
On 9/27/07, Doug Leeper [EMAIL PROTECTED] wrote: Has anyone been able to create a context menu for items on a LinkTree? If so, was it all JS based (like YUI)? or did you create a small framework to be used in Wicket? If the latter, would it be possible to contribute to the

Re: Changing html-template programmatically?

2007-09-27 Thread Matthijs Wensveen
wfaler wrote: Hi, Is it possible to change the default html-template file loaded for a class programmatically (for instance, changing from a classpath file, to a file in another file-directory)? For instance, if I want to change the underlying html-template on the fly, but keeping the same

Clustering Question - Can the 2nd Level Page Cache be shared in a clustered filesystem configuration?

2007-09-27 Thread mchack
I am deploying my application in a clustered environment. Eliminating session sticky load balancing would be an advantage for me. Session data is already replicated in a clustered environment. Are the mechanics in place to share the Page Cache with other machines if I use a clustered file system

Applet Question

2007-09-27 Thread carloc
Hi Everyone, I'm trying to load an applet in wicket. The code looks like this applet code=uk.co.mmscomputing.application.imageviewer.MainApp.class archive=uk.co.mmscomputing.application.imageviewer.jar width=100% height=100% /applet If I paste this code in my index.html page which is not run

Re: Clustering Question - Can the 2nd Level Page Cache be shared in a clustered filesystem configuration?

2007-09-27 Thread Matej Knopp
Hi, if I understand correctly, you want to disable page serialization on session replication, as the filesystem where the page store stores temporary pages is accessible from each node in cluster? There is a way to achieve it, just create your own page store extending from DiskPageStore and make

Re: Clustering Question - Can the 2nd Level Page Cache be shared in a clustered filesystem configuration?

2007-09-27 Thread mchack
I am not sure I understand correctly. :) I thought the current page was serialized to the session and that the other pages or views were stored to the filesystem. So my question was really, if the filesystem where temporary pages are stored is shared, would Wicket be immune to requests coming in

Presented Wicket to my Company...

2007-09-27 Thread robert.mcguinness
...to tell you the truth, it impressed the developers but I didn't get that feeling from the top brass. I am pretty sure we will move towards Seam/JSF/Facelets (we have a presentation on that tech next week given by another developer) since it is standard. Has anyone here worked with the Seam

Re: Can't access Javascript/CSS when in servletMode

2007-09-27 Thread Adam A. Koch
Here's the URL I'm trying: http://localhost/mre/resources/com.*.webapp.wicket.BasePage/mre.css This (part of) the web.xml that works: filter filter-nameMreWicketApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param

Re: Presented Wicket to my Company...

2007-09-27 Thread Igor Vaynberg
sounds like what you should do is take your manager out for drinks :) -igor On 9/27/07, robert.mcguinness [EMAIL PROTECTED] wrote: ...to tell you the truth, it impressed the developers but I didn't get that feeling from the top brass. I am pretty sure we will move towards

Latest trunk question - Missing JARs?

2007-09-27 Thread darrengreer
I checked out the latest wicket trunk to take a look at the phone application. HOwever, I'm having an issue getting it to compile as a direct result of these missing libraries: import hendrey.orm.ORMDictionary; import hendrey.orm.ORMapping; import hendrey.orm.Query; import