Re: cancel AJAX request while a new one is triggered

2016-01-13 Thread Ernesto Reinaldo Barreiro
Thanks again! One "solution" on my use case is 1- Make wicket "search" AJAX request very lightweight. Just retrieving "empty shells" to be populated later on 2- Used Client side JS + JSON mounted resources to draw the more heavy panels. On Wed, Jan 13, 2016 at 10:37 AM, Martin Grigorov

RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Hello All, I'm currently using wicket 7.2.0-SNAPSHOT have following code in my Application: mountResource("/recordings/mp4/${id}", new Mp4RecordingResourceReference()); mountResource("/recordings/ogg/${id}", new OggRecordingResourceReference()); mountResource("/recordings/jpg/${id}", new

how to display the more ListView in ListView in html wicket:id

2016-01-13 Thread Ilia
Hello. I have a wicket:id(statistics) in which children are wicket:id( "statistics2", "statistics3"). Attention to the question how to display the more ListView in ListView in html wicket:id( "statistics2", "statistics3")??? This source code. ListView statisticsListView = new

Good wicket references

2016-01-13 Thread delfino
Hi, I am searching for good references about Apache Wicket. So far I have the Javadocs, the oficial Wicket User Guide and the books: wicket in action, Instant Apache Wicket 6 and Apache Wicket Cookbook. Do you have any other good didactic materials? I'm putting together a teaching class about

Re: cancel AJAX request while a new one is triggered

2016-01-13 Thread Martin Grigorov
On Wed, Jan 13, 2016 at 10:18 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi Martin! > > Thanks for the supper fast answer! What I need is something like > > 1- On client side: you say stop this request and by doing so I unlock the > page and make it ready to accept new AJAX

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
sure: https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/Mp4RecordingResourceReference.java On Wed, Jan 13, 2016 at 4:34 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > port -> paste > > On Wed, Jan 13, 2016 at 11:33 AM,

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Ernesto Reinaldo Barreiro
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/RecordingResourceReference.java#L52 Maybe just add a name parameter to Mp4RecordingResourceReference? I'm not 100% sure but this the equal method of resource reference. /** * @see

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Thanks for the hint! Will try On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > > https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/RecordingResourceReference.java#L52 > > Maybe just add a

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Thanks a lot Ernesto! I have changed the name and now everything works as expected! On Wed, Jan 13, 2016 at 4:48 PM, Maxim Solodovnik wrote: > Thanks for the hint! > Will try > > On Wed, Jan 13, 2016 at 4:47 PM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > >>

Re: cancel AJAX request while a new one is triggered

2016-01-13 Thread Ernesto Reinaldo Barreiro
Hi Martin! Thanks for the supper fast answer! What I need is something like 1- On client side: you say stop this request and by doing so I unlock the page and make it ready to accept new AJAX request 2- Fire a new AJAX request > Wicket's AjaxChannels manage the waiting requests only. Once a

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Ernesto Reinaldo Barreiro
Can you port the code of Mp4RecordingResourceReference? On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik wrote: > Mp4RecordingResourceReference, OggRecordingResourceReference and > JpgRecordingResourceReference > are subclasses of the same abstract class (not sure if it

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Ernesto Reinaldo Barreiro
port -> paste On Wed, Jan 13, 2016 at 11:33 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Can you port the code of Mp4RecordingResourceReference? > > On Wed, Jan 13, 2016 at 11:31 AM, Maxim Solodovnik > wrote: > >> Mp4RecordingResourceReference,

Re: cancel AJAX request while a new one is triggered

2016-01-13 Thread Martin Grigorov
Hi Ernesto, There is no way to abort/cancel the Ajax request. XmlHttpRequest has a method for this but it will just close the connection. The http worker thread at the server will continue to do its job and finally will fail with IOException complaining that the connection is closed and it cannot

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Ernesto Reinaldo Barreiro
Glad to be of some help :-) On Wed, Jan 13, 2016 at 12:01 PM, Maxim Solodovnik wrote: > Thanks a lot Ernesto! > I have changed the name and now everything works as expected! > > On Wed, Jan 13, 2016 at 4:48 PM, Maxim Solodovnik > wrote: > > > Thanks

cancel AJAX request while a new one is triggered

2016-01-13 Thread Ernesto Reinaldo Barreiro
Hi, Happy 2016 to all wicketeers! Going to business: is there a way to cancel an ongoing AJAX request when a new one is triggered? This last thing conditional (i.e. not for all new AJAX requests but certain). Is using a different channel enough? Thanks in advance -- Regards - Ernesto Reinaldo

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Mp4RecordingResourceReference, OggRecordingResourceReference and JpgRecordingResourceReference are subclasses of the same abstract class (not sure if it is important or not) On Wed, Jan 13, 2016 at 4:27 PM, Maxim Solodovnik wrote: > Hello All, > > I'm currently using

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Martin Grigorov
Right. The "Key" (ResourceReference.Key) is used for the equals(). In your case the scope is always org.apache.wicket.Application.class, so you need to have custom names at least. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 13, 2016 at 12:09 PM,

Re: Good wicket references

2016-01-13 Thread Tobias Soloschenko
Hi, you can also have a look at the examples: http://examples7x.wicket.apache.org/ kind regards Tobias > Am 13.01.2016 um 10:48 schrieb delfino : > > Hi, > > I am searching for good references about Apache Wicket. > > So far I have the Javadocs, the oficial Wicket

