Re: Kendo DataTable - row click handler

2020-09-27 Thread Sebastien Briquet
Hi Manfred,

I've implemented the change, please read my comment in the issue:
https://github.com/sebfz1/wicket-jquery-ui/issues/320

I released wicket-jquery-ui-8.9.0, containing the change (caution: I also
upgraded kendo-ui to 2020.3.915)

Thanks and best regards,
Sebastien


Re: Kendo DataTable - row click handler

2020-09-24 Thread Sebastien Briquet
Hi Manfred,

You can pass select="row" as an option (options arg) IIRC.

However I don't remember if the ajax call is implemented or not.
Please let me know or open an issue in github, that should not be a problem
to implement...

Thanks and best regards,
Sebastien


>
>


Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up

2019-09-11 Thread Sebastien
Hi Manfred,

Alternatively, you can have a look at KendoDestroyListener, Initializer,
and classes implementing IDestroyable in Wicket jQuery UI...

Thanks and best regards,
Sebastien


Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up

2019-09-09 Thread Sebastien
Hi Manfred,

Sorry, my previous answer was incomplete.
Kendo components do usually have two methods for ajax, #reload and #refresh.
Reload aims to reload the component (ie reattach to the dom) while refresh
aim to refresh the data only.
IIRC, grid and chart are different in the sense that grid does have its
datasource aware of the request cycle so it is safe to reattach/reload the
component, the datasource will be destroyed from the dom. That's
unfortunately not the case of the chart (you can open an issue, I can try
to figure out if it's achievable).
One nice way to refresh the data without having the reload/reattach the
component is to use the event bus. Your master page/component will
send/broadcast a RefreshEvent or RefreshChatEvent that will be catched by
the component hosting the chart (or the chart itself if you have overriden
it). Then just call refesh...

Thanks and best regards,
Sebastien


On Mon, Sep 9, 2019, 23:29 Manfred Bergmann  wrote:

> Hi Sebastian.
>
> OK, but I don't really see how reusing instances of a Kendo Grid really
> works in a component based design where the parents of where the Grids are
> placed are replaced on the page.
>
> In particular we have a three panes border layout, kind of a
> 'master-detail'
> plus a tree on the left side.
> The right most pane is the 'detail' pane where panels are replaced
> depending
> on selection on the 'master' pane. Those panels can contain Kendo Grid but
> some do not. So I have no other chance of creating new instances of Kendo
> Grids (DataTable).
> So switching through the 'master' selections creates new Kendo Grids, or
> Charts adding up datasources on the DOM root.
>
> I don't see how just using Chart/DataTable#refresh really should work?
>
>
> Manfred
>
>
>
> Sebastien wrote
> > Hi Manfred,
> >
> > The recommended way to refresh kendo ui components - those bound to a
> > datasource - is to read from the datasource.
> >
> > See Chart#refresh, it should solve the problem.
> >
> > Thanks and best regards,
> > Sébastien
>
>
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket Kendo UI - Grid/Chart datasources not cleaned up

2019-09-09 Thread Sebastien
Hi Manfred,

The recommended way to refresh kendo ui components - those bound to a
datasource - is to read from the datasource.

See Chart#refresh, it should solve the problem.

Thanks and best regards,
Sébastien


Re: Notify Action to the Parent Class

2019-05-26 Thread Sebastien
Hi,

François solution is based on the wicket event bus which is the recommanded
approach.

To broadcast to a parent component which might not be the page, you can use
:
send(this, Broadcast.BUBBLE)
Or even
send(getPage(), Broadcast.BREADTH)

You may also put a breakpoint in onEvent to verify it is reached with your
payload.

Thanks,
Sebastien

On Mon, May 27, 2019, 10:03 Sibgha Nazir  wrote:

> Hey,
>
> I tried what you mentioned. The condition is never satisfied.
>
> *if (event.getPayload() instanceof YourEvent)  *
>
> On Sun, May 26, 2019 at 6:10 PM Francois Meillet <
> francois.meil...@gmail.com>
> wrote:
>
> > Hi Sibgha,
> >
> > // here is a simple code
> >
> > //
> > // in your Dpanel
> > //
> > protected void onUpdate(AjaxRequestTarget target) {
> > send(getPage(), Broadcast.EXACT, new
> > YourEvent(yourDataFromYourDropDownChoice));
> > }
> >
> >
> > //
> > // in your HomePage, you override the onEvent method
> > //
> > @Override
> > public void onEvent(IEvent event) {
> > super.onEvent(event);
> >
> > if (event.getPayload() instanceof YourEvent) {
> >
> > YourEvent yourEvent = (YourEvent) = event.getPayload();
> > // the data you sent throw your vent
> > YourData xyz = yourEvent.getData();
> > // if you don't neeed anymore your event
> > event.stop();
> > }
> > }
> >
> >
> > // look at the docs
> >
> >
> https://ci.apache.org/projects/wicket/guide/8.x/single.html#_wicket_events_infrastructure
> >
> >
> > François
> > follow Apache Wicket on twitter : https://twitter.com/apache_wicket <
> > https://twitter.com/apache_wicket> !
> >
> >
> > > Le 26 mai 2019 à 15:33, Sibgha Nazir  a écrit :
> > >
> > > Hi,
> > >
> > > In my application, Home Page creates DPanel and Dpanel has the drop
> down
> > > menu.   In the class DPanel at 'onchange' event, I want to do some
> action
> > > in the class HomePage.java. How can that be possible?
> > >
> > >
> > > *HomePage.java*public HomePage(final PageParameters parameters)
> > >{
> > >super(parameters);
> > >
> > >final Panel dropDownPanel = new Dpanel("toReplace");
> > >
> > >dropDownPanel.setOutputMarkupId(true);
> > >add(dropDownPanel);
> > >}
> > >
> > >
> > > *DPanel.java*public Dpanel(String aId)
> > >{
> > >super(aId);
> > >form = new Form("form");
> > >form.setOutputMarkupId(true);
> > >
> > >// SelectMenu //
> > >final DropDownChoice dropdown = new
> > > DropDownChoice("select", new Model(), new
> > > ListModel(GENRES));
> > >dropdown.setRequired(true);
> > >dropdown.setOutputMarkupId(true);
> > >dropdown.add(new AjaxFormComponentUpdatingBehavior("change") {
> > >/**
> > > *
> > > */
> > >private static final long serialVersionUID =
> > > -6744838136235652577L;
> > >
> > >protected void onUpdate(AjaxRequestTarget target) {
> > >System.out.println("Changed");
> > >
> > >}
> > >});
> > > .
> > > .
> > > .
> > > .
> > >
> > > Quick Start here...
> > > https://github.com/Sibgha360/dropdownexample.git,
> >
> >
>


Re: Kendo window adds up in DOM

2019-05-20 Thread Sebastien Briquet
Hi Manfred,

Are you using a FormWindow? Because it is designed to prevent this behavior.
https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x/wicket-kendo-ui/src/main/java/com/googlecode/wicket/kendo/ui/widget/window/FormWindow.java#L192

Otherwise please create a quickstart so I can have a better look...

Thanks in advance,
Sebastien.

On Mon, May 20, 2019 at 4:13 PM Bergmann Manfred 
wrote:

> Hi.
>
> I have the following problem.
> We have a Kendo `Window` which we use as confirmation window with form and
> checkbox.
> After the first successful submit (checkbox verification OK) of the window
> form any new spawned window submits ‚value=on‘ even though the checkbox is
> not ‚checked‘.
>
> The window is part of an inner container that is part of an outer
> container.
> The outer container creates new inner containers depending on a navigation.
> So basically a new window is created each time for the same WicketId.
>
> What appears to happen is that whenever an inner container is created that
> contains a window, a new window is added in the DOM, under body.
> Any previous window is not removed.
>
> I have tried to create a stripped down version of this in a simple page
> but can’t reproduce the issue there.
> In this stipped down version the windows are removed from DOM.
>
> I’m assuming (couldn’t really verify this yet) that after a successful
> submit (checkbox checked) some listeners are not completely cleaned up and
> a new window uses some old data, or the OK button of the new Window
> actually triggers a listener of some old window which contained the checked
> checkbox, hence the ‚value=on‘ is transmitted.
>
> After a browser ‚refresh‘ this behavior is gone and a new window works
> properly, once.
>
>
> Anyone has an idea about what happens here?
>
>
>
> Regards,
> Manfred
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket recognized by ASF

2019-03-26 Thread Sebastien
Great!! :)


Re: Wicket-jquery-ui autocomplete running slow

2019-03-08 Thread Sebastien
Hi, in your browser devtool / network, that the timing says while calling
getchoice ?

On Sat, Mar 9, 2019, 06:59 Entropy  wrote:

> My project is using the wicket-jquery-ui AutoCompleteTextField.  We're
> returning a list that was prefetched and all we do in the getChoices is
> create a sublist.  the entire getChoices runs in milliseconds...usually
> 20-30, which I know because I put a rudimentary timer in it.  Yet, the
> autocomplete feels very sluggish as we're testing it.  So I put a timer in
> a
> filter that wraps our wicket calls and timed that.  The filter timer shows
> the entire event is running 2-4 seconds.
>
> 2-4 seconds per keystroke when the fattest part of the call, the data
> retrieval, is only taking 20-30ms seems like something is wrong.  The
> list's
> max size is being limited to 100 rows, but even when I pared it down to 10
> rows the improvement was only marginal.
>
> I pasted the code below, but that mostly just shows the getChoices() which,
> as I said above, is just filtering over a list in memory.  Any ideas?
>
> AutoCompleteTextField fld = new
> AutoCompleteTextField(fldId)
> {
> protected List getChoices(String input) {
> long start = System.currentTimeMillis();
> if (minInputLen > 0) {
> if (input == null ||
> input.trim().length() < minInputLen) {
> return
> Collections.EMPTY_LIST;  // empty list
> }
> }
>
> List curMatchingList =
> getFilterList(valList, input,
> maxFilterListSize); // filters the in memory list valList by the input
>
> if (curMatchingList == null) {
> curMatchingList = new
> ArrayList();
> }
>
> if (curMatchingList.size() == 0) {
> if (noResultsVal != null) {
>
> curMatchingList.add(noResultsVal);  // no-results option
> }
> }
> System.out.println("GETCHOICES: " +
> (System.currentTimeMillis() -
> start));
> return curMatchingList; // data list
> }
> };
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket and material theme

2019-03-05 Thread Sebastien
Hi,

For instance Kendo UI is providing widgets with material and material black

https://demos.telerik.com/kendo-ui/themebuilder/


Wicket Kendo UI:

https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x/README.md#using-standard-themes-1

Wicket Kendo UI is not yet aligned with latest wicket 8 version, check on
maven central for the latest version if you are interested (I think the
readme is not up to date too). Hopefully the latest version will be
released soon...

Thanks,
Sebastien


Re: Wicket-jquery-ui question

2019-02-18 Thread Sebastien Briquet
Hi,

If the dialog is instantiated in a lazy loading panel, maybe the issue
could be something like:
http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/

But this kind of behavior is normally fixed in wickte-jquery-ui. But my
guess is that it's somehow related to the event binding...

Please have a look at the generated javascript in your page and try to
isolate the defect...

Thanks,
Sebastien


Re: An open source git server written with Wicket

2019-01-07 Thread Sebastien Briquet
Very nice work, congrats !!

You should add onedev.io repo to the demo though :)
>

Good point, haha! :)


Re: Custom type for

2018-06-29 Thread Sebastien Briquet
Hi,

You can extend an AbstractStringResourceStream [1] and then pass its
content to a StringHeaderItem [2]

[1]
https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x/wicket-jquery-ui-core/src/main/java/com/googlecode/wicket/jquery/core/template/JQueryTemplateResourceStream.java#L69
[2] https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x
/wicket-jquery-ui-core/src/main/java/com/googlecode/wicket/jquery/core/template/JQueryTemplateHeaderItem.java#L65

Hope this helps,
Sebastien.


Re: Ajax and async task

2018-06-20 Thread Sebastien Briquet
Hi Zbynek,

Some times ago I did a quickstart for async calls with Websocket
notification.
Not exactly your use-case but it can give you some ideas...

https://github.com/sebfz1/wicket-quickstart-cdi-async

Best regards,
Sebastien


Re: Nice article on Wicket 8 by the New Stack

2018-06-12 Thread Sebastien Briquet
Very nice! Thanks for sharing! :)


