Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread FaRHaN
I want to upload files through Commons FIleUpload API. As Commons FileUpload API requires HttpServletRequest for uploading files (e.g. fileItemsList = servletFileUpload.parseRequest(httpServletRequest)). Parsing HttpServletRequest is the necessary step while uploading in Commons FileUpload.

Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread Jeremy Thomerson
Maybe if you mention the specific reason(s) that you want to use Apache Commons FileUpload API rather than Wicket's built-in forms and file upload mechanisms, someone on the list will be able to provide you with more help. It seems that the FileUpload API is intended to help you if you have to

Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread FaRHaN
I want to make it a separate API for file uploading. So that i can embed it in any of the application regardless of the framework (wicket, JSF, struts etc.). The only reason is that, we can use Apache Commons FileUpload API in any of the framework. Is there any workaround to do this ?

Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread Peter Thomas
On Tue, Sep 8, 2009 at 12:33 PM, FaRHaN farhan.ba...@ymail.com wrote: I want to make it a separate API for file uploading. So that i can embed it in any of the application regardless of the framework (wicket, JSF, struts etc.). The only reason is that, we can use Apache Commons FileUpload API

Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread FaRHaN
O my dear, i want to make a separate utility method that will take Request and other necessary information as a parameter. just like that: /** Utitlity Method for FileUploading / public static void doUpload(HttpServletRequest request, FileItem fileItem){ if

Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread Joseph Pachod
Jeremy Thomerson wrote: servlets are totally separate from Wicket - write a servlet and add it to your web.xml. See any servlet example on the web (non-Wicket related) for assistance. I wouldn't say so, cf Igor sentence in this discussion :

How test modal windows with wicket tester?

2009-09-08 Thread Denis Kandrov
I have dashboard, that have modal windows for adding comments and view dashboard message. How can I get this modal window for testing with wicket tester? And how to check that modal window is opened? Denis. - To unsubscribe,

Re: How test modal windows with wicket tester?

2009-09-08 Thread Martin Makundi
Hi! There is nothing special in testing modal windows. It is just a panel with a panel inside. You can use tester.assertVisible... THe only trick is if you have windowCloseCallbacks.. you need to invoke those manually using tester.executeBehavior... ** Martin 2009/9/8 Denis Kandrov

Re: Usage of Servlets in Wicket, How ?

2009-09-08 Thread Peter Thomas
I'm really not sure and can't help on the parsing request problem, although I'm not surprised that attempting to unpack a multipart request twice would result in problems. One thing you could try is understand the form processing life cycle of Wicket - so instead of using onSubmit() (because the

wicket migration to 1.4.1 - getBodyContainer

2009-09-08 Thread A. Zwaan
Hello all, We are currently trying to move from wicket 1.2.6 to 1.4.1 and so far it's going well, except for one point. In the constructor of one of our pages we use the getBodyContainer().getBodyContainer() to add an AjaxEventBehavior for the onload event, so we can redirect to the

Re: Mount different page for second parameter

2009-09-08 Thread Daniele Dellafiore
I think right now the only way is to use MixedParamUrlCodingStrategy Mount a page this way: mount(new MixedParamUrlCodingStrategy(collection, CollectionPage.class, new String[] { owner })); so CollectionPage is mounted at: http://localhost:9090/collection/ now in CollectionPage.java you can

Attaching a wicket generated page in a multipart MIME message

2009-09-08 Thread Daniele Dellafiore
Hi. I need to sent something like an HTML newsletter and I am wondering about a nice way to do this with wicket. The problem is that I need to generated the rendered page without sending it to the browser, but keep the page server side, get the generated HTML as String and include it in a

Re: Attaching a wicket generated page in a multipart MIME message

2009-09-08 Thread Martin Makundi
search nabble for email wicket page - or something similar. you should be able to find a thread that answers your question. There have been quite a few about dumping a Wicket page to a stream or string to email. http://www.nabble.com/Generating-email-body-with-wicket-td14042459.html#a14042459

Re: wicket migration to 1.4.1 - getBodyContainer

2009-09-08 Thread Martijn Dashorst
You could use setResponsePage(Foo.class, PageParameters) Martijn On Tue, Sep 8, 2009 at 12:18 PM, A. Zwaana.zw...@finan.nl wrote: Hello all, We are currently trying to move from wicket 1.2.6 to 1.4.1 and so far it's going well, except for one point. In the constructor of one of our

Re: wicket migration to 1.4.1 - getBodyContainer

2009-09-08 Thread Martijn Dashorst
Or throw new RestartResponseException when you determine that you want to render a different page instead of using ajax. Martijn On Tue, Sep 8, 2009 at 12:18 PM, A. Zwaana.zw...@finan.nl wrote: Hello all, We are currently trying to move from wicket 1.2.6 to 1.4.1 and so far it's going

RE: wicket migration to 1.4.1 - getBodyContainer

2009-09-08 Thread A. Zwaan
Apparently we need to be able to show a ModalWindow in some cases, which in turn needs an AjaxRequestTarget, so I somehow need that Ajax event triggered somewhere when the page is being rendered. Wouldn't adding a wicket:id to the body element and then adding the AjaxEventBehavior to it give

RE: Passing parameters from markup to panels

2009-09-08 Thread Chris Colman
eg you can use IComponentResolver and create a factory panel that can create a child based on the attributes of a tag, etc. -igor Well it worked well to a point. That point was when I tried to place two panels of the same type but with different attributes on the same page. The second panel

Re: StackOverFlow (Start.java) Jetty

2009-09-08 Thread David Brown
Hello Martin, thanks for the reply. Sorry about the last post. I have become leary of posting code as the inhouse lawyers have admonished me for this practice. I realized albeit Panels or WebPage Wicket won't render a different class from another class without some type of event such as a link.

Re: Using java.util.Date class with CompoundPropertyModel

2009-09-08 Thread shetc
Thanks Igor! You pointed me in the right direction, as usual. -- View this message in context: http://www.nabble.com/Using-java.util.Date-class-with-CompoundPropertyModel-tp25338777p25346526.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Help on wizard solution...

2009-09-08 Thread Peter Thomas
I think the comments on this article by Igor may give you some ideas (see #14) http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ So having a single page, and swapping out multiple panels for each question may be the solution. You can write logic for the previous and next buttons

Re: Help on wizard solution...

2009-09-08 Thread Pedro Santos
I think the wizard is the correct approach... You can try use DynamicWizardModel on your wizard. javadoc: * Wizard model that is specialized on dynamic wizards. Unlike the default, static * {...@link WizardModel wizard model}, this model isn't very intelligent, but rather delegates much * of

Re: Help on wizard solution...

2009-09-08 Thread Muro Copenhagen
Thanks Pedro and Peter, I'll try the DynamicWizardModel, it seems as the right choice. But a quick google search didn't provide any example, so i must try making it work. Hopefully it will... Best Regards Muro On Tue, Sep 8, 2009 at 4:35 PM, Pedro Santos pedros...@gmail.com wrote: I think

Re: Passing parameters from markup to panels

2009-09-08 Thread Igor Vaynberg
each panel has to have a different wicket:id and the id should not exist in component hierarchy yet. component resolvers are only used if wicket cannot match wicket id to an object in the component hierarchy. -igor On Tue, Sep 8, 2009 at 5:51 AM, Chris Colmanchr...@stepaheadsoftware.com wrote:

Re: wicket migration to 1.4.1 - getBodyContainer

2009-09-08 Thread Martijn Dashorst
See IHeaderResponse.renderOnDomReadyJavascript() Martijn On Tue, Sep 8, 2009 at 2:42 PM, A. Zwaana.zw...@finan.nl wrote: Apparently we need to be able to show a ModalWindow in some cases, which in turn needs an AjaxRequestTarget, so I somehow need that Ajax event triggered somewhere when

ajax indicator for all ajax requests blocking page

2009-09-08 Thread tubin gen
I am looking for some indicator for any ajax requests , I dont want to add the behaviour for every component with ajax behaviour , I want something which detects for ajax request and starts the indicator blocking the page for further user actions and vanishess after response is rendered is there

Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread Jeremy Thomerson
http://www.google.com/search?q=wicket+ajax+indicator -- Jeremy Thomerson http://www.wickettraining.com On Tue, Sep 8, 2009 at 10:13 AM, tubin gen fachh...@gmail.com wrote: I am looking for some indicator for any ajax requests , I dont want to add the behaviour for every component with ajax

Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread John Armstrong
I did this in pure Javascript for a recent project. You can insert this code into your base page or whatnot. Its basically a hidden div that you hide/show and you can style it however. You can see it in action at http://www.pnc.net/. In my case its just a quick 'Loading...' text blurb in the top

Re: Help on wizard solution...

2009-09-08 Thread Eyal Golan
I had some experience with what you need so i hope I could help you if you need something. I implemented the dynamic wizard and it was actually lots of fun :) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree.

Re: Help on wizard solution...

2009-09-08 Thread John Armstrong
I've done this in both DynamicWizards as well as regular wizards and can pass some code along if you need it. My rule of thumb is If you can gather all of the content together for your wizard use a regular wizard (eg: non-dependent configuration directives), if future wizard steps can change

Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread fachhoch
I also want to mask page along with loading indication is there anything available ? John Armstrong-3 wrote: I did this in pure Javascript for a recent project. You can insert this code into your base page or whatnot. Its basically a hidden div that you hide/show and you can style it

Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread Pedro Santos
try this js: var mask = new Wicket.Window.Mask(false); mask.show(); the Mask is the use by ModalWindow: http://www.wicket-library.com/wicket-examples/ajax/modal-window.2 On Tue, Sep 8, 2009 at 1:26 PM, fachhoch fachh...@gmail.com wrote: I also want to mask page along with loading

problem with ResourceLink

2009-09-08 Thread Eyal Golan
Hi, We have the following code: static public ResourceLink getResourceLink(String id,byte[] data,final String title,String contentType){ ResourceLink resourceLink = new ResourceLink(id, new CustomResource(data,contentType,title)){ private static final long serialVersionUID

Re: Help on wizard solution...

2009-09-08 Thread Eyal Golan
+1 for john Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary

Help on wizard solution...

2009-09-08 Thread Muro Copenhagen
Hi, I could use some input on how to solve a problem i have. In my web-app i have some cases, and each cases have several questions. And i want the user to flow between the pages in a wizard manner like the example in: http://www.wicket-library.com/wicket-examples/wizard/ The only problem i

Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread fachhoch
can you tell me more about this script I am totally null with java script should I add this var mask = new Wicket.Window.Mask(false); mask.show(); inside the showBusysign() function? and if I want to remove mask what function should I call ? Pedro Santos-6 wrote: try this js: var

Re: Can't update TextField via Ajax after a validation error

2009-09-08 Thread Neil Curzon
Hi Jason, Thanks for the tip and explanation. It makes sense, and calling testInput.clearInput() fixed the issue. Neil On Fri, Sep 4, 2009 at 7:20 PM, Jason Lea ja...@kumachan.net.nz wrote: When a field is submitted and there is a validation error, it doesn't update the model and the field

Re: Property Models

2009-09-08 Thread Pedro Santos
T is the type parameter for the model object ( http://static.ddpoker.com/javadoc/wicket/1.4-m1/org/apache/wicket/model/IModel.html), if you are creating an PropertyModel to retrieve and access an String property, so String is the correct type parameter for the PropertyModel... On Tue, Sep 8, 2009

[Training] Autumn Apache Wicket Schedule For London Amsterdam

2009-09-08 Thread jWeekend
The following dates for jWeekend's 2 day Apache Wicket training courses, jw703 [1], are now scheduled and confirmed. Course syllabus and student reviews can be found on our site. London: [2] Sep23-24(Wed-Thu), Oct8-9(Thu-Fri), Oct10-11(Sat-Sun), Nov2-3(Mon-Tue), Nov7-8(Sat-Sun),

Re: maven wicket stuff

2009-09-08 Thread Pedro Santos
sorry, I realize now: just set the artifactIdgmap2/artifactId line On Tue, Sep 8, 2009 at 5:53 PM, Pedro Santos pedros...@gmail.com wrote: Hi, I'm trying to add dependency to my project from wicket stuff like: dependency groupIdorg.wicketstuff/groupId

Re: maven wicket stuff

2009-09-08 Thread Jeremy Thomerson
I think you're going to want to use artifactIdgmap/artifactId. gmap-parent is a pom-only distribution. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Sep 8, 2009 at 3:53 PM, Pedro Santos pedros...@gmail.com wrote: Hi, I'm trying to add dependency to my project from wicket stuff

Re: maven wicket stuff

2009-09-08 Thread Jeremy Thomerson
also, make sure that you added the wicketstuff repo to your pom (as described on the ws wiki somewhere) -- Jeremy Thomerson http://www.wickettraining.com On Tue, Sep 8, 2009 at 3:57 PM, Jeremy Thomerson jer...@wickettraining.comwrote: I think you're going to want to use

Re: The alternative to: HeaderContributor.forCss

2009-09-08 Thread David Brown
Hello Jeremy, thanks for the link. This works. Regards, David. - Original Message - From: Jeremy Thomerson jer...@wickettraining.com To: users@wicket.apache.org Sent: Monday, September 7, 2009 10:44:06 PM GMT -06:00 US/Canada Central Subject: Re: The alternative to:

Re: Passing parameters from markup to panels

2009-09-08 Thread Adrian Wiesmann
Chris Colman wrote: I've thought of a very ugly way of doing it with the current version of wicket but it relies on quite a lot of smoke and mirrors and hooking into the component creation process. I'll give that a go for now. We went a similar but still different way :) We use our own XML

RE: Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

2009-09-08 Thread Heikki Uotinen
There is a bug in wicket-ajax.js:268 (1.4.1) that breaks IE+Flash/ExternalInterface: // place all newly created elements before the old element while(tempParent.childNodes.length 0) { var tempElement = tempParent.childNodes[0];

Re: Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

2009-09-08 Thread Matej Knopp
Well, it's not exactly wrong. Looks like an IE quirk to me. But I suppose we can just move the element anyway. -Matej On Tue, Sep 8, 2009 at 11:10 PM, Matej Knoppmatej.kn...@gmail.com wrote: Hi, can you create jira issue with problem description? The code indeed looks wrong I can fix it once

Re: Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

2009-09-08 Thread Matej Knopp
Hi, can you create jira issue with problem description? The code indeed looks wrong I can fix it once the issue is created. -Matej On Tue, Sep 8, 2009 at 9:59 PM, Heikki Uotinenheikki.uoti...@syncrontech.com wrote: There is a bug in wicket-ajax.js:268 (1.4.1) that breaks

Re: Wicket and FileUpload on Google App Engine

2009-09-08 Thread Esteban Masoero
Hi uudashr, I gotta tell you've done terrific work! I tried it in my wicket-GAE app and it worked :) Comments/questions: About wicket framework: 1- Is it possibly that the MultipartServletWebRequest can have this line: DiskFileItemFactory factory = new DiskFileItemFactory(); ...changed for...

Re: Wicket and FileUpload on Google App Engine

2009-09-08 Thread uud ashr
On Wed, Sep 9, 2009 at 7:41 AM, Esteban Masoero emaso...@getsense.com.arwrote: Hi uudashr, I gotta tell you've done terrific work! I tried it in my wicket-GAE app and it worked :) Comments/questions: About wicket framework: 1- Is it possibly that the MultipartServletWebRequest can have