Re: Serve file without download links etc

2014-12-04 Thread fred-fri
IOUtils.copy(data, attributes.getResponse().getOutputStream()); } } }); } return resourceResponse; } }; } }); On 2014年12月03日 12:10, fred-fri wrote: > I need to implement public URL

Serve file without download links etc

2014-12-02 Thread fred-fri
I need to implement public URLs that lead directly to files. I'm thinking I could create a page that takes a unique file identifier as parameter, uses that to look up the file, and serve the file. But how can I serve the file immediately without using download links etc? --

(Stupid) license questions

2014-11-21 Thread Fred
Are there any requirements on what license (if any) code that uses Wicket must be released under and what acknowledgements (if any) must be provided? Does it differ depending on the nature of what is being released? (e.g. whole apps that use Wicket vs individual, only slightly modified copies of Wi

RequestMapper for Ajax Events

2013-04-18 Thread Fred!!!
-delete-link Is there a way to render these URL like the following example? http://localhost:8012/Cart/entry/1/delete I tried to write my own IRequestHandler and IRequestMapper to handle it at Component:urlFor but that wasn’t successful. Cheers Fred

Re: 6.0 Migration issue: wrap Wicket Ajax JS-code as previously with AjaxCallDecorators

2013-02-14 Thread Fred!!!
eAjaxAttributes(AjaxRequestAttributes attr) { attributes.setThrottlingSettings(new ThrottlingSettings(id, delay)) } } Greets Fred Am 14.02.2013 17:54, schrieb Martin Dietze: In the project I'm currently migrating from Wicket 1.4 to 6.6 I have a few pieces of code whe

Re: How to null-check manually converted TextField values?

2013-02-14 Thread Fred!!!
Hi, an other solution is to add a NullAcceptingValidator to your Textfield. Thus wicket will pass to IValidator.validate(IValidatable) See http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/validation/INullAcceptingValidator.html Cheers Fred Am 14.02.2013 00:55, schrieb

Re: Panel Loop

2011-09-15 Thread Fred
Thanks! worked with: RepeatingView view = new RepeatingView("people"); for(People person : searchResponse.getAll()) { for(Employees employee : person.getEmployees()) { for(District dis : person.getDistrict()) { view.add(new Em

Panel Loop

2011-09-15 Thread Fred
Hello, I have a panel to which I want to add multiple items. I have put it into a loop and as long as I have only one panel I am good, with more than one it errorsI get why it errors, it has a panel with that name already, however I have no idea how to solve this. Can I create a list of the Emplo

RE: Open PDF in a new window

2011-07-18 Thread Fred
8 Jul 2011 12:48:42 -0700 From: ml-node+3676253-1736905783-252...@n4.nabble.com To: smiths...@hotmail.com Subject: Re: Open PDF in a new window Look in the mail archives. This has been discussed two weeks ago On Mon, Jul 18, 2011 at 9:55 PM, Fred <[hidden email]> wrote: > Hello

Open PDF in a new window

2011-07-18 Thread Fred
Hello, I am trying to open this pdf in a new window with no sucess. protected void onSubmit() { final ByteArrayOutputStream pdfout = PDFHelper.genPDF(); final Response response = getRequestCycle().getResponse(); response.setContentType("application/pdf");