Re: Lazy loading of Wizard's steps

2018-05-29 Thread Sebastien Briquet
This might be configured on component, page or application level (ie:
MyApplication.properties)


Re: Lazy loading of Wizard's steps

2018-05-28 Thread Sebastien
Hi, AFAIR this is possible with DynamicWizardStep


Fwd: [ANNOUNCE] CVE-2018-1325 - Wicket jQuery UI: XSS while displaying value in WYSIWYG editor

2018-04-20 Thread Sebastien Briquet
FYI.

Thanks Maxim! :)

-- Forwarded message --
From: Maxim Solodovnik 
Date: Wed, Apr 18, 2018 at 6:39 PM
Subject: [ANNOUNCE] CVE-2018-1325 - Wicket jQuery UI: XSS while displaying
value in WYSIWYG editor
To: Openmeetings user-list , dev <
d...@openmeetings.apache.org>, user-russ...@openmeetings.apache.org


CVE-2018-1325 - Wicket jQuery UI: XSS while displaying value in WYSIWYG
editor

Severity: High

Vendor: wicket-jquery-ui

Versions Affected: <= 6.29.0, <= 7.10.1, <= 8.0.0-M9.1

Description: JS code created in WYSIWYG editor will be executed on display
CVE-2018-1325

The issue was fixed in 6.29.1, 7.10.2, 8.0.0-M9.2
All users are recommended to upgrade to Apache OpenMeetings 4.0.3

Credit: This issue was identified by Kamil Sevi


-- 
WBR
Maxim aka solomax


[ANNOUNCE] CVE-2017-15719 - Wicket jQuery UI: XSS in WYSIWYG Editor

2018-02-25 Thread Sebastien Briquet
CVE-2017-15719 - Wicket jQuery UI: XSS in WYSIWYG editor

Severity: High
Versions Affected: <= 6.28.0, <= 7.9.1, <= 8.0.0-M8

Artifacts Affected:

   - wicket-jquery-ui-plugins (
   com.googlecode.wicket.jquery.ui.plugins.wysiwyg.WysiwygEditor)
   - wicket-kendo-ui (com.googlecode.wicket.kendo.ui.widget.editor.Editor)

Description: A security issue as been discovered in the WYSIWYG Editor that
allows an attacker to submit arbitrary JS code to WYSIWYG editor.

All users are recommended to upgrade to the latest version (6.29.0, 7.10.1,
8.0.0-M9.1)
The issue was fixed in 6.28.1, 7.9.2, 8.0.0-M8.1

Credit: The issue has been identified in Apache OpenMeeting by Sahil Dhar
(Security Innovation Inc)

References:
https://github.com/sebfz1/wicket-jquery-ui/wiki#cve-2017-15719---xss-in-wysiwyg-editor


Re: Apache Wicket - Java Release train

2018-02-24 Thread Sebastien Briquet
Hi Mihir,

I presume you are talking about java.awt.font library.
If it's the case, the only references of "awt.Font" I found are located in :
- DefaultButtonImageResource.java (wicket-core) to which one can specify
the Font object
- CaptchaImageResource (wicket-extensions), which could use "Helvetica",
"Arial" and/or "Courier" font

Hope this helps,
Sebastien


[ANNOUNCE] Wicket jQuery UI 8.0.0-M9.1 released

2018-02-23 Thread Sebastien Briquet
Dear Wicket jQuery/Kendo UI users,

Due to a bug discovered yesterday that affects several Kendo UI components
on latest release (7.10.0 & 8.0.0-M9), I had to roll out a patch release :
8.0.0-M9.1 which is now available at maven central.

Thanks & best regards,
Sebastien.


On Mon, Feb 19, 2018 at 8:32 PM, Sebastien Briquet 
wrote:

> Dear Wicket jQuery/Kendo UI users,
>
> Wicket jQuery UI 8.0.0-M9 based on Apache Wicket 8.0.0-M9 is now released!
>
> Changelog:
> https://github.com/sebfz1/wicket-jquery-ui/releases/tag/
> wicket-jquery-ui-8.0.0-M9
>
> API BREAKS:
> - Kendo UI: API BREAK Editor model object is now String type (no more
> generic T)
> - Kendo UI: API BREAK DataProviderBehavior#newJsonRow(T bean) now returns
> a JSONObject
>
> Maven dependencies:
>
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-jquery-ui
> 8.0.0-M9
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-jquery-ui-theme-base
> 8.0.0-M9
> 
>
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-kendo-ui
> 8.0.0-M9
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-kendo-ui-theme-default
> 8.0.0-M9
> 
>
> Questions / Issues:
>
> If you have any *question*, feel free to ask in the forum:
> http://groups.google.com/group/wicket-jquery-ui/
>
> If you notice an *issue*, please report it here:
> https://github.com/sebfz1/wicket-jquery-ui/issues
>
> Enjoy! :)
> Sebastien
>


[ANNOUNCE] Wicket jQuery UI 6.29.0 released

2018-02-23 Thread Sebastien Briquet
Dear Wicket jQuery/Kendo UI users,

Wicket jQuery UI 6.29.0 based on Apache Wicket 6.29.0 is now released!

Changelog (same as 8.0.0-M9):
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/
wicket-jquery-ui-8.0.0-M9

API BREAKS:
- Kendo UI: API BREAK Editor model object is now String type (no more
generic T)
- Kendo UI: API BREAK DataProviderBehavior#newJsonRow(T bean) now returns a
JSONObject

Maven dependencies:




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
6.29.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
6.29.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
6.29.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
6.29.0


Questions / Issues:

If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


[ANNOUNCE] Wicket jQuery UI 7.10.1 released

2018-02-23 Thread Sebastien Briquet
Dear Wicket jQuery/Kendo UI users,

Due to a bug discovered yesterday that affects several Kendo UI components
on latest release (7.10.0 & 8.0.0-M9), I had to roll out a patch release :
7.10.1 which is now available at maven central.

Thanks & best regards,
Sebastien.

On Tue, Feb 20, 2018 at 12:27 AM, Sebastien Briquet 
wrote:

> Dear Wicket jQuery/Kendo UI users,
>
> Wicket jQuery UI 7.10.0 based on Apache Wicket 7.10.0 is now released!
>
> Changelog (same as 8.0.0-M9):
> https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wick
> et-jquery-ui-8.0.0-M9
>
> API BREAKS:
> - Kendo UI: API BREAK Editor model object is now String type (no more
> generic T)
> - Kendo UI: API BREAK DataProviderBehavior#newJsonRow(T bean) now returns
> a JSONObject
>
> Maven dependencies:
>
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-jquery-ui
> 7.10.0
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-jquery-ui-theme-base
> 7.10.0
> 
>
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-kendo-ui
> 7.10.0
> 
>
> 
> com.googlecode.wicket-jquery-ui
> wicket-kendo-ui-theme-default
> 7.10.0
> 
>
> Questions / Issues:
>
> If you have any *question*, feel free to ask in the forum:
> http://groups.google.com/group/wicket-jquery-ui/
>
> If you notice an *issue*, please report it here:
> https://github.com/sebfz1/wicket-jquery-ui/issues
>
> Enjoy! :)
> Sebastien
>


Re: Issues upgrading to Wicket 8.0.0-M9

2018-02-20 Thread Sebastien Briquet
Right, latest jQuery-ui release is September 14, 2016 :(

On Tue, Feb 20, 2018 at 1:04 PM, Emond Papegaaij  wrote:

> On maandag 19 februari 2018 11:22:30 CET Thomas Heigl wrote:
> > 1. Current WiQuery version is not compatible with M9
> >
> > It still depends on WicketEventJQueryResourceReference. It would be
> great
> > if someone could cut a milestone release for WiQuery as well, so I can do
> > further testing with my application.
>
> I've just pushed a fix for this. WiQuery master now compiles against M9.
> Please
> not that wiquery-jquery-ui is hopelessly outdated. I hope to get that
> fixed in
> the comming month. However, it seems jquery-ui is dead as well (which does
> make it easier to stay up to date from now on :) ).
>
> Best regards,
> Emond
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


[ANNOUNCE] Wicket jQuery UI 7.10.0 released

2018-02-19 Thread Sebastien Briquet
Dear Wicket jQuery/Kendo UI users,

Wicket jQuery UI 7.10.0 based on Apache Wicket 7.10.0 is now released!

Changelog (same as 8.0.0-M9):
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M9

API BREAKS:
- Kendo UI: API BREAK Editor model object is now String type (no more
generic T)
- Kendo UI: API BREAK DataProviderBehavior#newJsonRow(T bean) now returns a
JSONObject

Maven dependencies:




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
7.10.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
7.10.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
7.10.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
7.10.0


Questions / Issues:

If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


[ANNOUNCE] Wicket jQuery UI 8.0.0-M9 released

2018-02-19 Thread Sebastien Briquet
Dear Wicket jQuery/Kendo UI users,

Wicket jQuery UI 8.0.0-M9 based on Apache Wicket 8.0.0-M9 is now released!

Changelog:
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M9

API BREAKS:
- Kendo UI: API BREAK Editor model object is now String type (no more
generic T)
- Kendo UI: API BREAK DataProviderBehavior#newJsonRow(T bean) now returns a
JSONObject

Maven dependencies:




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
8.0.0-M9



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
8.0.0-M9





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
8.0.0-M9



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
8.0.0-M9


Questions / Issues:

If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


Re: Resetting Kendo DataTable column sort

2018-02-19 Thread Sebastien Briquet
Hi,

This is fixed. The backing ISortState should be a SingleSortState for this
reset behavior to be supported.
8.0.0-M9 & 7.10.0 should be released tonight, with the fix.

Thanks for having reported the issue!
Sebastien.


Re: Resetting Kendo DataTable column sort

2018-02-16 Thread Sebastien Briquet
Hi,

I will try to have a look at this over the week-end (which is already more
than overbooked so no promises...)

Best regards,
Sebastien


On Fri, Feb 16, 2018 at 4:47 PM, hkacoding  wrote:

> Hello,
>
> using wicket.kendo.ui.datatable.DataTable and with ISortStateLocator data
> provider with SingleSortState.
>
> Problem is that resetting sort to original state is difficult because with
> 3rd click of header cell 'setSort' is never called, so sort state stays in
> descending state with same sort property.
>
> Overrider DataProviderBehavior/setSort to see what happens and appears that
> 'setSort' is never called on 3rd click of header because variable
> 'logicPattern' is null
>
> DataProviderBehavior:
>   if (logicPattern != null) {
> this.setSort(PropertyUtils.unescape(logicPattern),
> fieldPattern == null ? SortOrder.NONE : (fieldPattern.equals("asc") ?
> SortOrder.ASCENDING : SortOrder.DESCENDING));
> }
>
> Using Wicket 7.9
>
> Suggestions ?
>
> hk
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Hyderabad Java & Wicket Meetup: 24 January

2018-01-16 Thread Sebastien
Great, have a good time! :)


Re: WiQuery 6.x and JQuery UI draggable (auto-scroll) bug

2017-11-14 Thread Sebastien
Hi Rakesh,

According to the github repo, WiQuery has not been updated since a while...
You can give a try to wicket-jquery-ui if you like, it is running jquery-ui
1.12.1

Repo: https://github.com/sebfz1/wicket-jquery-ui
Demo:
http://www.7thweb.net/wicket-jquery-ui/draggable/ComponentDraggablePage

Best regards,
Sebastien.



On Tue, Nov 14, 2017 at 2:08 PM, Rakesh A 
wrote:

> Hi,
>
> We are using wiquery 6.13.0 to build some interactive UI. This includes
> JQuery's UI draggable, droppable, etc.
> jquery-ui-1.10.4 is used in wiquery-6.13.0
>
> There was a bug with jquiery-ui in draggable component. The auto-scroll
> does
> not work properly, which can be seen using the below give jsfiddle link.
> https://jsfiddle.net/mohammed_techie/5bv8wjuc/
>
> It has been fixed along with few other bugs mentioned at below change log
> link https://jqueryui.com/changelog/1.11.0/#interactions
>
> JQuery UI issue details can be found at
> https://bugs.jqueryui.com/ticket/9379
>
> It has been fixed by jquery ui, but unfortunately we cannot apply that fix
> (in our code), only option is to have this latest JQuery UI (and draggable)
> version as part of WiQuery.
>
> Are there plans to upgrade JQuery UI version in WiQuery 6.x branch ?
> Any work around that we can use ?
>
> Regards,
> Rakesh.A
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


