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: http://wicket.apache.org";> Apache Wi

RE: custom bootstrap stylesheet

2014-03-24 Thread Gabriel Landon
Yes, true. It uses the theme/boostrap css first and then I override whatever css class I need to tweak in my own file. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-bootstrap-stylesheet-tp4665044p4665116.html Sent from the Users forum mailing list archive at

Re: Show Excelsheet in Browser

2014-03-24 Thread Martin Grigorov
Stefan's approach is even better when you have to work with raw data (like byte[]). DownloadLink should be used when your data is already stored in a file. Martin Grigorov Wicket Training and Consulting On Mon, Mar 24, 2014 at 4:48 PM, Stefan Renz wrote: > Hi, > > we use a ResourceLink with a

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(). I

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.: +4

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

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 Li

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 Integratio

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, wrote: > How can I change the ContentDisposition while using an DownloadLink? > > > Mit freundlichen Grüßen > Christoph Manig > Systems Engineer > > T-Systems International GmbH > Systems I

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 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 fil

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, wrote: > The DownloadLink open the save as dialog but I want to show the data in a > browser embedd

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 Hoy

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, 20

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 Christo

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, w

Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Hello, I want to show an excel data set by clicking on a wicket button. The sheet should be shown in the browser and this data set has multiple table-sheets. How can I do that with wicket? Mit freundlichen Grüßen Christoph Manig

Re: ajax event not quite working as planned

2014-03-24 Thread Entropy
I solved my button issue by creating two buttons and toggling their visibility rather than changing the label on a single button. i still think the original solution should have worked, but I have fixed the problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ajax

Re: Best practice: JS/CSS library resource references

2014-03-24 Thread Martin Grigorov
On Mon, Mar 24, 2014 at 12:59 PM, Jesse Long wrote: > On 24/03/2014 12:05, Martin Grigorov wrote: > >> Hi Jesse, >> >> >> >> On Mon, Mar 24, 2014 at 11:11 AM, Jesse Long wrote: >> >> Hi All, >>> >>> Wicket uses mostly ResourceReferences to render and manage the URLs for >>> CSS and JavaScript f

Re: Best practice: JS/CSS library resource references

2014-03-24 Thread Jesse Long
On 24/03/2014 12:05, Martin Grigorov wrote: Hi Jesse, On Mon, Mar 24, 2014 at 11:11 AM, Jesse Long 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

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. Bu

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 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 > requirement to a

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. Typically

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 Message--