Re: Nested form submit and parent form input

2010-10-31 Thread Martin Makundi
Hi! Yes. Every time form is processed the form component values are processed from rawinput. That is the normal usecase = you want to know what user has entered. However, if you want to explicitly dismiss user input, you can call clearInput or set a new model. Alternatively there are behaviors l

Nested form submit and parent form input

2010-10-31 Thread Marek Ĺ abo
Hi all, I'm using a form which embeds another nested form. An AjaxFormUpdatingBehavior works in parent form (updates some textfields via model changes). Problems start when I submit the nested form. Then the before-mentioned behavior "stops working". While debugging I learned why - during res

Re: Force DownloadLink

2010-10-31 Thread d2marcelo
I've tried the above options but they didn't work. what I have now is exportEnv.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { final File exportFile= getFile();

RE: Disable button double-click without breaking Form.setDefaultButton

2010-10-31 Thread Alex Grant
Thank you for your help, problem solved. -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Friday, 29 October 2010 5:59 p.m. To: users@wicket.apache.org Subject: Re: Disable button double-click without breaking Form.setDefaultButton Do it in your form its

using autocomplete with an object

2010-10-31 Thread fachhoch
here is my code AbstractAutoCompleteRenderer autoCompleteRenderer = new AbstractAutoCompleteRenderer() { protected final String getTextValue(final InfUser infUser) { return MessageFormat.format("{0}

Re: If-Modified-Since header

2010-10-31 Thread Mauro Ciancio
Hi Martin, I didn't explain myself very well. I'm using wicket resources, I inherited from WebResource and implemented the abstract methods. Also, I mounted the resources using the following code: String resourceKey = "photos"; String alias = "photos" SharedResources sharedResources = applicati

Re: download link inside a modal window

2010-10-31 Thread Sven Meier
Ok, then the following might help: http://apache-wicket.1842946.n4.nabble.com/Disabling-Modal-Unload-Confirmation-td1857159.html Sven On 10/31/2010 01:43 PM, fachhoch wrote: No i donot want to close modal window.I has lot of other content than download a file.

Re: download link inside a modal window

2010-10-31 Thread fachhoch
No i donot want to close modal window.I has lot of other content than download a file. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/download-link-inside-a-modal-window-tp3021049p3021065.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: download link inside a modal window

2010-10-31 Thread Sven Meier
You probably want to close the modal window anyway, so please read here: https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html Have fun Sven On 10/31/2010 01:18 PM, fachhoch wrote: I have a panel it has a download link. below is the code for download

download link inside a modal window

2010-10-31 Thread fachhoch
I have a panel it has a download link. below is the code for download setRedirect(false); WebResponse response = (WebResponse) getResponse(); response.setAttachmentHeader(filename); response.setLastModifiedTime(Time.now()); response.setContentType("appl

Re: If-Modified-Since header

2010-10-31 Thread Martin Grigorov
Hi Mauro, /resources is a special path managed by Wicket, e.g. ResourceReference(MyComponent.class, "myImage.gif") will be reachable at /resources/com.mypackage.MyComponent/myImage.gif Resources which are put in next to WEB-INF folder are not managed by WIcket and they are served directly by the

Re: Force DownloadLink

2010-10-31 Thread Thomas Singer
? On 31.10.2010 03:07, d2marcelo wrote: > > Hello, > > how to force the DownloadLink to start downloading a file without the user > clicking on it? > > I'm trying to do dowload.onClick(); from a setWindowClosedCallback but it > won't start. > > Any thoughts? >

Re: get localized string from Model class?

2010-10-31 Thread 7zark7
I understand that, but in this case a IModel or IConverter seems appropriate since I'm only interested in the string representation of a date, not page or component markup. However, in doing this, you seem to lose some of Wicket's nice localization conventions. On 10/30/10 11:36 PM, vineet