[ANNOUNCE] Wicket jQuery UI 8.0.0-M8 released

2017-11-02 Thread Sebastien
Dear Wicket jQuery/Kendo UI users,

Wicket jQuery UI 8.0.0-M8 based on Apache Wicket 8.0.0-M8 is now released!

Changelog:
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M8

Maven dependencies:




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
8.0.0-M8



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
8.0.0-M8





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
8.0.0-M8



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
8.0.0-M8


Questions / Issues:

If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


Re: Wicket jqueryui DropDownChoice not working in AbstractFormDialog

2017-10-18 Thread Sebastien
Perfect workaround ! :)

Could also be written this way:
behavior.setOption("appendTo",
Options.asString(JQueryWidget.getSelector(myDialog)));

The #setAppendTo(Component) is a nice idea! I've added an issue so I do not
forget:
https://github.com/sebfz1/wicket-jquery-ui/issues/278

Thanks & best regards,
Sebastien.


Re: Wicket jqueryui DropDownChoice not working in AbstractFormDialog

2017-10-18 Thread Sebastien
That's basically a css issue (which can also be solved by calling
#selectmenu() on dialog#open AFAIS)
I tried several css trick but so far I can get it work only once, with this
rule in HomePage$Dialog.html for instance:

.ui-selectmenu-open {
z-index: 999;
}


You can google this to continue investigating : "jquery ui selectmenu
dialog not working" (seems to be a common issue)
Please keep me up to date. I will try to continue investigating later this
week...

Good luck,
Sebastien.


On Wed, Oct 18, 2017 at 1:46 PM, Reiche, Andreas <
andreas.rei...@lgln.niedersachsen.de> wrote:

> Not working means the DropDown is rendered but if you click on it the
> options are not shown.
> Btw. The same DDC works when it's placed outside of dialog.
> All together in the Quickstart.
>
> Andreas Reiche
>
>
>
> > -Ursprüngliche Nachricht-
> > Von: Sebastien [mailto:seb...@gmail.com]
> > Gesendet: Mittwoch, 18. Oktober 2017 11:21
> > An: users@wicket.apache.org
> > Betreff: Re: Wicket jqueryui DropDownChoice not working in
> AbstractFormDialog
> >
> > Hi, I cannot test the quickstart right now. By not working, do you mean
> it
> > is a display issue, or a behavioral issue? In the firstcase, it is
> likely a
> > css issue (please checkout the wicket-jquery-ui forum, I'm pretty sure
> the
> > question was raised in there before...)
>


Re: Wicket jqueryui DropDownChoice not working in AbstractFormDialog

2017-10-18 Thread Sebastien
Hi, I cannot test the quickstart right now. By not working, do you mean it
is a display issue, or a behavioral issue? In the firstcase, it is likely a
css issue (please checkout the wicket-jquery-ui forum, I'm pretty sure the
question was raised in there before...)


[ANNOUNCE] Wicket jQuery UI 6.28.0 Released

2017-10-07 Thread Sebastien
Dear Wicket jQuery/Kendo UI users,

Wicket jQuery UI 6.28.0 based on Apache Wicket 6.28.0 is now released!

Changelog (same as 7.9.0) :

https://github.com/sebfz1/wicket-jquery-ui/releases/tag/
wicket-jquery-ui-7.9.0

Maven dependencies:




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
6.28.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
6.28.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
6.28.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
6.28.0


Questions / Issues:

If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


Re: Kendo UI - Datatable per row basis

2017-10-04 Thread Sebastien
Hi Manfred,

You can control the button visibility on the databound event (client side).
The buttons are actually links so I'd rather advice you to control the
visibility instead of the enable/disable state.

Here is an example:

MyDataTable.java

@Override
public void renderHead(IHeaderResponse response)
{
super.renderHead(response);

response.render(new 
JavaScriptPackageHeaderItem(MyDataTable.class));
// MyDataTable.js (dataBound)
}

// events //

@Override
public void onConfigure(JQueryBehavior behavior)
{
super.onConfigure(behavior);

behavior.setOption("dataBound", "MyDataTable_dataBound"); // or
MyDataTable.dataBound, depending of your js coding style
}

MyDataTable.js

function MyDataTable_dataBound(e) {

datatable_dataBound(e); // calls wicket-kendo-ui default

var $grid = e.sender; // or 'this'

// remove delete button
$grid.tbody.find("tr .k-grid-delete").each(function () {

var row = $(this).closest("tr")
var dataItem = $grid.dataItem(row);

// check if 'myprop' is set
if (dataItem.myprop) {
$(this).remove(); // or $(this).hide(), both work AFAIK
}
});
}


Hope this helps,

Sebastien.




On Tue, Oct 3, 2017 at 10:44 PM, Manfred Bergmann 
wrote:

> Hi.
>
> Is it possible, or do you have some pointers if it is possible to render
> row
> content different on the Wicket Kendo Datatable component?
> For example, say there is a column with command buttons. I'd like to
> disable/enable those on a per row basis depending on the row model.
>
>
> Regards,
> Manfred
>
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Joda-time dependency

2017-09-26 Thread Sebastien
Hi Maxim,

I didn't saw a LocalDateTime converter in the previous commit. If it is the
case, would it be worth it?

https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x/wicket-kendo-ui/src/main/java/com/googlecode/wicket/kendo/ui/form/datetime/local/DateTimePicker.java#L326

Thanks in advance,
Sebastien


On Tue, Sep 26, 2017 at 2:15 PM, Sebastien  wrote:

>
> On Tue, Sep 26, 2017 at 12:38 PM, Martin Grigorov 
> wrote:
>
>> On Tue, Sep 26, 2017 at 1:29 PM, Maxim Solodovnik 
>> wrote:
>>
>> > Hello Sven,
>> >
>> > I have updated WICKET-6105 description with your improvement and have
>> > started to work on it.
>> >
>> > I got questions :))
>> > I believe both DateConverter (to perform conversion to/from
>> java.util.Date)
>> > and LocalDateConverter should exist in wicket WDYT?
>> >
>> >
>> I agree!
>>
>>
> Hi definitely agree too! :)
>


Re: Joda-time dependency

2017-09-26 Thread Sebastien
On Tue, Sep 26, 2017 at 12:38 PM, Martin Grigorov 
wrote:

> On Tue, Sep 26, 2017 at 1:29 PM, Maxim Solodovnik 
> wrote:
>
> > Hello Sven,
> >
> > I have updated WICKET-6105 description with your improvement and have
> > started to work on it.
> >
> > I got questions :))
> > I believe both DateConverter (to perform conversion to/from
> java.util.Date)
> > and LocalDateConverter should exist in wicket WDYT?
> >
> >
> I agree!
>
>
Hi definitely agree too! :)


>
> > On Tue, Sep 26, 2017 at 3:08 PM, Maxim Solodovnik 
> > wrote:
> >
> > > Now it works,
> > > Thanks a lot Martin :)
> > >
> > > On Tue, Sep 26, 2017 at 2:20 AM, Martin Grigorov  >
> > > wrote:
> > >
> > >> Do you have more than one JIRA users ?!
> > >> I've added you to all possible groups in WICKET's JIRA. You must have
> > even
> > >> Admin rights.
> > >> I'm afraid you should ask Infra for more help if the issue persists.
> > >>
> > >> Martin Grigorov
> > >> Wicket Training and Consulting
> > >> https://twitter.com/mtgrigorov
> > >>
> > >> On Mon, Sep 25, 2017 at 6:06 PM, Maxim Solodovnik <
> solomax...@gmail.com
> > >
> > >> wrote:
> > >>
> > >> > Thanks Martin,
> > >> >
> > >> > but I'm still unable to change description or add comment :(
> > >> >
> > >> > On Mon, Sep 25, 2017 at 1:17 PM, Martin Grigorov <
> > mgrigo...@apache.org>
> > >> > wrote:
> > >> > > On Sat, Sep 23, 2017 at 7:27 PM, Maxim Solodovnik <
> > >> solomax...@gmail.com>
> > >> > > wrote:
> > >> > >
> > >> > >> It seems I'm unable to edit
> > >> > >> https://issues.apache.org/jira/browse/WICKET-6105 (to add points
> > >> > proposed
> > >> > >> be Sven)
> > >> > >> Can someone please grant me rights?
> > >> > >>
> > >> > >
> > >> > > Done!
> > >> > > I've re-assigned the ticket to you!
> > >> > > Thank you, Maxim!
> > >> > >
> > >> > >
> > >> > >
> > >> > >>
> > >> > >> On Sat, Sep 23, 2017 at 11:20 PM, Maxim Solodovnik <
> > >> > solomax...@gmail.com>
> > >> > >> wrote:
> > >> > >>
> > >> > >> > Thanks Sven,
> > >> > >> >
> > >> > >> > Here is the PR with the current changes
> > >> > >> > Will try to work on it tomorrow
> > >> > >> >
> > >> > >> > On Sat, Sep 23, 2017 at 3:57 PM, Sven Meier 
> > >> wrote:
> > >> > >> >
> > >> > >> >> Hi,
> > >> > >> >>
> > >> > >> >> there are many topics to improve on:
> > >> > >> >>
> > >> > >> >> - DateConverter should be name DateTimeConverter and convert
> to
> > >> > >> >> LocalDateTime
> > >> > >> >> - DateField should work on a LocalDate (no longer extending
> > >> > >> DateTimeField)
> > >> > >> >> - without the DatePicker we could merge DateField and
> > >> DateTextField
> > >> > >> >> - TimeField should work on a LocalTime (no longer extending
> > >> > >> DateTimeField)
> > >> > >> >> - for DateTimeField we should consider whether it works on
> > >> > ZonedDateTime
> > >> > >> >> or LocalDateTime - AFAIK most people use the former
> > >> > >> >>
> > >> > >> >> Perhaps you could create a pull request instead, so we all
> have
> > it
> > >> > >> easier
> > >> > >> >> to discuss the api changes.
> > >> > >> >>
> > >> > >> >> Have fun
> > >> > >> >> Sven
> > >> > >> >>
> > >> > >> >>
> > >> > >> >> Am 23.09.2017 um 07:41 schrieb Maxim Solodovnik:
> > >> > >> >>
> > >> > >> >>> Local build is successful, could someone please review the
> > >> changes?
> > >> > >> >>> And I bet some additional classes/methods will be required
> ...
> > >> > >> >>>
> > >> > >> >>> On Sat, Sep 23, 2017 at 12:22 AM, Maxim Solodovnik <
> > >> > >> solomax...@gmail.com
> > >> > >> >>> >
> > >> > >> >>> wrote:
> > >> > >> >>>
> > >> > >> >>> I have commited the code to WICKET-6105-java.time branch
> > >> > >>  The code is compilable (merged with master)
> > >> > >>  But tests fails, will try to continue this work on the
> weekend
> > >> > >> 
> > >> > >>  On Fri, Sep 22, 2017 at 10:55 PM, Maxim Solodovnik <
> > >> > >>  solomax...@gmail.com>
> > >> > >>  wrote:
> > >> > >> 
> > >> > >>  Just re-read description for WICKET-6105
> > >> > >> > , will
> > try
> > >> to
> > >> > >> >
> > >> > >> > continue the work started by Martin in the same branch
> > >> > >> >
> > >> > >> > On Fri, Sep 22, 2017 at 10:04 PM, Maxim Solodovnik <
> > >> > >> > solomax...@gmail.com>
> > >> > >> > wrote:
> > >> > >> >
> > >> > >> > I read through http://markmail.org/thread/uqu6gfma6wihwcwt
> > >> > >> >> And It seems all I need to do is to remove wicket-datetime
> > >> module
> > >> > >> and
> > >> > >> >> all references
> > >> > >> >>
> > >> > >> >> Is this correct?
> > >> > >> >>
> > >> > >> >> On Fri, Sep 22, 2017 at 9:47 PM, Maxim Solodovnik <
> > >> > >> >> solomax...@gmail.com>
> > >> > >> >> wrote:
> > >> > >> >>
> > >> > >> >> Done: https://github.com/wicketstuff/core/commit/
> > 4f4a945d3fc
> > >> > >> >>> a0f856b8ec4f7e065da5f980feec6
> > >> > >> >>>
> > >> > >> >>> On Fri, Sep 22, 2017 at 8:28 PM, Maxim 

[ANNOUNCE] Wicket jQuery UI 7.9.0 Released

