RE: custom bootstrap stylesheet

2014-03-24 Thread Richter, Marvin
That does not override the CSS file used by wicket-bootstrap. It just renders an additional CSS reference in the head section. So it might happen that either my custom or the original Style Sheet will be used depending on which one will be rendered first. Marvin Richter -Original

Best practice: JS/CSS library resource references

2014-03-24 Thread Jesse Long
Hi All, Wicket uses mostly ResourceReferences to render and manage the URLs for CSS and JavaScript files to be included in the output. When we use libraries like JQuery UI, Bootstrap etc, it is often a requirement to allow the user to provide his own customized resource references.

Re: Best practice: JS/CSS library resource references

2014-03-24 Thread Martin Grigorov
Hi Jesse, On Mon, Mar 24, 2014 at 11:11 AM, Jesse Long j...@unknown.za.net wrote: Hi All, Wicket uses mostly ResourceReferences to render and manage the URLs for CSS and JavaScript files to be included in the output. When we use libraries like JQuery UI, Bootstrap etc, it is often a

ImageUploadPlugin of TinyMCE icon and resource problem

2014-03-24 Thread Sandor Feher
Hi Guys, I experienced the same problem in 6.0 and above that has been solved in 6.0-SNAPSHOT. My second problem is how to reach the uploaded image from another page than it has been uploaded. (I upload a pic into my content editor, save it and would like to display my article at another page.

Re: Show Excelsheet in Browser

2014-03-24 Thread Martin Grigorov
Hi, You can use a JavaScript solution like http://handsontable.com/index.htmlto show spreadsheet like tables. I am not sure whether it supports multiple sheets. I guess there are more such JS solutions out there. Martin Grigorov Wicket Training and Consulting On Mon, Mar 24, 2014 at 2:56 PM,

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Hello, iam getting an byte array from the backend and I want to send this to the browser with an outputstream. So the browser notice that he gets an excel sheet and shows this. It should be the same if you open pdfs with the browser while downloading this data. Mit freundlichen Grüßen

Re: Show Excelsheet in Browser

2014-03-24 Thread Martin Grigorov
then all you need is to set few response headers: Content-Disposition: Inline Content-type: (see http://stackoverflow.com/a/2938188/497381) See org.apache.wicket.markup.html.link.DownloadLink#onClick for an example how to do this Martin Grigorov Wicket Training and Consulting On Mon, Mar 24,

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
The DownloadLink open the save as dialog but I want to show the data in a browser embedded excel. Are there other Wicket-Components to implement this? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics

Re: Show Excelsheet in Browser

2014-03-24 Thread Martin Grigorov
Yes, DownloadLink uses ContentDisposition.ATTACHMENT. You need #INLINE. That's why I said to use it as an example. Martin Grigorov Wicket Training and Consulting On Mon, Mar 24, 2014 at 3:39 PM, christoph.ma...@t-systems.com wrote: The DownloadLink open the save as dialog but I want to show

Re: Show Excelsheet in Browser

2014-03-24 Thread Carl-Eric Menzel
If the browser doesn't know how to display an excel file inline, it will still open a download window. This has nothing to do really with Wicket - if you want the browser to display an actual Excel .xls file, you need a browser plugin that can do it. What you can do, for example, is parse the

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
How can I change the ContentDisposition while using an DownloadLink? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0)

Re: Show Excelsheet in Browser

2014-03-24 Thread Martin Grigorov
You can't at the moment. Martin Grigorov Wicket Training and Consulting On Mon, Mar 24, 2014 at 4:19 PM, christoph.ma...@t-systems.com wrote: How can I change the ContentDisposition while using an DownloadLink? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Sorry for so much questions but it’s the first webapp I have to develop. How can I change the ContentDisposition to show the data embedded in the browser? Which Link or button should I use. Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems

Re: Show Excelsheet in Browser

2014-03-24 Thread Martin Grigorov
There is no Link impl in Wicket distro that does all you need. DownloadLink is the closest but it uses ContentDisposition#ATTACHMENT to make a real download experience. I think it is OK to add a way to change the content disposition for the next version. Until then you will have to use your own

Re: Best practice: JS/CSS library resource references

2014-03-24 Thread Sebastien
Hi, I like the idea too... Even, I am not sure to have understood the use-case about the Session scope here, but I trust you :) I've got one question... Imagine you are supplying 2 libraries, plugin1 and plugin2 for instance The libraries definitions would be IPlugin1LibrarySettings extends

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Is it possible to override the onclick-method of DownloadLink and change the ContentDisposition to INLINE? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.:

Re: Show Excelsheet in Browser

2014-03-24 Thread Stefan Renz
Hi, we use a ResourceLink with a ResourceReference wrapping an AbstractResource, that generates an Excel via POI in a WriteCallback implementation. The AbstractResource implementation can #setContentType() and #setContentDisposition() on the attributes object passed into #newResourceResponse().

jQuery noConflict() and wicket 6

2014-03-24 Thread trlt
I wrote a simple test program to understand how jQuery.noConflict() works with Wicket 6. The program uses 2 different jQuery libraries (jQuery 1.11.0 by Wicket 6 and jQuery 1.4.4 by someone else), and can be explained in its *.html file: !DOCTYPE html html xmlns:wicket=http://wicket.apache.org;