Re: Attach multiple javascript file to a page

2011-08-24 Thread m.ugues
I tried before, same behaviour. Where could be the problem? Maybe I should link my javascript and css directly in my html page, but I read https://cwiki.apache.org/WICKET/including-css-resources.html here that the best practice is linking them (js and css) server-side. Massimo -- View this

Wicket and Scala

2011-08-24 Thread danisevsky
Hello, I am playing with Scala and Wicket and I am not clear about using val and var when I am working with JPA entity objects (which are not serializable). For example: add(new RefreshingView[User](users){ override def getItemModels(): java.util.Iterator[IModel[User]] = { var

Re: AJAXDownload Example Doesn't Support Content-Disposition (Save As)

2011-08-24 Thread Igor Racic
Hi, It worked in IE7. FF/Chrome option setting to download in fixed directory played here. I changed to ask on every download and now it works (both ways !). Is there a way so that right click propose correct name (currenctly it's like xyz.htm / xyz.htm.part) ? Thank you and regards, Igor

Re: Call urlFor(Class, PageParams) outside of request cycle

2011-08-24 Thread lucast
Hi Alex Swan, I know the post is a bit old now. I had a similar problem a couple of months ago and the way I got around it is by creating a non bookmarkable link at same time I created the main object via the wicket app and I stored it on the DB. Quartz then I would fetch the stored link from the

Re: ConcurrentModificationException since Update to 1.4.18

2011-08-24 Thread Martin Grigorov
There are no changes in o.a.w.markup.repeater.data package for an year. org.apache.wicket.markup.repeater.data.DataViewBase.ModelIterator uses your IDataProvider.iterator() impl. Do you share IDataProvider instances between pages ? I see it fails in unit test which makes it even more strange how

Re: Wicket and Scala

2011-08-24 Thread Martin Grigorov
Do you experience problems ? I see no reason this to fail. I think the constant (val/final) should be declared outside of the RepeatingView scope and used inside it, then it will be serialized with it. On Wed, Aug 24, 2011 at 10:45 AM, danisevsky danisev...@gmail.com wrote: Hello, I am playing

Re: AJAXDownload Example Doesn't Support Content-Disposition (Save As)

2011-08-24 Thread Igor Racic
Works by using AttributeModifier for href. Any objection to use it with AjaxLink ? Thank you and regards, Igor 2011/8/24 Igor Racic igor.ra...@gmail.com Hi, It worked in IE7. FF/Chrome option setting to download in fixed directory played here. I changed to ask on every download and now it

Re: Wicket and Scala

2011-08-24 Thread Bruno Borges
Define as var I had some serialization problems with that too. On Wed, Aug 24, 2011 at 9:55 AM, Martin Grigorov mgrigo...@apache.orgwrote: Do you experience problems ? I see no reason this to fail. I think the constant (val/final) should be declared outside of the RepeatingView scope and

Ajax-refreshing parent page from modal window with Page content

2011-08-24 Thread lunchbox
Hi all, This question has been asked here several times before but there is really no satisfactory answer. I have a modal window using PageCreator, and I need to ajax-refresh some components on the parent page from where the modal window is opened, when it is closed. I'm have a markup container

Re: Ajax-refreshing parent page from modal window with Page content

2011-08-24 Thread Martin Grigorov
When a Page is used the modalWindow is loaded in an iframe, that's why it cannot find the elements in the parent page with the current implementation of wicket-ajax.js. What's the problem to load several panel based modalwindows ? On Wed, Aug 24, 2011 at 4:21 PM, lunchbox lunchbox4s...@gmail.com

Re: Ajax-refreshing parent page from modal window with Page content

2011-08-24 Thread lunchbox
Hi Martin, Thank you for your reply. I cannot recall what problem there was nesting Panel-based modal windows, but there was something :( Let me try that solution -- I'll get right back with my findings for any extra advice. A small POC seemed to work OK though. Thanks, Lunchbox -- View this

Re: Ajax-refreshing parent page from modal window with Page content

2011-08-24 Thread lunchbox
Hi again Martin, I tried using Panels now, it seems I get some other problem now: 78Wicket.Ajax: Wicket.Ajax.Call.submitFormById: Trying to submit form with id 'form3b' that is not in document. This is not the problem I ran into before though :[ I'm finished for today so I'll have to get back

wicket include in test

2011-08-24 Thread Alexander Gubin
I saw similar post about 2 years ago, but seems that the question was left unaswered. http://wicket-users.markmail.org/message/o6ub7gjxrheevlo4?q=test+include I have a page with Include, works fine, however when testing I get: org.apache.wicket.util.resource.ResourceStreamNotFoundException:

Problem with setCacheable(false) (No-Cache Header in WebResource)

2011-08-24 Thread eugenebalt
I have an issue with the setCacheable(false) header in a WebResource (Excel file). When the download link for the WebResource is clicked from a secure site (SSL), there is an error: Internet Explorer cannot find the site. I found an explanation for this on MS's support site,

Book covering 1.5

2011-08-24 Thread Fabian Schwarzer
Hi! Does anyone know if there is anyone out there writing a book covering the upcoming Wicket release 1.5? Or is e.g. Wicket in Action planing a new edition? Thanks, Fabian - To unsubscribe, e-mail:

Re: Wizard step - adding multiple addresses to one client

2011-08-24 Thread nebojsa.nedic
I will definitely go to that direction and then we will see what will happen. Thank you Sven for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wizard-step-adding-multiple-addresses-to-one-client-tp3763189p3765991.html Sent from the Users forum mailing

Re: Problem with setCacheable(false) (No-Cache Header in WebResource)

2011-08-24 Thread eugenebalt
Guys, what exactly happens when I do setCacheable(false) on a WebResource? Does that mean the downloaded file isn't cached locally? That can't be true, because I am getting a file called report[1].xls where the [1] indicates that it was saved in my Temp Internet Files folder, even when I do

Re: Problem with setCacheable(false) (No-Cache Header in WebResource)

2011-08-24 Thread eugenebalt
So to summarize: 1) When I do setCacheable(false), I can open my Excel link multiple times by clicking the same link, no problems 2) When I do setCacheable(true), I get File Locked on my Excel any time after the 1st download, and then I have to Delete Temporary Internet Files. Once I delete my

Create Url for Application Homepage

2011-08-24 Thread Christian Huber
Hi, the method Component#urlFor(Class pageClass, PageParameters parameters) allows you to create an application relative link that could be used as dynamic links or stored in a database to be accessed later. Now I noticed that links created for the page set as the applications HomePage the

Re: ConcurrentModificationException since Update to 1.4.18

2011-08-24 Thread Johannes Schneider
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for your answer. On 24.08.2011 14:43, Martin Grigorov wrote: There are no changes in o.a.w.markup.repeater.data package for an year. org.apache.wicket.markup.repeater.data.DataViewBase.ModelIterator uses your IDataProvider.iterator() impl.

Re: Create Url for Application Homepage

2011-08-24 Thread Martin Grigorov
mount your home page for HomePage1: /home1 for HomePage2: /home2 voila! On Wed, Aug 24, 2011 at 10:28 PM, Christian Huber hub...@butterbrot.org wrote: Hi, the method Component#urlFor(Class pageClass, PageParameters parameters) allows you to create an application relative link that could be

Re: Create Url for Application Homepage

2011-08-24 Thread Christian Huber
Aaaahh.. cool. Works great. Thanks :-) The Sanity Resort http://sanityresort.blogspot.com/ Am 24.08.2011 21:44, schrieb Martin Grigorov: mount your home page for HomePage1: /home1 for HomePage2: /home2 voila! On Wed, Aug 24, 2011 at 10:28 PM, Christian Huberhub...@butterbrot.org wrote: Hi,

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
actually the message property for FeedbackMessage is of type java.io.Serializable, not java.lang.String. So you can can add your own custom error message class instead of a plain string. e.g. inside your page error(new MessageWithSortCriteria(foobar, 4711)) with public class

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
seems like this works only for error(Serializable) the required methods for info() and warn() accepting serializable are missing changing these in 1.4 would mean an api break however you can add any kind of message easily with Session.get().getFeedbackMessages().add(new

Re: Sorting Feedback Messages

2011-08-24 Thread Igor Vaynberg
there is a long standing issue in jira to address this. something to queue for 1.6 -igor On Wed, Aug 24, 2011 at 3:24 PM, Peter Ertl pe...@gmx.org wrote: seems like this works only for error(Serializable) the required methods for info() and warn() accepting serializable are missing

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
igor, you mean the sorting criteria or supporting java.io.Serializable for info(), warn(), error(), success() ? 1.5 accepts Serializable for these methods already... So one more nice feature when you upgrade to 1.5 :-) Am 25.08.2011 um 00:31 schrieb Igor Vaynberg: there is a long standing

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
here's the related ticket: https://issues.apache.org/jira/browse/WICKET-2986 Am 25.08.2011 um 00:47 schrieb Peter Ertl: igor, you mean the sorting criteria or supporting java.io.Serializable for info(), warn(), error(), success() ? 1.5 accepts Serializable for these methods already...

Re: Sorting Feedback Messages

2011-08-24 Thread Igor Vaynberg
yep, that was the one...i forgot we fixed it. -igor On Wed, Aug 24, 2011 at 3:52 PM, Peter Ertl pe...@gmx.org wrote: here's the related ticket: https://issues.apache.org/jira/browse/WICKET-2986 Am 25.08.2011 um 00:47 schrieb Peter Ertl: igor, you mean the sorting criteria or supporting