2017-09-24 Thread Sebastien
Dear Wicket jQuery/Kendo UI users,

Wicket jQuery UI 7.9.0 based on Apache Wicket 7.9.0 is now released!

Changelog:

https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-7.9.0

Maven dependencies:




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
7.9.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
7.9.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
7.9.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
7.9.0


Questions / Issues:

If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)


Re: Joda-time dependency

2017-09-17 Thread Sebastien
Hi Maxim,

Good catch! But this is the DateTextField part of wicket-extensions, not
the one in wicket-datetime...
https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java

Best regards,
Sebastien


On Sun, Sep 17, 2017 at 5:38 PM, Maxim Solodovnik 
wrote:

> I'm referring to this [1] dependency
> `DatePicker extends DateTextField`
>
>
> [1] https://github.com/sebfz1/wicket-jquery-ui/blob/master/
> wicket-jquery-ui/src/main/java/com/googlecode/wicket/
> jquery/ui/form/datepicker/DatePicker.java#L37
>


Re: Joda-time dependency

2017-09-16 Thread Sebastien
Hi Maxim,

wicket-jquery-ui do not relied on wicket-datetime.
On wicket-jquery-ui < 8.x, java datetime are handled by org.threeten api
(which is ISO to java8 datetime)

Best regards,
Sebastien

On Sat, Sep 16, 2017 at 2:26 PM, Maxim Solodovnik 
wrote:

> I'm using kendo date-time picker from wicket-jquery-ui
> And I believe it depends on wicket-datetime
>

> Will try to do my best on migration then you will review :)
>
> On Sat, Sep 16, 2017 at 7:13 PM, Martin Grigorov 
> wrote:
> > Hi Maxim,
> >
> > Since I do not use wicket-datetime in my apps I also wanted to break it
> > hard by replacing Joda-Time with Java 8 classes.
> > But people who use it expressed concerns that it will be hard to migrate
> > this way. Everyone will have to do the same for his/her application.
> > I remember Igor even suggested to have univeral API that will work with
> > java.util.Date, Joda-Time and Java 8!
> >
> > IMO the easiest thing that could be done is to copy the current code to
> > WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and
> rework
> > wicket-datetime to use Java 8 APIs.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik 
> > wrote:
> >
> >> Hello Martin,
> >>
> >> I tried to continue this work, but it seems I need some information
> >> before I can proceed
> >> Could you please tell me What was the goal of these changes?
> >>
> >> I would remove joda-time, and use LocalDate, LocalTime instead of Date
> >> As I can see you are using ZonedDateTime ...
> >>
> >>
> >> On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov 
> >> wrote:
> >> > Yes, if finished on time!
> >> > Wicket 7 requires Java 7
> >> >
> >> > Martin Grigorov
> >> > Wicket Training and Consulting
> >> > https://twitter.com/mtgrigorov
> >> >
> >> > On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A  >
> >> > wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> Is it going to be for Wicket 8 only ?
> >> >>
> >> >> Regards,
> >> >> Rakesh.A
> >> >>
> >> >> --
> >> >> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> >> >> f1842947.html
> >> >>
> >> >> 
> -
> >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> >>
> >> >>
> >>
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Wicket jQuery UI 8.0.0-M7 Released

2017-08-12 Thread Sebastien
Dear Wicket jQuery UI users,

Wicket jQuery UI 8.0.0-M7 based on Apache Wicket 8.0.0-M7 is now released!

*Changelog:*

The changelog is the same for 6.27.0, 7.8.0 & 8.0.0-M7.
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M7
<https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M6>

*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
8.0.0-M7



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
8.0.0-M7





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
8.0.0-M7



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
8.0.0-M7



*Questions / Issues:*
If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


Re: wicket-jquery-ui menu item with client handler

2017-07-12 Thread Sebastien
Hi Maxim,

8.0.0-SNAPSHOT is deploying; you should now be able to supply your own
callback as follow:

@Override
public void onConfigure(JQueryBehavior behavior)
{
behavior.setOption("select", "function(...) { ... }");
}

Please refer to jQuery UI or Kendo UI doc for usage/arguments. Please also
note that an ajax behavior is still bound to the component (but not used),
that's ok if you have only one menu. But if you have dozen, you may
consider having your own menu implementation...

Thanks & best regards,
Sebastien.


Re: wicket-jquery-ui menu item with client handler

2017-07-12 Thread Sebastien
Hi Maxim,

A simple solution would be to specify your own "select" callback but you
can't do it right now because the API is not designed to let you do that! ;)
I will change this asap...

Thanks & best regards,
Sebastien.


On Wed, Jul 12, 2017 at 2:39 AM, Maxim Solodovnik 
wrote:

> Thanks a lot for clarifications
> Finally I was able to find onSelect method :)
>
> What I need is "client only" menu item (with no round trip to server)
> Currently I'm achieving this as follows:
> new MenuItem() {
> @Override
> public void onClick(AjaxRequestTarget target) {
> target.appendJavaScript("alert('test');");
> }
> }
>
>
>
> On Wed, Jul 12, 2017 at 12:38 AM, Sebastien  wrote:
>
>> Hi Maxim,
>>
>> MenuItem is a pojo, not a component/widget. You can use the
>> Menu#getItemList (jquery-ui) or Menu#getMenuItemsMap (kendo-ui) to add
>> menu-items and then reload the widget with the ART.
>> But I did not understood what you want/need to listen, there is no lazy
>> load (in ajax) for instance. The only available ajax-behavior is "onselect"
>> which triggers both menuItem#onClick(ART) and menu#onclick(ART, menuitem)
>>
>> I don't know if it helps, otherwise please give me more detail about your
>> use-case...
>>
>> Thanks & best regards :)
>> Sebastien
>>
>>
>> On Tue, Jul 11, 2017 at 5:04 PM, Maxim Solodovnik 
>> wrote:
>>
>>> Hello Sebastien,
>>>
>>> I'm trying to add MenuItem to wicket-jquery-ui menu with client only JS
>>> handler
>>> As I understand I need to add AjaxCallListener to MenuItem but it
>>> seems I'm unable to find the correct place for it :(
>>> Maybe you can help?
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>


Re: wicket-jquery-ui menu item with client handler

2017-07-11 Thread Sebastien
Hi Maxim,

MenuItem is a pojo, not a component/widget. You can use the
Menu#getItemList (jquery-ui) or Menu#getMenuItemsMap (kendo-ui) to add
menu-items and then reload the widget with the ART.
But I did not understood what you want/need to listen, there is no lazy
load (in ajax) for instance. The only available ajax-behavior is "onselect"
which triggers both menuItem#onClick(ART) and menu#onclick(ART, menuitem)

I don't know if it helps, otherwise please give me more detail about your
use-case...

Thanks & best regards :)
Sebastien


On Tue, Jul 11, 2017 at 5:04 PM, Maxim Solodovnik 
wrote:

> Hello Sebastien,
>
> I'm trying to add MenuItem to wicket-jquery-ui menu with client only JS
> handler
> As I understand I need to add AjaxCallListener to MenuItem but it
> seems I'm unable to find the correct place for it :(
> Maybe you can help?
>
> --
> WBR
> Maxim aka solomax
>


Re: wicket-jquery-ui examples are down

2017-07-04 Thread Sebastien
Restarted, thanks Maxim !!

On Tue, Jul 4, 2017 at 4:22 PM, Maxim Solodovnik 
wrote:

> Hello Sebastien,
>
> I'm getting 503 error while accessing
> http://www.7thweb.net/wicket-jquery-ui/button/DefaultButtonPage
>
> and all other components :(
>
> Could you please take a look?
>
> --
> WBR
> Maxim aka solomax
>


Wicket jQuery UI 8.0.0-M6 Released

2017-05-21 Thread Sebastien
Dear Wicket jQuery UI users,

Wicket jQuery UI 8.0.0-M6 based on Apache Wicket 8.0.0-M6 is now released!

*Changelog:*

The changelog is unique for 6.27.0, 7.7.0 & -M6 (that's the reason why it
is quite identical to -M5).
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M6

*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
8.0.0-M6



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
8.0.0-M6





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
8.0.0-M6



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
8.0.0-M6



*Questions / Issues:*
If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


Wicket jQuery UI 7.7.0 Released

2017-05-21 Thread Sebastien
Dear Wicket jQuery UI users,

Wicket jQuery UI 7.7.0 based on Apache Wicket 7.7.0 is now released!



*Changelog:*The changelog is unique for 6.27.0, 7.7.0 & -M6.
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M6


*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
7.7.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
7.7.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
7.7.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
7.7.0




*Questions / Issues:*If you have any *question*, feel free to ask in the
forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien


Re: wicket-jquery-ui 8.0.0-M6

2017-05-21 Thread Sebastien
Hi Maxim,

It's on its way to maven central! :)

Best regards,
Sebastien.


On Sun, May 21, 2017 at 6:06 AM, Maxim Solodovnik 
wrote:

> Hello Sebastien,
>
> can you please release wicket-jquery-ui 8.0.0-M6?
>
> --
> WBR
> Maxim aka solomax
>


Re: Generic message when component feedback has error

2017-04-19 Thread Sebastien
Hi,

Some leads:
- session#error
- component.send(BREATH, component.getPage(), MyErrorPayload(myMessage))

(typing from mobile, arguments might not be in the correct order)

Hope this helps
Sébastien





On Apr 19, 2017 21:47, "Entropy"  wrote:

We're using component feedback panels, and when a component has a message we
are filtering that message out from the parent with a filter that tosses
anything that doesn't link to the form or page.  Works fine.

However, when there is a component message on any component, we want a
generic message like "You have errors" or whatever in the top feedback.
Only once.  And associated with the poage or form.

So I clearly don't want to add it via the validators, I'd get a bunch.  Is
there a right place to add that?

--
View this message in context: http://apache-wicket.1842946.
n4.nabble.com/Generic-message-when-component-feedback-has-
error-tp4677729.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


Re: Invitation to join the Wicket Team

2017-04-13 Thread Sebastien
Welcome aboard Maxim ! :)


Re: Weird CSS warning in IE

2017-04-10 Thread Sebastien
Hi Maxim,

I activated the developer tools in IE but I can't see this behavior from
the demo site. Is there anything else to do or a special page to go?

Thanks,
Sebastien.


On Sat, Apr 8, 2017 at 12:06 PM, Maxim Solodovnik 
wrote:

> Thanks a lot!
>
> On Sat, Apr 8, 2017 at 5:04 PM, Sebastien  wrote:
>
>> Hi Maxim,
>>
>> I will check on monday with IE...
>>
>> Thanks & best regards,
>> Sebastien.
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>


Re: Weird CSS warning in IE

2017-04-08 Thread Sebastien
Hi Maxim,

I will check on monday with IE...

Thanks & best regards,
Sebastien.


Re: Constant for Jquery3

2017-04-08 Thread Sebastien
Hi Maxim,

No I don't think so: WICKET-6341 [1] has been postponed and I don't see any
commit about it.
That said, it might be a good idea to already have the resource reference
in wicket so anyone can quickly give a try to jQuery3

[1] https://issues.apache.org/jira/browse/WICKET-6341

Best regards,
Sebastien.

On Sat, Apr 8, 2017 at 11:18 AM, Maxim Solodovnik 
wrote:

> Hello All,
>
> Is there constant for jquery3 in wicket?
>
> --
> WBR
> Maxim aka solomax
>


Re: Jquery Plugins

2017-04-04 Thread Sebastien
Hi,

If you would like to integrate a jquery plugin in wicket, wicket-jquery-ui
can probably help you.
You have an example here:
https://github.com/sebfz1/wicket-jquery-ui/tree/master/wicket-jquery-ui-plugins/src/main/java/com/googlecode/wicket/jquery/ui/plugins/datepicker

On Apr 4, 2017 17:18, "SeldonCrisis"  wrote:

> Hey everyone, is it possible to incorporate a Jquery plugin in my Wicket
> page? Specifically, I would like to use this:
> http://innostudio.de/fileuploader/ 
>
> It is a file upload plugin, but I am adamant on using it because it allows
> users to upload multiple documents and give their uploaded documents a
> specified metadata title. Do I need to do this in its own panel, or maybe
> create a modal? I would be grateful for any hints in the right direction.
>
> Thanks a lot guys
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Jquery-Plugins-tp4677600.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [wicket-jquery-ui] Re: [ANNOUNCE] Apache Wicket jQuery UI 8.0.0-M5 Released

