Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment

2017-03-13 Thread Manfred Bergmann
I'll try that. Thanks guys. Have opened issue on GitHub. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-ToolbarButton-renders-href-which-removes-existing-URL-fragment-tp4677304p4677312.html Sent from the Users forum mailing list archive at

Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment

2017-03-13 Thread Sebastien
Hi Manfred, Hi Martin, Unfortunately this part does not rely on the integration but on kendo-ui itself, so I'm afraid we have to hack a bit :( Changing the href attribute should be done when data are loaded, the idea is to identify buttons with a special css class and update the href on

Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment

2017-03-13 Thread Martin Grigorov
On Mon, Mar 13, 2017 at 6:21 PM, Manfred Bergmann wrote: > Martin Grigorov-4 wrote > > If Wicket-JQuery-UI adds this "#" then I'd recommend to replace it with > > href="javascript:;". Some prefer "javascript:void(0)" but this is a bit > > longer. > > "#" has such side

Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment

2017-03-13 Thread Manfred Bergmann
Martin Grigorov-4 wrote > If Wicket-JQuery-UI adds this "#" then I'd recommend to replace it with > href="javascript:;". Some prefer "javascript:void(0)" but this is a bit > longer. > "#" has such side effects. OK, how would I do that. Via AttributeModifier? Because it doesn't seem to be rendered

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Martin Grigorov
On Mon, Mar 13, 2017 at 6:11 PM, Francois Meillet < francois.meil...@gmail.com> wrote: > found that org.apache.wicket:wicket-core:jar:8.0.0-M4 use > com.tdunning:json > > > com.tdunning > json > > > > de.agilecoders.wicket:wicket-bootstrap-extensions:jar:2.0.0-M2 use >

Re: Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment

2017-03-13 Thread Martin Grigorov
Hi, On Mon, Mar 13, 2017 at 5:37 PM, Manfred Bergmann wrote: > Hi. > > The DataTable component has Toolbar-/CommandButtons which seem to be > rendered (by JavaScript) like this: > Button name <#> > > The href="#" causes a problem because once the button is clicked it

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Francois Meillet
found that org.apache.wicket:wicket-core:jar:8.0.0-M4 use com.tdunning:json com.tdunning json de.agilecoders.wicket:wicket-bootstrap-extensions:jar:2.0.0-M2 use com.google.javascript:closure-compiler:v20130603 com.google.javascript

Kendo UI - ToolbarButton renders href="#" which removes existing URL fragment

2017-03-13 Thread Manfred Bergmann
Hi. The DataTable component has Toolbar-/CommandButtons which seem to be rendered (by JavaScript) like this: Button name <#> The href="#" causes a problem because once the button is clicked it deletes the existing URL fragment which must be kept intact. What could be done to remove the

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Martin Grigorov
On Mon, Mar 13, 2017 at 3:23 PM, Francois Meillet < francois.meil...@gmail.com> wrote: > AbstractDefaultAjaxBehavior > > protected final CharSequence renderAjaxAttributes(final Component > component, AjaxRequestAttributes attributes) { > > .../... > > >

Wicketstuff UrlFragment - modifying URL calls onParameterArrival

2017-03-13 Thread Manfred Bergmann
Hi. I'm using UrlFragment Wicketstuff project to manipulate the URL. When manipulating the URL via putParameter() call, etc. there is an immediate callback to the page which implements onParameterArrival() handler. Can this be avoided somehow? I'd just like to have this handler being called when

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Francois Meillet
AbstractDefaultAjaxBehavior protected final CharSequence renderAjaxAttributes(final Component component, AjaxRequestAttributes attributes) { .../... List dynamicExtraParameters =

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Martin Grigorov
8.0.0-SNAPSHOT uses https://github.com/openjson/openjson But AFAIK the problem is not fixed there. If you have time to debug why it works it would be helpful! Mikhail is going to implement the missing #put(String, Collection|Map) methods and make a release. Then we will update all branches!

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Francois Meillet
Hi Martin, I do not get any error with the 8.0.0-SNAPSHOT François > Le 13 mars 2017 à 10:14, Martin Grigorov a écrit : > > Hi Francois, > > It is strange that it fails when built on Mac only. > But the issue looks the same as the one reported by Sebastien. > >

Re: Problem with testing AbstractAjaxBehavior

2017-03-13 Thread Martin Grigorov
Hi, Your code is not formatted and it is quite hard to read and follow it. Could you please re-send it ? Also is it possible to try with 6.26.0 ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Mar 13, 2017 at 8:07 AM, Hans-Heinrich Braun <

Re: AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Martin Grigorov
Hi Francois, It is strange that it fails when built on Mac only. But the issue looks the same as the one reported by Sebastien. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Mar 13, 2017 at 8:09 AM, Francois Meillet < francois.meil...@gmail.com> wrote: >

AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Francois Meillet
I forgot to say : Apache Wicket 8.0.0-M4 François

Problem with testing AbstractAjaxBehavior

2017-03-13 Thread Hans-Heinrich Braun
In my Application i have a DropDownSelect which changes a Label onUpdate by   AjaxFormComponentUpdatingBehaviorThen there is a Button which tries access at the selected item. In the real Webapp it works fine but when i test itwhen i click the Button the selected Item is null.What I am doing

AjaxClientInfoBehavior - Ajax request:SyntaxError: function statement requires a name

2017-03-13 Thread Francois Meillet
Hi, I add an AjaxClientInfoBehavior to a page. Sometimes I get an error. This is very strange and I have no clue. I have 2 computers, 1 Debian, 1 Osx, within the same network. If I compile the code on the Osx boxe, publish the war on a Tomcat instance running on the Osx box or on the Debian