Re: RequestCycle.urlFor weird behavior

2016-01-13 Thread Maxim Solodovnik
Thanks! Will check equals next time :) On Wed, Jan 13, 2016 at 5:17 PM, Martin Grigorov wrote: > Right. > The "Key" (ResourceReference.Key) is used for the equals(). > In your case the scope is always org.apache.wicket.Application.class, so > you need to have custom names

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Ernesto Reinaldo Barreiro
I use them both together in my current project but I haven't got to the point where styling it is a priority: I did that before for a previous version of select2 and it was mostly playing with CSS. On Wed, Jan 13, 2016 at 2:47 PM, Tom Götz wrote: > Hi there, > > does anybody

Re: Ace Editor Wicket integration?

2016-01-13 Thread Arjun Dhar
Anyone defined a Mode for HTML+WICKET using https://ace.c9.io/#nav=higlighter ? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context:

Re: Good wicket references

2016-01-13 Thread delfino
Thank you Tobias. 2016-01-13 9:18 GMT-02:00 Tobias Soloschenko [via Apache Wicket] < ml-node+s1842946n4673301...@n4.nabble.com>: > Hi, > > you can also have a look at the examples: > > http://examples7x.wicket.apache.org/ > > kind regards > > Tobias > > > Am 13.01.2016 um 10:48 schrieb delfino

wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Tom Götz
Hi there, does anybody have a working example for wicketstuff-select2 single/multi choices styled in Bootstrap 3 layout? I’m currently going bananas trying to integrate those into our Bootstrap-styled application. Any hint is welcome! Cheers, Tom

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Gabriel Landon
Sorry, I'm still using select2 V3.5. I did not know the wicketstuff-select2 had been upgraded to V4. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p4673316.html Sent from the Users forum mailing list archive at

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Ernesto Reinaldo Barreiro
Nice! I will try to roll a wicket wrapper. On Wed, Jan 13, 2016 at 7:45 PM, Gabriel Landon wrote: > Hi Tom, > > This is the one I use : > https://fk.github.io/select2-bootstrap-css/ > > regards, > Gabriel. > > -- > View this message in context: >

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Ernesto Reinaldo Barreiro
Not compatible with https://github.com/select2/select2/releases/tag/4.0.1 ? :-( On Wed, Jan 13, 2016 at 8:17 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Nice! I will try to roll a wicket wrapper. > > On Wed, Jan 13, 2016 at 7:45 PM, Gabriel Landon wrote: >

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Gabriel Landon
Hi Tom, This is the one I use : https://fk.github.io/select2-bootstrap-css/ regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p4673313.html Sent from the Users forum mailing list archive at Nabble.com.

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Gabriel Landon
Have you tried with this one : https://github.com/select2/select2-bootstrap-theme regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-select2-and-Bootstrap-3-tp4673303p4673317.html Sent from the Users forum mailing list archive at

Re: URL Mapping with dynamic params

2016-01-13 Thread Marcel Barbosa Pinto
OK, thank you. Em 13 de jan de 2016 3:21 PM, "Martin Grigorov" escreveu: > I am not sure. > I think the id should be also dynamic: > id = parameters.get(parameters.getIndexedCount() - 1); > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Ernesto Reinaldo Barreiro
Thanks for link! @martin-g What would be the best way to integrate this http://select2.github.io/select2-bootstrap-theme/ ? 1- Add a theme "concept" to select2 on wicket-stuff? 2- Create a component depending on select2 of wicket-stuff on wicket-bootstrap? 3- ? On Wed, Jan 13, 2016 at 8:45

Re: wicketstuff-select2 and Bootstrap 3

2016-01-13 Thread Tom Götz
Yeah, the CSS (after finished with playing) is exactly what I’d like to see ;-) Tom > On 13.01.2016, at 14:52, Ernesto Reinaldo Barreiro wrote: > > I use them both together in my current project but I haven't got to the > point where styling it is a priority: I did that

Re: URL Mapping with dynamic params

2016-01-13 Thread Marcel Barbosa Pinto
Hmm, cool... this will work for me as the last index will always be the ${id}, tks! On Wed, Jan 13, 2016 at 3:08 PM, Martin Grigorov wrote: > Hi, > > Mount just "page" and use PageParameters indexed parameters to read/write > the categories. > > Martin Grigorov >

URL Mapping with dynamic params

2016-01-13 Thread Marcel Barbosa Pinto
Hi guys, I have to mount a page with an URL that contains zero or more "categories". /page/${id} /page/vahicles/${id} /page/vahicles/cars/${id} /page/vahicles/cars/honda/${id} The "/page" is fixed while the others vehicles, cars and honda is like a category tree only for SEO needs. In a

Re: URL Mapping with dynamic params

2016-01-13 Thread Martin Grigorov
Hi, Mount just "page" and use PageParameters indexed parameters to read/write the categories. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 13, 2016 at 6:04 PM, Marcel Barbosa Pinto < marcel.po...@gmail.com> wrote: > Hi guys, > > I have to mount a

Re: URL Mapping with dynamic params

2016-01-13 Thread Martin Grigorov
I am not sure. I think the id should be also dynamic: id = parameters.get(parameters.getIndexedCount() - 1); Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 13, 2016 at 6:17 PM, Marcel Barbosa Pinto < marcel.po...@gmail.com> wrote: > Hmm, cool... this