2017-04-01 Thread Sebastien
As I primarily suspected, there is a JSON issue with the new library used
in Wicket-8
https://github.com/openjson/openjson/issues/7

For the time being, I will deploy the version based on Wicket-7 so you can
enjoy the chart (and be stunned! :p)

Best regards,
Sebastien

On Sat, Apr 1, 2017 at 5:07 AM, Maxim Solodovnik 
wrote:

> We are using wicketstuff charts in OpenMeetings, we need Apache compatible
> license :)
> I just checked it to know something new :)
>
> Thanks for the great work :)
>
> On Sat, Apr 1, 2017 at 1:42 AM, Sebastien  wrote:
>
>> Hi Maxim,
>>
>> Not sure how I missed that but the fact is that dataviz.* files are not
>> available on CDN for the new version.
>> I opened an issue to telerik/progress:
>> https://github.com/telerik/kendo-ui-core/issues/2995
>>
>> Hope they will fix it soon because I don't really want to downgrade or
>> link
>> to kendo.all.min.js in the demo site...
>>
>> Thanks again & best regards,
>> Sebastien.
>>
>> On Fri, Mar 31, 2017 at 8:10 AM, Sebastien  wrote:
>>
>> > Damned! Thanks to let me know maxim!
>> > I will look at this tonight !
>> >
>> >
>> > On Mar 31, 2017 04:40, "Maxim Solodovnik"  wrote:
>> >
>> > Thanks a lot for the release Sebastien!
>> > I just have checked Charts demos at http://www.7thweb.net/wicket-j
>> > query-ui/kendo/chart/LineChartPage?6
>> > All charts seems to be broken :(
>> >
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>
> --
> You received this message because you are subscribed to the Google Groups
> "wicket-jquery-ui" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wicket-jquery-ui+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/wicket-jquery-ui/CAJmbs8jFyOmU3iEEz_6UHuZ3pPTe%
> 3D71oRqnWM_TtnFTUbJqH5A%40mail.gmail.com
> <https://groups.google.com/d/msgid/wicket-jquery-ui/CAJmbs8jFyOmU3iEEz_6UHuZ3pPTe%3D71oRqnWM_TtnFTUbJqH5A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>


Re: Locale issue with kendoui local date time picker

2017-04-01 Thread Sebastien
Hi Maxim,

Thanks for having looked into details!

So, I am now doing a conversion as soon as the input is processed
(#getInput). The conversion is performed in an utility method [1] which
might be completed in the future (the user can still override
DatePicker#getInput() or TimePicker#getInput() to handle corner cases).
This is not a perfect solution because the displayed value still remains
with AM/PM. A custom DateTimeFormatter might solve the issue...

[1]
https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x/wicket-kendo-ui/src/main/java/com/googlecode/wicket/kendo/ui/utils/KendoDateTimeUtils.java#L53

SNAPSHOT is on its way.

Thanks & best regards,
Sebastien


On Sat, Apr 1, 2017 at 7:00 AM, Maxim Solodovnik 
wrote:

> I guess, maybe client side processing can be added?
> i.e. value can be "normalized" before being accessible by wicket?
>
> On Sat, Apr 1, 2017 at 11:14 AM, Maxim Solodovnik 
> wrote:
>
>> AM can also be:
>> AM: "နံနက်"
>> AM: "上午"
>> AM: "PD"
>> AM: "காலை"
>> AM: "dop."
>> 
>>
>> Is there any well known method to get value from JS.min file?
>>
>>
>>


Re: Locale issue with kendoui local date time picker

2017-03-31 Thread Sebastien
(transferring to users@)

Hi Maxim,

The #setLabel issue is because DateTimePicker is a composition (of a
DatePicker and a TimePicker), therefore you need to set it in #newDateTime
and #newTimePicker.
If I supply DateTimePicker#label to underlying datepicker and timepicker,
it will be unique/same for both components, and it will override any value
that may have been set by the user (in case he wish to have 2 different
labels). Maybe I can issue a warning if the user calls #setLabel...

The am/pm issue is more problematic. Kendo states that colombian am/pm
marker is a.m. and p.m. The problem is that this marker (with dots) just
does not exists in Java, AFAIK.
For the widget to work, both pattern (java & kendo) should be compatible.
That's the reason why the java pattern can be optionally supplied to
DateTimer & TimePicker ctors. But in your that case it does not help,
except if there is a way to have a custom am/pm based on a
DateTimeFormatter (it will requires a change to be able to supply the
formatter to the widget)

Conclusion : you can try to implement a DateTimeFormatter for this am/pm
case, and I will update the API if you succeed, or we consider we are
reaching a limitation and you fallback colombian to default es (I will deny
having said that colombian is like spanish, okay?)

Best regards (to Colombian people :)),
Sebastien

On Fri, Mar 31, 2017 at 1:41 PM, Maxim Solodovnik 
wrote:

> Hello Sebastien,
>
> I'm still struggling with KendoUI LocalDateTime picker:
>
> Observations:
> Everything works as expecting if I'm NOT ading KendoCultureHeaderItem
>
> What is wrong:
> 1) Pre-selected time displayed as "11:00 PM", time in drop down is
> displayed as "11:00 p.m."
> 2) The method "setLabel" doesn't work :( (Label set is not being used
> while displaying errors)
>
> Steps:
> 1) clone https://github.com/solomax/ajax-download
> 2) mvn jetty:run
> 3) select any "Time" from dropdown
> 4) click Submit
>
> Maybe you can suggest what am I doing wrong?
> Thanks in advance!
>
>
> --
> WBR
> Maxim aka solomax
>


Re: [ANNOUNCE] Apache Wicket jQuery UI 8.0.0-M5 Released

2017-03-31 Thread Sebastien
Hi Maxim,

Not sure how I missed that but the fact is that dataviz.* files are not
available on CDN for the new version.
I opened an issue to telerik/progress:
https://github.com/telerik/kendo-ui-core/issues/2995

Hope they will fix it soon because I don't really want to downgrade or link
to kendo.all.min.js in the demo site...

Thanks again & best regards,
Sebastien.

On Fri, Mar 31, 2017 at 8:10 AM, Sebastien  wrote:

> Damned! Thanks to let me know maxim!
> I will look at this tonight !
>
>
> On Mar 31, 2017 04:40, "Maxim Solodovnik"  wrote:
>
> Thanks a lot for the release Sebastien!
> I just have checked Charts demos at http://www.7thweb.net/wicket-j
> query-ui/kendo/chart/LineChartPage?6
> All charts seems to be broken :(
>
>


[ANNOUNCE] Apache Wicket jQuery UI 8.0.0-M5 Released

2017-03-30 Thread Sebastien
Dear Wicket jQuery UI users,

Wicket jQuery UI 8.0.0-M5 based on Apache Wicket 8.0.0-M5 is now released.

*Changelog:*
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M5

*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
8.0.0-M5



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
8.0.0-M5





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
8.0.0-M5



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
8.0.0-M5


If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)


Re: Kendo UI - How to programmatically select node from URL parameter

2017-03-27 Thread Sebastien
Hi Manfred,

I guess you have to add the statement [1] yourself in #renderHead with
response.render(OnDomReadyHeaderItem.forScript(statement));

[1]
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-kendo-ui/src/main/java/com/googlecode/wicket/kendo/ui/widget/treeview/AjaxTreeView.java#L112

Best regards,
Sebastien.

On Mon, Mar 27, 2017 at 9:10 AM, Manfred Bergmann 
wrote:

> Hi.
>
> Any idea how that could be accomplished?
> It seems the tree nodes are actually not fully rendered yet in
> onInitialize/onConfigure.
>
>
> Manfred
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-How-to-programmatically-select-node-
> from-URL-parameter-tp4677457.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: As of Wicket 6.something, info messages now wiped out during redirect?

2017-03-26 Thread Sebastien
Hi,

Yes, the message is lost. For such a use case, you have to use
Session.get().info(), so your message remains available after the redirect.

Best regards,
Sebastien

On Mar 27, 2017 03:19, "Trejkaz"  wrote:

> Hi all.
>
> Next problem in the list. :(
>
> Most of our forms finish up their work like this:
>
> info("Successfully did something")
> setResponsePage(SomePage.class);
>
> And in the tests we check it like this:
>
> tester.assertRenderedPage(SomePage.class);
> tester.assertInfoMessages("Successfully did something");
>
> After updating to Wicket 6.26.0, this test now fails because there are
> supposedly no info messages.
> I tried 6.13.0 and got the same result there.
>
> Investigation:
> * This time the real application does exhibit the issue.
> * A breakpoint in the IFeedbackMessageFilter verifies that it does get
> called and that every single call returns false.
>
> At this point I can't figure out why the messages are being deleted so
> again, asking here whether we're doing something wrong, or whether
> this is a bug.
>
> Demo code here: https://github.com/trejkaz/wicket-feedback-problems
>
> TX
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Editable, closable and sortable tabs

2017-03-18 Thread Sebastien
Hi Maxim,

I will try to think about this! Unfortunately I cannot do it right now, my
week-end agenda is already full :/

Thanks & best regards,
Sebastien.


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
databound event.
Something like that:

private CommandButton btnEdit = new CommandButton("_edit",
Model.of("Edit")) {

private static final long serialVersionUID = 1L;

@Override
public String getCSSClass()
{
return "link-to-change";
}
};


class MyDataTable {

protected void onInitialize()
{
super.onInitialize();

this.add(new DataBoundBehavior() {

private static final long serialVersionUID = 1L;

@Override
protected String getDataBoundCallback()
{
return "function (e) { "
+ "jQuery('.link-to-change').each("
+ "function(index, item) { "
+ "jQuery(item).attr('href',
'javascript:;'); "
+ "}"
+ ")"
+ "}";
}
});
}
}

There should be a way to have a generic Behavior, like
NoHashSymbolOnButtonsDataBoundBehavior (yes, I'm pretty imaginative tonight)
Please open en issue on github :)

Best regards,
Sebastien.


Re: Kendo UI - DataTable selection

2017-02-20 Thread Sebastien
Hi Manfred,

PropertyColumn generates the underlying json using
PropertyResolver.getValue, that's why it works.
ToolbarButton and CommandButton should read directly from the json, and I
didn't thought about sub-expressions.
Please open an issue (and specify the version you are using). The fix is
straightforward, you will be get a snapshot shortly.

Thanks & best regards,
Sebastien


On Sun, Feb 19, 2017 at 8:53 PM, Manfred Bergmann 
wrote:

> Hi Sebastien.
>
>
> Sebastien wrote
> >> where "data.id" is a valid property to the data of the row.
> > Actually, I think "id" is more valid.
>
> The path to by model data id is in second level.
> That's why "data.id". For the PropertyColumn/IdPropertyColumn that worked
> fine.
> Couldn't understand thus why the CommandButton wasn't able to pull that
> data.
> But you explanation makes sense.
>
>
> Sebastien wrote
> > So, in short: use "id" and an IdPropertyColumn.
>
> Yep, doing that, thanks.
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-DataTable-selection-tp4677141p4677152.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Kendo UI - AjaxDropDownList, onChange

2017-02-19 Thread Sebastien
Hi Manfred,

AjaxDropDownList belongs to the kendoDropDownList widget, which can be
triggered this way:

var dropdownlist = $("#myDDL").data("kendoDropDownList"); // eq. to
KendoUIBehavior.widget(myDDL, DropDownListBehavior.METHOD) in wicket
dropdownlist.trigger("change"); // this will trigger change event

I'm not sure it can be triggered like the regular (on)change event...

Another option, maybe you can execute the OnChangeAjaxBehavior trough
BaseWicketTester#executeBehavior(AbstractAjaxBehavior).

Never tested, so hope this helps :)
Sebastien.


On Fri, Feb 17, 2017 at 6:44 PM, Manfred Bergmann 
wrote:

> Hi.
>
> I've tried to get the AjaxDropDownList under test.
> In a test I'm doing:
> val formTester = tester.newFormTester("form")
> formTester.select("cut:container:data.serviceType", )
> tester.executeAjaxEvent(basePath+":data.serviceType", "change")
>
> but the onSelectionChanged is never triggered in a test.
> It works when starting the app in a browser.
>
> How can I make this testable?
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-AjaxDropDownList-onChange-tp4677142.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Kendo UI - DataTable selection

2017-02-19 Thread Sebastien
Hi Manfred,

> where "data.id" is a valid property to the data of the row.
Actually, I think "id" is more valid.

