Re: Injecting proxy services in page.

2013-06-18 Thread martin.dilger
To be honest, I dont understand exactly what the Problem is. If you work with Spring-Beans, they are normally safe to serialize, as its only the proxy. We´ve done this all the time (even with older wicket versions) without any problems. It looks like you have some Classpath-Issue here. The

Re: Form submit without redirection

2013-06-18 Thread martin.dilger
If you work with JQuery and Validation, why dont you use Ajax to Submit your form? You could attach your errors to the AjaxRequestTarget as JavaScript / JSON and process it on the client-side, which would be far better that using PageParameters instead? -- View this message in context:

Re: Empy choices durring unit tests with DropDownChoice

2013-06-18 Thread martin.dilger
Dmitriy, Dmitriy...:) Never ever call getObject() on your LoadableDetachable Model in the Constructor of your Component (I taught you better!!:)). Should be: new DropDownChoice(aWicketId, yourModel,new ChoicesModel(), myOwnChoicesRenderer) Mind the second Parameter, as this is your Model that

Re: Server side caching of generated resources

2013-06-18 Thread Michael Haitz
Hi, if you describe your process a bit more, i could help you out. In one of my projects we render additional/browser specific css files like all other css files (except the browser checks based on ClientProperties, no conditional comments and so on). Do you know

Re: Server side caching of generated resources

2013-06-18 Thread Thomas Heigl
Hey Michael, Yeah respond.js is exactly what we are using. However, I overlooked that it kind of supports CDN/X-Domain via a local proxy. The solution looks a bit complicated but I'll give it a try now. If it works it would solve my original issue. Cheers, Thomas On Tue, Jun 18, 2013 at 10:11

Re: Empy choices durring unit tests with DropDownChoice

2013-06-18 Thread Dmitriy Neretin
:)) You should better dive into your new project :)) It didn't work... And I don't have any idea why... The constructor (id, myModel, choicesModel, renderer) didn't work too :)) But the example is too complicated to discuss it here. But it works fine if I use this: (id, choisesModel, renderer)

Re: wicket and flow

2013-06-18 Thread Piratenvisier
Thank you Martin. Now I started another evaluation process after studying spring Webflow and Seam an especially this discussion http://http://ptrthomas.wordpress.com/2007/03/02/wicket-impressions-moving-from-spring-mvc-webflow/ lets me think more profoundly about the subject. In cocoon I

Resource mounting: Why has a resource always a lower compatibility score than a page?

2013-06-18 Thread Per Newgro
Hi, i would like to mount a resource with a name /mypath/${param1}/whatever. I've already mounted a page with /mypath. I was wondering why i was always redirected to the /mypath page. In ResourceMapper i've found this: code @Override public int getCompatibilityScore(Request request) {

Re: Resource mounting: Why has a resource always a lower compatibility score than a page?

2013-06-18 Thread Martin Grigorov
Hi, Don't know. But we have to take this into account when/if we start working on the idea explained at: http://markmail.org/thread/ku6me4odezqqivjy On Tue, Jun 18, 2013 at 1:16 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i would like to mount a resource with a name

Ajax file download - Invalid XML

2013-06-18 Thread René Hartwig
Hi, I'm using Wicket 6.7.0 with an embedded Jetty and implemented a file download mechanism as suggested here: https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow My implementation is slighlty different from the

Re: Ajax file download - Invalid XML

2013-06-18 Thread Ernesto Reinaldo Barreiro
It should be the AJAX part that fails for some reason... If you put a break point on writeDownload you might see that no download request is produced. The trick work as follows. Please, try to provide a quick start or provide more info because I do not see how we could otherwise help you. On

Re: Ajax file download - Invalid XML

2013-06-18 Thread Martin Grigorov
Hi, On Tue, Jun 18, 2013 at 2:14 PM, René Hartwig rene.hart...@befine-solutions.com wrote: Hi, I'm using Wicket 6.7.0 with an embedded Jetty and implemented a file download mechanism as suggested here:

Re: Ajax file download - Invalid XML

2013-06-18 Thread Ernesto Reinaldo Barreiro
Well spotted.. and I guess the wrong XML error is because you are returning CSV instead of wicket AJAX XML. On Tue, Jun 18, 2013 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Tue, Jun 18, 2013 at 2:14 PM, René Hartwig rene.hart...@befine-solutions.com wrote: Hi, I'm

Re: Ajax file download - Invalid XML

2013-06-18 Thread René Hartwig
Great, thanks - that was it Best regards, Ren Ren Hartwig Senior Developer Befine Solutions AG - The Cryptshare Company Bebelstrae 17 79108 Freiburg

Re: Form submit without redirection

2013-06-18 Thread divad91
Yeah it would be much easier that way. We have ajax for every actions in our form but when we want to change page, we use the full submit. I could do the same thing with an abstract behavior. I will give it a try. Thanks. -- View this message in context:

ajax Pagination with datatable

2013-06-18 Thread Pratibha
Hi Team, my requirement is to add pagination at the the bottom of dataTable, i basically require pagination at top as well as bottom,top pagination exists in my web app . is it possible to add pagination at the bottom ? Thanks -- View this message in context:

Re: ajax Pagination with datatable

2013-06-18 Thread Martin Grigorov
Hi, For top you use something like: getTopToolbars().add(new AjaxNavigationToolbar()); Just use getBottomToolbar(). On Tue, Jun 18, 2013 at 4:31 PM, Pratibha pratibha.pari...@gmail.comwrote: Hi Team, my requirement is to add pagination at the the bottom of dataTable, i basically require

Re: ajax Pagination with datatable

2013-06-18 Thread Pratibha
Hi Martin, I added the below line and yes its working, can't believe it was just one line. dataTable.addBottomToolbar(new AjaxNavigationToolbar(dataTable)); Thanks :) -- View this message in context:

Re: ajax Pagination with datatable

2013-06-18 Thread Martin Grigorov
Sometimes component-oriented frameworks really work ;-) On Tue, Jun 18, 2013 at 4:52 PM, Pratibha pratibha.pari...@gmail.comwrote: Hi Martin, I added the below line and yes its working, can't believe it was just one line. dataTable.addBottomToolbar(new AjaxNavigationToolbar(dataTable));

Modifying components parent css

2013-06-18 Thread neilbennett
Hi, I have a number of RequiredTextField components on a form. I am using Twitter Bootstrap for CSS. On the form it switches between view and edit modes. In order to display a required border on the field I need to have: But in view mode I need: However I can't find how to modify the parent

Annoying wicket API Docs ... includes exmaples api docs

2013-06-18 Thread armandoxxx
Hey there ... Does anybody have a link of only wicket framework API docs ? The one that does not include examples docs? It's kind of annoying searching through API, you find a class which looks like something you might use and you find out it's from examples and with none descriptions

Re: Annoying wicket API Docs ... includes exmaples api docs

2013-06-18 Thread Ernesto Reinaldo Barreiro
Why don't you just install the sources locally on you IDE. Them, you would have both Java doc and source code... There is no better documentation than the code itself. On Wed, Jun 19, 2013 at 9:33 AM, armandoxxx armando@dropchop.comwrote: Hey there ... Does anybody have a link of only