Re: Request for re-opening a Jira issue

2014-09-15 Thread Martin Grigorov
Hi, I think it should not be re-opened! 1. JIRA is not support forum! If you have questions then you should ask here (at users@ mailing list). If you have ideas then you should discuss them at dev@ mailing list. 2. If you want to not have the ?pageId in the url then you should stick to

[ANNOUNCE] Apache Wicket 1.5.12 is released

2014-09-15 Thread Martin Grigorov
This is the twelfth maintenance release of the Wicket 1.5.x series. This release brings over 5 bug fixes and improvements. Git tag: release/wicket-1.5.12 Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12326154 Maven: dependency

Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
Hi, is there a way to process post data with the wicket ajax function - ep dep are only for strings. Kind regards and thanks! Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
http://markmail.org/message/fw7cjfo7bzvkjfdu Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 15, 2014 at 3:11 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Hi, is there a way to process post data with the wicket ajax function - ep

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
And how do I read the ep / dep in the backend if they aren't of Type String but a plain javascript object? ty for the fast response! Tobias Am 15.09.2014 um 14:16 schrieb Martin Grigorov mgrigo...@apache.org: http://markmail.org/message/fw7cjfo7bzvkjfdu Martin Grigorov Wicket Training

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
With HTTP you can send either string or binary. You have to convert at the server side On Sep 15, 2014 3:20 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: And how do I read the ep / dep in the backend if they aren't of Type String but a plain javascript object? ty for the

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
But they are add to the query string. This is really bad - maybe it would be nice to add a new special attribute which is given directly to the jquery's data attribute. It would be possible to get the content via inputstream of the httpservletrequest.

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
If you use Wicket.Ajax.post() or Wicket.Ajax.ajax({m:post, }) then the parameters won't be in the query string. wicket-ajax.js puts the parameters to $.ajax({data: HERE, ...}) and depending on the used 'method' (GET or POST) they will be in the query string or request body. Do you say that

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
No - I'm using Wicket.Ajax.post(...) - but if I do a normal $.ajax with -- type:post, contentType:false, processData:false --I can read the content by inputstream I saw that the attrs.ep are passed into the data property but they are encoded which is wrong jQuery.param(data) line 634 of

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
Let me show an example (%s are going to be replaced with the url / callbackscript): $.ajax({ type : 'POST', url : '%sfileName=' + encodeURIComponent(file.name) + 'dropid='+dropid+'fileid=' + fileid, data : file, contentType : false, processData : false,

Re: Ajax Post Data

2014-09-15 Thread Martin Grigorov
Please file a ticket with attached quickstart application. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 15, 2014 at 4:44 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Let me show an example (%s are going to be replaced with the url

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
Okay will do it when Im at home. :-) kind regards Tobias Am 15.09.2014 um 15:53 schrieb Martin Grigorov mgrigo...@apache.org: Please file a ticket with attached quickstart application. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 15,

Programmatic Markup with fallback

2014-09-15 Thread Thibault Kruse
Hi, I am trying to create a wicket panel that renders markup from some remote source, but if fetching fails, renders some fallback markup. I want to achieve this with minimal code. I tried two approaches one based on overriding getMarkup(), one based on

Re: Programmatic Markup with fallback

2014-09-15 Thread Sven Meier
Hi, which Wicket version? The first approach leads to a MarkupException here with Wicket 1.6.x. Regards Sven On 09/15/2014 07:37 PM, Thibault Kruse wrote: Hi, I am trying to create a wicket panel that renders markup from some remote source, but if fetching fails, renders some fallback

Re: Programmatic Markup with fallback

2014-09-15 Thread Thibault Kruse
Sorry, this was wicket 1.6.16 and 1.6.17. Here is a quickstart, to reproduce both cases some comments have to be switched: https://github.com/tkruse/custommarkup On Mon, Sep 15, 2014 at 7:50 PM, Sven Meier s...@meiers.net wrote: Hi, which Wicket version? The first approach leads to a

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
Ok I solved my problem with the quickstart and some investigations about post requests: var reader = new FileReader(); reader.onload = (function(file) { return function(e) { Wicket.Ajax.post({'u':'%sfileName=' + encodeURIComponent( file.name) +

Re: Ajax Post Data

2014-09-15 Thread Ernesto Reinaldo Barreiro
Hi, Thanks for sharing! Why not make HTML5FilesDropableAjaxEventBehavior public static so that it can be reused independently of Panel? On Mon, Sep 15, 2014 at 8:30 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Ok I solved my problem with the quickstart and some

Re: Ajax Post Data

2014-09-15 Thread Tobias Soloschenko
Hi, it is not public static because of the use of ids and because of the callback methods. kind regards Tobias 2014-09-15 20:37 GMT+02:00 Ernesto Reinaldo Barreiro reier...@gmail.com: Hi, Thanks for sharing! Why not make HTML5FilesDropableAjaxEventBehavior public static so that it can be

Re: Ajax Post Data

2014-09-15 Thread Ernesto Reinaldo Barreiro
You can make it abstract with same callback methods as panel. Users can the choose between panel or behavior. On Mon, Sep 15, 2014 at 8:41 PM, Tobias Soloschenko tobiassolosche...@googlemail.com wrote: Hi, it is not public static because of the use of ids and because of the callback