CommandButton and ToolbarButton are designed to return the row property
value(s), if supplied. If not supplied, the default property for
CommandButton is "id", and the default for ToolbarButton is null (because a
toolbar button is not necessary functionally linked to selectable rows).
Please also note that it is a good practice to use an IdPropertyColumn
(like in the samples), because it automatically sets the kendo grid model
id (used for default CRUD operations).

So, in short: use "id" and an IdPropertyColumn.

Hope this helps,
Sebastien.


On Sun, Feb 19, 2017 at 12:43 PM, Martin Grigorov  wrote:

> On Feb 19, 2017 10:35 AM, "Manfred Bergmann" 
> wrote:
>
> Solved. Problem was access to the model data
>
>
> Without more details it is hard to say what is inconsistent and how it
> could be improved!
>
>
> Interestingly though that the PropertyColumn could access the data but the
> CommandButton not.
> Not sure about the internals but that's not a consistent behavior.
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-DataTable-selection-tp4677141p4677148.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Generated IDs

2017-02-06 Thread Sebastien
Hi,

You can also set the html id directly if you don't need it to be
automatically generated
ie: div wicket:id="myId" id="myId"

Hope this helps,
Sebastien.


On Mon, Feb 6, 2017 at 4:58 PM, Entropy  wrote:

> Our test team wants to run selenium scripts against our pages, and wants
> stable IDs to go against.  Wicket tends to generate random, and most
> annoyingly, inconsistent ones that change with each run of the page.
>
> Obviously, we can setMarkupId on every component manually, but I was
> wondering if there is a way to get Wicket to generate Ids in a way that is
> more predictable, so that 1000 runs of the same page with the same code
> will
> always produce the same IDs, even if they are generated IDs?
>
> Like maybe some setting or overriding some class?
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Generated-IDs-tp4677000.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket tester and jquery-ui dialog

2017-01-23 Thread Sebastien
Hi Maxim,

The only related thread I found is a mail entitled "WicketTester and Wicket
jQuery UI" on d...@openmeetings.apache.org (from 14/09/2013). I cannot find
the markmail archive however...
There is no crucial information though. I will forward it to you directly
to not spam users@wicket. Please tell me if/when you ended with something
useful! :)

Thanks & best regards,
Sebastien.

On Mon, Jan 23, 2017 at 4:54 AM, Maxim Solodovnik 
wrote:

> Hello Sebastien,
>
> I do remember were there some questions on the topic, but unfortunately I
> was unable to find the discussion,
> Could you please tell me or maybe send a link to the example on how
> wickek-jquery-ui dialog can be pressed using wicket tester?
>
> Thanks in advance!
>
> --
> WBR
> Maxim aka solomax
>


Re: Drag/drop multiple items

2017-01-19 Thread Sebastien
Hi Maxim,

Depending of your selection logic, you have 2 ways:
- a behavior based solution
- a component based solution

If you can have a wicket component holding the selection (trough its model)
then opt for a component based solution. The component will be passed to
#onDrop so its easy to retrieve the selection (because it's the component's
model). You can use the draggable "helper" to enhance the visual dnd ui
(example here [1]).

If the selection is client side only, then I think you need to deal with a
behavior based solution (no wicket component involved). Tell me if it's
your case, I can try to help out.

Best regards,
Sebastien.

[1]
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/interaction/selectable/SelectableDraggableFactory.java#L38


Re: Drag/drop multiple items

2017-01-19 Thread Sebastien
Hi Maxim,

The recommended way to dnd multiple items is to use: selectable + draggable
+ droppable

You have 2 examples here:
http://www.7thweb.net/wicket-jquery-ui/selectable/DraggableSelectablePage
http://www.7thweb.net/wicket-jquery-ui/selectable/TableDraggableSelectablePage

Hope this helps :)
Sebastien.


Re: Reload TabbedPanel preserving active tab

2017-01-17 Thread Sebastien
Hi Maxim,

It seems that the dialog widget is not correctly *destroyed*, therefore the
new dialog that come in replacement cannot be re-wired.

You can put a breakpoint in JQueryDestroyListener#onBeforeRespond to see
whether the dialog is taken into account in the destroy process. (I guess
not, because only directly targeted component are referenced here IIRC)
You can also look in the ajax-debug-window if you see the
jQuery('#mydialog').destroy() statement in the "priority-evaluate" section
(I guess not, too)

Otherwise, you have other workarounds:
1/ removing the dialog from the tab-panel :)
2/ calling mydialog#destroy *before* the ajax call (tough an
AjaxCallListener, see #updateAjaxAttributes)
3/ calling mydialog#destroy in the response, trough
handler.prependJavaScript(JQueryUtils.trycatch("jQuery('#mydialog').destroy()"));
- I would opt for this one. you can look at [1]

Hope this helps,
Sebastien.

[1]
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/JQueryUIBehavior.java#L136



On Tue, Jan 17, 2017 at 11:50 AM, Maxim Solodovnik 
wrote:

> Hello Sebastien,
>
> I'm using jquery TabbedPanel.
> One of the panels contains jquery dialog with simple form (text field and
> one of the dialog buttons works as submit)
> I'm now getting weird component has been removed from page errors
> It seems
>
> tabs.reload(handler);
>
> re-creates the panel, but doesn't re-create dialog :(
> (dialog seems to be added to the  as hidden div, and not being
> updated)
>
> Is it possible?
> Are there any workarounds except removing dialog from the tab-panel?
>
>
>
> On Sun, Jan 15, 2017 at 12:30 AM, Sebastien  wrote:
>
> > Transferring to users@, I did not realized I reply to you only Maxim...
> >
> >
> > -- Forwarded message --
> > From: Maxim Solodovnik 
> > Date: Sat, Jan 14, 2017 at 5:13 PM
> > Subject: Re: Reload TabbedPanel preserving active tab
> > To: Sebastien 
> >
> >
> > Thanks a lot Sebastien!
> > Works as expected :)
> >
> > On Sat, Jan 14, 2017 at 8:31 PM, Sebastien  wrote:
> >
> > > Oops, forgot something in the copy paste:
> > >
> > > this.tabPanel = new TabbedPanel("tabs", this.newTabModel()) {
> > >>
> > >> private IModel indexModel = Model.of(-1);
> > >>
> > >> @Override
> > >> protected void onConfigure()
> > >> {
> > >> super.onConfigure();
> > >>
> > >> int index = indexModel.getObject();
> > >>
> > >> if (index > -1) // TODO eventually also check if the
> > >> corresponding tab is visible
> > >> {
> > >> this.setActiveTab(index);
> > >> }
> > >> }
> > >>
> > >> public void onActivate(AjaxRequestTarget target, int
> index,
> > >> ITab tab)
> > >> {
> > >> indexModel.setObject(index);
> > >> }
> > >> }
> > >>
> > >
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>


Fwd: Reload TabbedPanel preserving active tab

2017-01-14 Thread Sebastien
Transferring to users@, I did not realized I reply to you only Maxim...


-- Forwarded message --
From: Maxim Solodovnik 
Date: Sat, Jan 14, 2017 at 5:13 PM
Subject: Re: Reload TabbedPanel preserving active tab
To: Sebastien 


Thanks a lot Sebastien!
Works as expected :)

On Sat, Jan 14, 2017 at 8:31 PM, Sebastien  wrote:

> Oops, forgot something in the copy paste:
>
> this.tabPanel = new TabbedPanel("tabs", this.newTabModel()) {
>>
>> private IModel indexModel = Model.of(-1);
>>
>> @Override
>> protected void onConfigure()
>> {
>> super.onConfigure();
>>
>> int index = indexModel.getObject();
>>
>> if (index > -1) // TODO eventually also check if the
>> corresponding tab is visible
>> {
>> this.setActiveTab(index);
>> }
>> }
>>
>> public void onActivate(AjaxRequestTarget target, int index,
>> ITab tab)
>> {
>> indexModel.setObject(index);
>> }
>> }
>>
>
>



-- 
WBR
Maxim aka solomax


Re: Reload TabbedPanel preserving active tab

2017-01-13 Thread Sebastien
Hi Maxim,

good question! i think we can do it, i will have a look tomorrow... jquery
or kendo ?

best regards,
sebastien


On Jan 13, 2017 19:15, "Maxim Solodovnik"  wrote:

Hello Sebastien,

Is there any option to update TabbedPanel preserving active tab?
Both
tabs.reload(handler)
and
handler.add(tabs)

resets active tab :(((

or maybe if TabbedPanel was created as follows:
new TabbedPanel("tabs", Arrays.asList(userTab, fileTab)).*setActiveTab*(0)
it will be "re-assirned" on reload?

-- 
WBR
Maxim aka solomax


Re: DropDownChoice models

2017-01-11 Thread Sebastien
Hi Zbynek,

Maybe I missed something about your problem, but wouldn't this be enough?
new ChoiceRenderer("name", "id")

Best regards,
Sebastien.


[ANNONCE] Wicket jQuery UI released: 6.26.0, 7.6.0 & 8.0.0-M3

2017-01-07 Thread Sebastien
Dear Wicket jQuery UI users,

Wicket jQuery UI 6.26.0 based on Apache Wicket 6.26.0 is now released.
Wicket jQuery UI 7.6.0 based on Apache Wicket 7.6.0 is now released.
Wicket jQuery UI 8.0.0-M3 based on Apache Wicket 8.0.0-M3 is now released.

*Changelog:*

All versions are strictly aligned so there is only one changelog:
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-8.0.0-M3

*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
7.6.0 



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
7.6.0 





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
7.6.0 



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
7.6.0 


If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues

Enjoy! :)
Sebastien
http://www.7thweb.net/wicket-jquery-ui


Re: [ANNOUNCE] WicketStuff 8.0.0-M3 Released

2017-01-05 Thread Sebastien
Thanks a lot, Martin ! :)

On Jan 5, 2017 23:22, "Martin Grigorov"  wrote:

WicketStuff core 8.0.0-M3 based on Apache Wicket 8.0.0-M3 is released and
soon will be available at Maven Central!

The changelog since 8.0.0-M2 is:

Andrea Del Bene (21):
  Fix for pom version of wicketstuff-clipboard-js
  Fix for missing version for jetty-all
  Possible fix for the NPE we get in the unit test (stop is invoked on
an unbinded behavior)
  Revert "Possible fix for the NPE we get in the unit test (stop is
invoked on an unbinded behavior)"
  improve solution to check for unbinded behavior
  Fix for jetty 9
  Code better formatted and variable name correction
  Introduced a common module for rest utils.
  Fix for minis project
  Added license header
  AttributesWrapper moved to module wicketstuff-rest-utils
  Added test case and tester class for rest
  Fix for junit dependency scope
  Removed stateless module as since ver 7.4.0 is integrated with Wicket.
  Reorganization of testing utilities
  added moduel wicketstuff-rest-lambda
  Fix problem with git repo
  Removed Serializabe functions/consumers. We don't need to worry about
serialization
  WICKET-6287 Switch from json.org to open-json
  Merge pull request #566 from bitstorm/WICKET-6287
  Revert "WICKET-6287 Switch from json.org to open-json"

Maxim Solodovnik (5):
  Select2 version is updated to 4.0.3
  Code clean-up: serialVersionUID is added
  Ajax query param is made configurable
  json:json library is replaced with openjson
  issue #470: dropdownParent setting is added

Martin Tzvetanov Grigorov (4):
  [scala] Upgrade Scala to 2.12.0
  [clipboard.js] Initial commit of integration with Clipboard.js
  [clipboard.js] Add support for setting the target by CSS selector.
  Release 8.0.0-M3

Konstantinos Karavitis (2):
  Merge pull request #561 from kkaravitis/master
  Update pom.xml

