Re: Gant like component in wicket

2009-01-09 Thread Martin Makundi
Just a Wicket WebMarkupContainer will do. Put it in a listview. t. Martin 2009/1/9 lizz elisabeth.thor...@bouvet.no: Yes I know but this should be displayed in a wicket web page and the number of tasks types is not static (it is based on the page datamodel (CompundPropertyModel), so I think

Re: Get all sessions

2009-01-09 Thread Peter Ertl
implement javax.servlet.http.HttpSessionListener Am 09.01.2009 um 08:07 schrieb Eunice: Hi, Is there any methods or functions in wicket that can give me numbers of users/sessions that is currently active and viewing/ opening a page? I've been googling and read on the API, still cannot

Re: Get all sessions/users for a web application

2009-01-09 Thread Jonathan Locke
Take a look at RequestLogger and the InspectorBug Eunice wrote: Hi, Is there any methods or functions in wicket that can give me numbers of users/sessions that is currently active and viewing/opening a page? I've been googling and read on the API, still cannot get any clues and

Re: Gant like component in wicket

2009-01-09 Thread Rodolfo Hansen
If you want, you can also extend WebMarkupContainer, and share those components through wicketstuff for example. On Fri, Jan 9, 2009 at 6:15 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Just a Wicket WebMarkupContainer will do. Put it in a listview. t. Martin 2009/1/9

Re: Multiple Copies of One Wicket App

2009-01-09 Thread Sean W
path: /ContextPath/wicket/BookmarkablePage It appears to me that using Wicket you cannot place anything in the path between the context path and the mounted name except for wicket, which is defined as your url-pattern. In other words, a mounted page cannot be referenced from more than one path.

FileUpload broken in Firefox 3.0.5

2009-01-09 Thread Steve Swinsburg
Hi all, Just testing an application I have written which works perfectly fine in Safari 3.2.1, but in Firefox 3.0.5 the FileUpload is failing. Some code: in form: //upload form component FileUploadField uploadField = new FileUploadField(picture); form.add(uploadField); in onSubmit() of

Re: Multiple Copies of One Wicket App

2009-01-09 Thread Steve Swinsburg
You're doing it backwards. Have one webapp which accepts the parameter at the end of the URL, not before. cheers, Steve On 9 Jan 2009, at 13:36, Sean W wrote: path: /ContextPath/wicket/BookmarkablePage It appears to me that using Wicket you cannot place anything in the path between

Re: FileUpload broken in Firefox 3.0.5

2009-01-09 Thread Steve Swinsburg
I can confirm that the same code works on Firefox 3.0.4 - I just ran it up on the older version. So its definitely the 3.0.5 update which has the issue. Any ideas? cheers, Steve On 9 Jan 2009, at 13:36, Steve Swinsburg wrote: Hi all, Just testing an application I have written

Re: Multiple Copies of One Wicket App

2009-01-09 Thread Serkan Camurcuoglu
I know this would be very difficult to create by hand, but if you automatically create a web.xml which includes 200 such filter definitions (replacing Application1 and dbfile1 with other values) I think that would do what you want. Note that here you obtain the db configuration file name as a

Empty File Upload field breaks validation of other fields in WicketTester

2009-01-09 Thread Martin Makundi
Hi! Empty File Upload field breaks validation of other fields in WicketTester. The form processes a simple MockHttp..Request but the tester sends Multipart...Request. Wicket quickstart attached to jira: https://issues.apache.org/jira/browse/WICKET-2015 Anybody familiar with the necessary

RE: AjaxCheckBox not working

2009-01-09 Thread wicketworker
Its working now .. I had to put the panel inside another div tag and create a WebMarkupContainer for that.. Serkan Camurcuoglu-3 wrote: did you call setOutputMarkupId(true) and setOutputMarkupPlaceHolderTag(true) on your panel? setOutputMarkupId(true) is required for the panel to have an

Re: AjaxCheckBox not working

2009-01-09 Thread Piller Sébastien
Hi, wicketworker a écrit : Its working now .. I had to put the panel inside another div tag and create a WebMarkupContainer for that.. sure, this is very common when using wicket ajax Serkan Camurcuoglu-3 wrote: did you call setOutputMarkupId(true) and

Preserving mount point in URLs

2009-01-09 Thread John Krasnay
Hi Wicketeers, My client has a web security infrastructure in place where a transparent proxy sits in front of the application server and filters requests based on URL pattern. I am trying to fit their first Wicket-based application into this infrastructure. We would like to allow requests based

ModalWindow width as %

2009-01-09 Thread Emanuele Gesuato
Hi there, In ModalWindow as defined in wicket-extension the width has a fixed length expressed in pixel (600px). I would like to have the width in % but the widthUnit is available only when the the component is not resizable. In fact in ModalWindow.getWindowOpenJavascript() there is the

Re: ModalWindow width as %

2009-01-09 Thread Nino Martinez
if getWidthUnit() arent final then override? Emanuele Gesuato wrote: Hi there, In ModalWindow as defined in wicket-extension the width has a fixed length expressed in pixel (600px). I would like to have the width in % but the widthUnit is available only when the the component is not

Re: Preserving mount point in URLs

2009-01-09 Thread Igor Vaynberg
change the coding strategy to use query string to encode params. see querystringcodingstrategy for necessary code. -igor On Fri, Jan 9, 2009 at 6:36 AM, John Krasnay j...@krasnay.ca wrote: Hi Wicketeers, My client has a web security infrastructure in place where a transparent proxy sits in

Re: ModalWindow width as %

2009-01-09 Thread Emanuele Gesuato
getWidthUnit() is not considered if the ModalWindow is resizable. Nino Martinez wrote: if getWidthUnit() arent final then override? Emanuele Gesuato wrote: Hi there, In ModalWindow as defined in wicket-extension the width has a fixed length expressed in pixel (600px). I would like to have

Re: ModalWindow width as %

2009-01-09 Thread Matthew Hanlon
If I'm correct, the modal window uses js to determine the resizing in px. If you want it to resize in % of screen, you'd probably have to override modal.js to determine the appropriate % to set the window width. However, if you want the window to be some percentage wide, you don't really want it

Dynamic PDF Creation

2009-01-09 Thread jeredm
I am using FOP to create a PDF dynamically based on user input into a web form. I don't have a problem creating the PDF only with the display of it. I need that PDF to be immediately sent to the user via a redirect or download. so something like this @Override public void onClick(){

Re: Dynamic PDF Creation

2009-01-09 Thread Sébastien Piller
Have a look at RequestCycle#setRequestTarget. Additionnaly, you may have a look at SubmitLink, since the validation step has nothing to do in the onClick of a link jeredm wrote: I am using FOP to create a PDF dynamically based on user input into a web form. I don't have a problem creating

Re: Dynamic PDF Creation

2009-01-09 Thread jeredm
Thanks for the response! It seems to be working well. I am posting what I ended up with. Please let me know if you see anything that is a really bad idea. @Override public void onSubmit(){ validateCriteria(); if(!hasErrorMessage()){ MyReportFactory pdfRef =

generalized way to ignore mouse input during screen refresh?

2009-01-09 Thread Kirk Israel
So one problem we've seen in a few places occurs when a (somewhat slow) request happens that refreshes the page or component, but then the user clicks on a link on the pre-refresh screen, and ends up getting a nasty exception thrown, since the component clicked on no longer exists Is there a

Re: Dynamic PDF Creation

2009-01-09 Thread Sébastien Piller
Some little points: - on the onsubmit of a form (or any onsubmit like in button, submitlink, ajaxfallbackbutton, etc.) you don't need to verify the validity: wicket does it for you, it firsts validate the form and then call onsubmit if there is no error. Thus it means you can remove your

Re: Preserving mount point in URLs

2009-01-09 Thread John Krasnay
Cool, thanks. I'll give it a try. jk On Fri, Jan 09, 2009 at 08:52:44AM -0800, Igor Vaynberg wrote: change the coding strategy to use query string to encode params. see querystringcodingstrategy for necessary code. -igor

Re: generalized way to ignore mouse input during screen refresh?

2009-01-09 Thread Valentine2008
I created a reusable component, PanelWithAjaxBusyIndicatingMask, which extends Panel. The functions it has: It will add a transparent mask layer to the current page to prevent further UI interactivity when there are any busy Ajax activities. The mask layer will have an animation gif and a

Re: generalized way to ignore mouse input during screen refresh?

2009-01-09 Thread Kirk Is
Could you share the code, or at least the core idea of how it hooks into a normal page/component, in the meanwhile On Fri, Jan 9, 2009 at 4:55 PM, Valentine2008 valentine...@alumni.sfu.ca wrote: I created a reusable component, PanelWithAjaxBusyIndicatingMask, which extends Panel. The

How / where can I contribute my source code to the wicket?

2009-01-09 Thread Valentine2008
Hi, I have several reusable components that I want to contribute to the Wicket. Do you know where/how I can contribute? Thanks, Valentine -- View this message in context: http://www.nabble.com/How---where-can-I-contribute-my-source-code-to-the-wicket--tp21381608p21381608.html Sent from the

Re: How / where can I contribute my source code to the wicket?

2009-01-09 Thread Jeremy Thomerson
You're very welcome to start a Wicket Stuff project (wicketstuff.org) or contribute it to one that already exists, depending on where it would fit, perhaps one noted below [1]. If you believe it is something that belongs in core, you should open a JIRA [2]. Prepare yourself - it's not likely to

Re: How / where can I contribute my source code to the wicket?

2009-01-09 Thread Jeremy Thomerson
Oh, and if you want to add it to wicket stuff, just ask here for commit rights by supplying your SF ID. Read thoroughly: http://wicketstuff.org/confluence/display/STUFFWEB/Home -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jan 9, 2009 at 6:38 PM, Jeremy Thomerson

ReUse Your Swing table models in Wicket

2009-01-09 Thread Ayodeji Aladejebi
Hi, If you have existing legacy Swing tables model code that you want to test on the web without re-writing all the TableModel logic, try this wicket component. WebTable myTable = new WebTable(tableTest, new SimpleTableModel()); add(myTable); class SimpleTableModel extends

FileUpload in a Panel

2009-01-09 Thread Ed _
Is it possible to do a file upload within a Panel ? Or can it only be done in a WebPage? I have seen some solutions using IFrames within panels to get around this. ERROR [http-8080-1] (RequestCycle.java:1072) - there was an error cleaning up target

Re: FileUpload in a Panel

2009-01-09 Thread Jeremy Thomerson
Yes - a FileUpload can be in any component (though it will need to be nested in some parent multi-part form). Your error below has nothing to do with it being in a panel. In later versions of 1.4, there was a change that requires a FileUpload component to have a model to store it's data. You