Re: AjaxCallListener and promises

2017-05-03 Thread Martin Grigorov
Hi, No, Wicket doesn't use the return values for all handlers but "preconditions" [1]. And even for preconditions the only value that matters is the literal *false.* 1.

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
My bad. Problem solved, accidentally this part of code was within a block of markup text where all whitespace was replaced with non breaking space. Nbsp looks the same for naked eye but a diff tool shows the difference, and obviously browser will render differently compared to

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Really strange, works on same installation in simpler installation. No difference in http traffic... 2017-05-03 18:07 GMT+03:00 Martin Makundi < martin.maku...@koodaripalvelut.com>: > Interesting, it works in a quickstart also on v1.4. > > Need to investigate more. > > 2017-05-03 17:20 GMT+03:00

AjaxCallListener and promises

2017-05-03 Thread Boris Goldowsky
Is there any way to use a method that returns a promise as the onBefore of an IAxaxCallListener? I don’t want the ajax operation to move forward until the promise resolves. Due to the nature of promises in Javascript, there doesn’t seem to be a way to simply wait for it. Boris

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Interesting, it works in a quickstart also on v1.4. Need to investigate more. 2017-05-03 17:20 GMT+03:00 Martin Grigorov : > I don't see any reason why this could break. > If you are able to reproduce it in a quickstart with 6.26/7.6 then please > create a ticket in JIRA.

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Grigorov
I don't see any reason why this could break. If you are able to reproduce it in a quickstart with 6.26/7.6 then please create a ticket in JIRA. Check what is in the Ajax response, not what is in the DOM. Also you can check with Google Chrome. Maybe Firefox does something funky. Martin Grigorov

Re: Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Here is a sample how it works in jsfiddle without problems: https://jsfiddle.net/#=0SQvHmm6Nj But when same content is in ajax update it breaks. Wonder what happens to it before render? 2017-05-03 16:06 GMT+03:00 Martin Makundi < martin.maku...@koodaripalvelut.com>: > Hi! > > I am trying to

Question about ajax encoding/decoding, problem with image data url

2017-05-03 Thread Martin Makundi
Hi! I am trying to display (wicket 1.4) an image using base64 image data representation. For some reason the base64 gets garbled every time with ajax. For example:

Re: Modal dialog, form validation in AjaxBootstrapTabbedPanel

2017-05-03 Thread Martin Grigorov
Hi, I think I see the problem. When using AjaxBootstrapTabbedPanel the tabs' content is loaded one at a time. This makes it hard to validate the complete form because not all fields are available at any time. You may need to use

Re: Why has a cell item a model (and why is it a model with the populator (with the property) of the column)?

2017-05-03 Thread Sven Meier
Hi, a cell item is an org.apache.wicket.markup.repeater.Item, and each item has a model - so AbstractDataGridView just uses a model containing the ICellPopulator for that. It seems strange, that all cells of a row share the same model object, but it does no harm. Do you see a problem? Have fun

Why has a cell item a model (and why is it a model with the populator (with the property) of the column)?

2017-05-03 Thread Eric J. Van der Velden
Hello, I don't understand why a cell item gets a model, because I have not seen where it is used. Only the model in the row item is used, together with the property of the column. Also why is the populator of the column in that model? public abstract class AbstractDataGridView extends