Dan Simko (1):
  fixed event name - from 'onclick' to 'click' (#567)

Miguel Payet (1):
  Fix the save action in an EditableGrid when there are more than 1
editable grids on the page (#558)

Sven Meier (1):
  issue #534: destroy the factory

kkaravitis (1):
  - Remove the action-scoped request attributes support usage and use
render parameters for transferring the wicket redirect url from action
phase to render phase - fix for issue #555, the url modification must be
prevented if the url is a portlet one. - fix for issue #559, when an
exception occurs during a resource request (not ajax), the portlet does not
redirect to its InternalErrorPage page.


The WicketStuff team


Re: Kendo UI ContextMenu (in TreeView?)

2016-12-21 Thread Sebastien
Hi Manfred,

You have to implement the contextmenus's #select callback trough an
ajax-behavior

Here is a basic / fictive example
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui-samples/src/test/java/com/googlecode/wicket/jquery/ui/samples/MyJQueryLabel.java#L69

And a concrete / complex example:
https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-kendo-ui/src/main/java/com/googlecode/wicket/kendo/ui/widget/treeview/AjaxTreeViewBehavior.java#L222

If you are stuck, please create a quickstart in github with your actual
work and I will try to help out...

Best regards,
Sebastien.


On Wed, Dec 21, 2016 at 9:15 AM, Manfred Bergmann 
wrote:

> OK, I got that solved by creating the ContextMenu subclass as a Java class.
>
> Now back to the original question.
>
>
> So the context menu also works in the treeview.
> Now I'd like to get the node of the treeview where the right-click occured
> on.
> Looking at the Telerik sample this seems to be possible:
> http://docs.telerik.com/kendo-ui/controls/navigation/
> treeview/how-to/show-context-menu
>
> But I'm not certain how I would do that using the Wicket wrapper or
> behavior.
> Any hint there?
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-ContextMenu-in-TreeView-tp4676472p4676489.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Kendo UI ContextMenu (in TreeView?)

2016-12-17 Thread Sebastien
Hi Manfred,

Can you please prepare a quickstart (on github for instance) so I can have
a look?

Thanks in advance,
Sebastien.


On Sat, Dec 17, 2016 at 3:56 PM, Manfred Bergmann 
wrote:

> Hi.
>
> I'm trying to implement a context menu.
> First I tried directly on an AjaxTreeView. Since I couldn't get that to
> work
> (no menu on right-click) I tried to make it as simple as in the context
> menu
> sample, just a text field as "target".
> However I couldn't get that to work either.
> It works in the sample so I'm wondering what I'm doing wrong.
> How can this be further debugged?
>
> The rendered code looks actually good (as far as I can tell):
> This is the JavaScript part of the menu:
>
>
> And this the HTML part:
>
> Just nothing happens when doing the right-click on the text field.
> Any clues?
>
>
> And yeah, does this work on a TreeView?
>
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-ContextMenu-in-TreeView-tp4676472.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Kendo UI TreeView onSelect

2016-12-14 Thread Sebastien
Hi Mandred,

There is a #isSelectEventEnabled method to override, returning true, for
that event to be triggered.

Hope this helps,
Sebastien

On Dec 14, 2016 22:13, "Manfred Bergmann"  wrote:

Hi.

How can I get the selected node in a AjaxTreeView?
I see that it has a onSelect handler but it doesn't seem to be called when a
node is selected in the view.
Is there a way to enable this?


Manfred

--
View this message in context: http://apache-wicket.1842946.
n4.nabble.com/Kendo-UI-TreeView-onSelect-tp4676455.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


Re: LDM reloaded several times

2016-11-30 Thread Sebastien
Hi Ernesto,

(sorry for the delay in my reply)

No, I don't think so (if I understood your question correctly). The ajax
request is called from the page once loaded, i.e. really after the page's
request cycle.
I can trick by passing a non-detachable-chaining-model to page components
and let the behavior detach the model at the end of its request [1]... Not
very nice but it works :)

[1]
https://github.com/sebfz1/wicket-quickstart-ldm/blob/master/src/main/java/quickstart/QuickstartPage2.java

Thanks & best regards,
Sebastien.


On Fri, Nov 25, 2016 at 4:06 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> @Sebastian,
>
> Would a model that only detaches itself if there is no request target
> scheduled after current work for your use case?
>


Re: LDM reloaded several times

2016-11-25 Thread Sebastien
Hi Martin

On Fri, Nov 25, 2016 at 3:52 PM, Martin Grigorov 
wrote:

> Hi Sebastien,
>
> Seems to work as designed! :-)
>

Yes definitely! sorry to have had a doubt! :D


> The Ajax request is in a second request cycle so it loads it again.
> I guess you can create some kind of ConversationModel (CDI conversations)
> but this is totally different model impl.
>

Good to know, thanks!


LDM reloaded several times

2016-11-25 Thread Sebastien
Hi all,

Following a recent discussion about LDM being reloaded several times [1],
I've prepared a quickstart [2].

My concern was the following: I was thinking that a LDM relying on another
LDM, and reused on several components may have been reloaded several times
(because of the component's #reload which could have been called to early).

It seems to not be the case. Good news!

Then, I realized that I was using the LDM as a component model *and* in an
AjaxBehavior [3]. Of course, the AjaxBehavior initiate a new request,
causing the LDM to be reloaded.

I do not expect a solution here, it's just a wrong usage on my side. But as
I started the discussion, I wanted to loop the loop! :)

Thanks & best regards,
Sebastien.

[1] http://markmail.org/message/lmg2zrfuovn4fhgg
[2] https://github.com/sebfz1/wicket-quickstart-ldm
[3]
https://github.com/sebfz1/wicket-quickstart-ldm/blob/master/src/main/java/quickstart/QuickstartPage2.java


Re: Drag & Drop in Kendo UI treeview

2016-11-23 Thread Sebastien
https://github.com/sebfz1/wicket-jquery-ui/issues/253


Re: Drag & Drop in Kendo UI treeview

2016-11-23 Thread Sebastien
I Manfred,

I'm afraid this is currently not supported/integrated.
The best options is to activate the dragAndDrop flag as you did, the only
missing part is the callback
http://demos.telerik.com/kendo-ui/treeview/dragdrop
http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview#events-drop

Please can open an issue here and I will try to have a look asap.
https://github.com/sebfz1/wicket-jquery-ui/issues

Thanks & best regards,
Sebastien




On Wed, Nov 23, 2016 at 5:06 PM, Manfred Bergmann 
wrote:

> Hi.
>
> So, my next question. :)
>
> I've tried the following:
> - added option "dragAndDrop" to AjaxTreeView.
> This works correctly in the UI. But there are no events/callbacks to the
> Wicket code.
>
> - added DraggableBehavior to AjaxtreeView, plus implemented
> IDraggableListener.
> This gives me the events, dragging works, but the whole treeview is
> dragged,
> not a node.
>
> I assume the second is the right one. And I assume the DraggableBehavior
> should be added to the tree nodes but I couldn't see how that can be done
> to
> TreeNode.
>
>
> Any suggestions how this works?
>
>
> Regards,
> Manfred
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Drag-Drop-in-Kendo-UI-treeview-tp4676272.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: JSON License and Apache Projects

2016-11-23 Thread Sebastien
Looking at
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/json/README

The link https://github.com/douglascrockford/JSON-java redirects to
https://github.com/stleary/JSON-java/

And, https://github.com/stleary/JSON-java/blob/master/LICENSE indicates
that the library is JSON.org licensed.
So, is our copy be affected by the new license terms?



On Wed, Nov 23, 2016 at 4:43 PM, Martin Grigorov 
wrote:

> We do not depend on it but use a copy of it:
> https://github.com/apache/wicket/tree/master/wicket-
> core/src/main/java/org/apache/wicket/ajax/json
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Nov 23, 2016 at 4:36 PM, Martijn Dashorst 
> wrote:
>
> > FYI: the json.org library for parsing and generating JSON documents
> > is now category X, which means it is prohibited from being included
> > in Apache releases.
> >
> > As far as I know we are not exposed, but we should be diligent and
> > make note of this and replace if we do have a (transitive)
> > dependency.
> >
> > The issue is the "don't use this for evil" clause, that makes it hard to
> > get past legal departments without any issue. The license is also not
> > approved by the OSI, and therefore moved to the category X.
> >
> > Martijn
> >
> >
> >
> > -- Forwarded message --
> > From: Jim Jagielski 
> > Date: Wed, Nov 23, 2016 at 3:08 PM
> > Subject: JSON License and Apache Projects
> > To: legal-disc...@apache.org
> >
> >
> > As some of you may know, recently the JSON License has been
> > moved to Category X (https://www.apache.org/legal/resolved#category-x).
> >
> > I understand that this has impacted some projects, especially
> > those in the midst of doing a release. I also understand that
> > up until now, really, there has been no real "outcry" over our
> > usage of it, especially from end-users and other consumers of
> > our projects which use it.
> >
> > As compelling as that is, the fact is that the JSON license
> > itself is not OSI approved and is therefore not, by definition,
> > an "Open Source license" and, as such, cannot be considered as
> > one which is acceptable as related to categories.
> >
> > Therefore, w/ my VP Legal hat on, I am making the following
> > statements:
> >
> >   o No new project, sub-project or codebase, which has not
> > used JSON licensed jars (or similar), are allowed to use
> > them. In other words, if you haven't been using them, you
> > aren't allowed to start. It is Cat-X.
> >
> >   o If you have been using it, and have done so in a *release*,
> > AND there has been NO pushback from your community/eco-system,
> > you have a temporary exclusion from the Cat-X classification thru
> > April 30, 2017. At that point in time, ANY and ALL usage
> > of these JSON licensed artifacts are DISALLOWED. You must
> > either find a suitably licensed replacement, or do without.
> > There will be NO exceptions.
> >
> >   o Any situation not covered by the above is an implicit
> > DISALLOWAL of usage.
> >
> > Also please note that in the 2nd situation (where a temporary
> > exclusion has been granted), you MUST ensure that NOTICE explicitly
> > notifies the end-user that a JSON licensed artifact exists. They
> > may not be aware of it up to now, and that MUST be addressed.
> >
> > If there are any questions, please ask on the legal-discuss@a.o
> > list.
> >
> > --
> > Jim Jagielski
> > VP Legal Affairs
> >
> >
> > -
> > To unsubscribe, e-mail: legal-discuss-unsubscr...@apache.org
> > For additional commands, e-mail: legal-discuss-h...@apache.org
> >
>


Re: Kendo UI AjaxtreeView testing for rendered nodes

2016-11-23 Thread Sebastien
IIRC, the static TreeView is based on the underlying HTML, therefore no
call is made to [lazy]load the content.
About the generated content tree (lazy mode), I guess it can be retrieve by
an HTML id.

This page will be interesting for you:
http://docs.telerik.com/kendo-ui/intro/widget-basics/wrapper-element

Hope this help,
Sebastien


On Wed, Nov 23, 2016 at 11:09 AM, Manfred Bergmann 
wrote:

> Martin Grigorov-4 wrote
> > On Wed, Nov 23, 2016 at 10:49 AM, Manfred Bergmann <
>
> > mb@
>
> > >
> > wrote:
> >
> >> An interesting thing is that when I tell the browser to show me the html
> >> source of the page (a page with only the AjaxTreeView).
> >> Then I just see this in the body:
> >>
> > 
> >>
> > 
> >>
> > 
> > 
> >>
> > 
> >>
> > 
> >>
> >> Even though I can see the tree nodes are displayed.
> >>
> >> When using the examine element function of the browser (Firefox) I
> >> suddenly
> >> see the tree nodes as
> > 
> >  list elements in the inspector.
> >> Can somebody explain what's happening there?
> >>
> >
> > This is how JavaScript applications work.
> > The server (Wicket in current case) generates part of the final HTML.
> > Once loaded in the browser (i.e. on domready) the JS takes over and
> > generates the rest.
>
> OK, yeah.
> That means it's practically not possible to unit-test the correct
> rendering?
> I could the use the static TreeView approach.
> But does it support lazy loading of tree node?
>
>
>
> Manfred
>


Re: Kendo UI - treeview in borderlayout

2016-11-21 Thread Sebastien
Then, all the Kendo UI examples I have seen initialize the page components
in the page constructor.
I am used to do this in the onInitialize method, because I thought that's
what it is for.
I assume it doesn't matter much technically, but why the constructor?

>From the #onInitialize javadoc:
This method is meant to be used as an alternative to initialize components.
Usually the component's constructor is used for this task, but sometimes a
component cannot be initialized in isolation, it may need to access its
parent component or its markup in order to fully initialize




On Mon, Nov 21, 2016 at 11:58 AM, Sebastien  wrote:

> Hi Manfred,
>
> jQuery(...).kendoTreeView is not a function
>
> Kendo UI Tree View is part of the commercial version, you need to get
> kendo.all.min.js from kendo site (for evalutation purpose) and change the
> resource reference (see the wiki on github).
>
> Best regards,
> Sebastien
>
> On Mon, Nov 21, 2016 at 11:32 AM, Manfred Bergmann <
> m...@software-by-mabe.com> wrote:
>
>> Hi.
>>
>> I'm currently getting into Kendo UI.
>> I've setup a page with a basic BorderLayout, pretty much a master/detail
>> view.
>>
>> In the master view I'd like to put an Kendo UI AjaxTreeView component.
>> Because the tree can be quite deep and I want to lazily expand and load
>> the
>> tree as needed.
>> I've added the tree component as a , as in the example.
>> For the model I'm just using three 3 root nodes.
>> Pretty straight forward.
>> But for some reason it doesn't render correctly. The borderlayout get's
>> screwed up where the horizontal areas are listed vertically.
>> And there is a JavaScript error:
>> main;jsessionid=1uynkuymym2pn1owov5b7xer07?0:21 Uncaught TypeError:
>> jQuery(...).kendoTreeView is not a function
>> at HTMLDocument.
>>
>> Any idea what the problem might be?
>>
>>
>> Then, all the Kendo UI examples I have seen initialize the page components
>> in the page constructor.
>> I am used to do this in the onInitialize method, because I thought that's
>> what it is for.
>> I assume it doesn't matter much technically, but why the constructor?
>>
>>
>> Cheers,
>> Manfred
>>
>> --
>> View this message in context: http://apache-wicket.1842946.n
>> 4.nabble.com/Kendo-UI-treeview-in-borderlayout-tp4676222.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: Kendo UI - treeview in borderlayout

2016-11-21 Thread Sebastien
Hi Manfred,

jQuery(...).kendoTreeView is not a function

Kendo UI Tree View is part of the commercial version, you need to get
kendo.all.min.js from kendo site (for evalutation purpose) and change the
resource reference (see the wiki on github).

Best regards,
Sebastien

On Mon, Nov 21, 2016 at 11:32 AM, Manfred Bergmann 
wrote:

> Hi.
>
> I'm currently getting into Kendo UI.
> I've setup a page with a basic BorderLayout, pretty much a master/detail
> view.
>
> In the master view I'd like to put an Kendo UI AjaxTreeView component.
> Because the tree can be quite deep and I want to lazily expand and load the
> tree as needed.
> I've added the tree component as a , as in the example.
> For the model I'm just using three 3 root nodes.
> Pretty straight forward.
> But for some reason it doesn't render correctly. The borderlayout get's
> screwed up where the horizontal areas are listed vertically.
> And there is a JavaScript error:
> main;jsessionid=1uynkuymym2pn1owov5b7xer07?0:21 Uncaught TypeError:
> jQuery(...).kendoTreeView is not a function
> at HTMLDocument.
>
> Any idea what the problem might be?
>
>
> Then, all the Kendo UI examples I have seen initialize the page components
> in the page constructor.
> I am used to do this in the onInitialize method, because I thought that's
> what it is for.
> I assume it doesn't matter much technically, but why the constructor?
>
>
> Cheers,
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-treeview-in-borderlayout-tp4676222.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket vs JS frameworks.

2016-10-15 Thread Sebastien
Hi,

> I believe that the browser it self became a real platform for
> applications.
> > Would be nice to have a material design implemented also in Wicket, like
> > the React version,
> > www.material-ui.com
> > there is also Angular 1
> > material.angularjs.org
> > and Angular 2
> > material.angular.io
>
>
> Wicket Bootstrap library provides a MD theme (
> https://fezvrasta.github.io/bootstrap-material-design/)
>
>
Wicket Kendo UI too (Material & Material Black)...
http://demos.telerik.com/kendo-ui/themebuilder/


Re: Kendo UI lock-in

2016-10-07 Thread Sebastien
Hi Manfred,

Yes, chart is under work. I should commit the basics next WE (and before
next release). I will try to do a/some sample(s) too, but I don't have a
lot of free time these weeks

You can "watch" to the github repo so you will get in touch with the
commits.

Please also note that charts belong to the commercial license...

Best regards,
Sebastien.


Re: Your opinion on ShieldUI

2016-10-06 Thread Sebastien
>
>
> Sorry for those possibly dump questions.
> I'm more the functional UI and backend developer. This styling and layout
> should better be done by someone else. But I'd like to understand how it
> works.
>

I personnaly use fundation for the layout part. It works well with kendo
(at least), but it requires a custom download (only minimal layout stuff,
no form styling, etc) otherwise it will conflict with kendo widget styling.


Re: Your opinion on ShieldUI

2016-10-06 Thread Sebastien
Hi,

On Oct 6, 2016 15:22, "Manfred Bergmann"  wrote:
>
> martin-g wrote
> > On Oct 5, 2016 7:52 PM, "Manfred Bergmann" <
>
> > mb@
>
> > > wrote:
> >>
> >> OK, thanks for you reply.
> >>
> >> What's the state of Wicket-Foundation?
> >> I mean, is it mature enough for a large enterprise application?
> >
> > Dunno.
> > Someone from the community contributed it a while back.
> >
> >>
> >> I assume that Wicket-JQuery-UI and Wicket-Bootstrap is?
> >
> > I'd say - yes!
>
> Bootstrap has a very nice baseCSS. Is this applied to the standard Wicket
> widgets automatically?
>
> If I want to use a widget from elsewhere, say jQuery or Kendo, does it
clash
> with it's CSS?

All kendo css classes are "k-" prefixed, so I don't think there will be
conflicts. For jQuery ui, there are "ui-" predixed iirc.

Just a warning however, both frameworks are big/complete frameworks, so
will end up with 2 big js and 2 big css...

>
> Manfred
>
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Your-opinion-on-ShieldUI-tp4675649p4675685.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Wicket 8.0

2016-09-15 Thread Sebastien
Hi,

I'm already using M1 on 2 projects, and it works well! Of course, you
should keep in mind that there could be some API breaks until the final
release...

Best regards,
Sebastien


Re: Indicating dialog button don't stop

2016-09-12 Thread Sebastien
Hi Maxim,

This is not intended that the dialog flickers... This is weird and I don't
see any reason (and I don't see this on my side...)

Can you run the "upload dialog" sample of wicket-jquery-ui-samples to see
if you do repro it ?

> git clone https://github.com/sebfz1/wicket-jquery-ui.git
> cd wicket-jquery-ui
> mvn clean install
> cd wicket-jquery-ui-samples
> mvn jetty:run
(AFAIR)

Thanks in advance,
Sébastien


Re: Indicating dialog button don't stop

2016-09-11 Thread Sebastien
Hi Maxim,

I've deployed 7.4.1-SNAPSHOT with the fix.

About debugging the client side, you would :
- watch the dev tool / network ajax requests and response
- watch the ajax debug window if there is any js commands in the ajax
response that has not effect (you can copy/paste them in the brower's dev
console)
- look at the rendered source, also for the js commands in the widget
initialization
- clone wicket-jquery-ui and put some 'console.log' in the relevant
javascript statements.
- if still no clue, start from scratch in a quickstart... :/

Hope this helps,
Sebastien


Re: “Duplicate” objects on a page

2016-08-10 Thread Sebastien
Hi Lon,

You cannot have duplicate wicket:id

Some options:
- extract the onClick logic to a dedicated method
- extends your button to a dedicated class so you have the onClick only
once.

Hope this helps,
Sebastien.


On Thu, Aug 11, 2016 at 1:40 AM, Lon Varscsak 
wrote:

> I have a situation where I have a Save/Cancel button up at the top of the
> page and also one at the bottom.  I’d love to reference the same wicket:id,
> but I gather that’s not possible.  I attempted to clone the object
> (WicketObjects.cloneObject), but then I think I’d have duplicate ids (can’t
> set id outside of the class).
>
> Any solutions to this problem?  I’d really rather not duplicate the
> onClick’s (even though they mostly share common logic) if possible.
>
> Thanks,
>
> Lon
>


[ANNONCE] Wicket jQuery UI 7.4.0 released

2016-08-06 Thread Sebastien
Dear Wicket jQuery users,

Wicket jQuery UI 7.4.0 based on Apache Wicket 7.4.0 is now released.

*Changelog:*
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-7.4.0

*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
7.4.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
7.4.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
7.4.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
7.4.0


If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues
Enjoy! :)
Sebastien


[ANNONCE] Wicket jQuery UI 6.24.0 released

2016-08-06 Thread Sebastien
Dear Wicket jQuery UI users,

Wicket jQuery UI 6.24.0 based on Apache Wicket 6.24.0 is now released.

*Changelog:*
https://github.com/sebfz1/wicket-jquery-ui/releases/tag/wicket-jquery-ui-6.24.0

*Maven dependencies:*




com.googlecode.wicket-jquery-ui
wicket-jquery-ui
6.24.0



com.googlecode.wicket-jquery-ui
wicket-jquery-ui-theme-base
6.24.0





com.googlecode.wicket-jquery-ui
wicket-kendo-ui
6.24.0



com.googlecode.wicket-jquery-ui
wicket-kendo-ui-theme-default
6.24.0


If you have any *question*, feel free to ask in the forum:
http://groups.google.com/group/wicket-jquery-ui/

If you notice an *issue*, please report it here:
https://github.com/sebfz1/wicket-jquery-ui/issues
Enjoy! :)
Sebastien


Re: Confirmation on drag

2016-08-05 Thread Sebastien
I agree it's ugly, it is just for the PoC.

Nothing prevent using a jquery-ui dialog intead, but it should be in js
directly, not trough wicket because it will be too late in the cycle
(whenever #onDrop should call dialog#open)
So, something like this:

return new DroppableBehavior(selector, this) {

@Override
protected JQueryAjaxBehavior
newOnDropAjaxBehavior(IJQueryAjaxAware source)
{
return new OnDropAjaxBehavior(source) {

@Override
public CharSequence
getCallbackFunctionBody(CallbackParameter... parameters)
{
String dialogId =
UUID.randomUUID().toString();

String statement = "var $drop = $(this);";
statement += "$('body').append('Are you sure?');";
statement +="$( '#" + dialogId + "'
).dialog({ title: 'Confirmation', dialogClass: 'no-close', buttons: [";
statement += "{ text: 'OK', click:
function() { $drop.append(ui.draggable); $(this).dialog('close'); " +
super.getCallbackFunctionBody(parameters) + " } },";
statement += "{ text: 'Cancel', click:
function() { $( this ).dialog('close'); } } ";
statement += "],";
statement += "close: function(event, ui) {
$(this).dialog('destroy').remove(); }";
statement += "});";

return statement;

}
};
}
};



On Fri, Aug 5, 2016 at 3:16 PM, Maxim Solodovnik 
wrote:

> Browser native confirm is blocking and ugly :(
> Is there any option to use jquery-ui confirm?
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Aug 5, 2016 20:09, "Sebastien"  wrote:
>
>> Hi Maxim,
>>
>> Seems its a common question in the jquery-ui world...
>> The best I can propose you for now is something like the following code.
>> It does *not* use revert, but use a clone helper.
>> This example is also using a browser-native "confirm" dialog...
>>
>> Inspired from http://jsfiddle.net/WbHAr/1/
>>
>> Draggable:
>>
>> Draggable draggable = new
>> Draggable("draggable", model) {
>>
>> @Override
>> public void onConfigure(JQueryBehavior behavior)
>> {
>> super.onConfigure(behavior);
>>
>> behavior.setOption("helper", "'clone'");
>> }
>> };
>>
>>
>> Droppable:
>>
>> final Droppable droppable = new Droppable("card") {
>>
>> @Override
>> public JQueryBehavior newWidgetBehavior(String selector)
>> {
>> return new DroppableBehavior(selector, this) {
>>
>> @Override
>> protected JQueryAjaxBehavior
>> newOnDropAjaxBehavior(IJQueryAjaxAware source)
>> {
>> return new OnDropAjaxBehavior(source) {
>> @Override
>> public CharSequence
>> getCallbackFunctionBody(CallbackParameter... parameters)
>> {
>> return String.format("if (confirm('Drop
>> here?')) { $(this).append(ui.draggable); %s}",
>> super.getCallbackFunctionBody(parameters));
>>
>> }
>> };
>> }
>> };
>> }
>>
>>
>> Hope this helps :)
>> Sebastien
>>
>> On Fri, Aug 5, 2016 at 2:16 PM, Maxim Solodovnik 
>> wrote:
>>
>>> Hello Sebastian,
>>>
>>> Is it possible to show confirmation dialog on drop (even pure JS or
>>> Wicket)
>>> and "revert" file if user choose cancel?
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>


  1   2   3   4   5   >