wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Thomas Götz
I want to use wicket-select2 as a replacement for Wicket's AutoCompleteTextField. Is it somehow possible to accept user input that is not contained in the list of choices? Say, my choices list returns [A, B, C] but user may also enter D in the textfield. How can I achieve this? -Tom

Re: wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Sébastien Gautrin
Hi, If you only need a static list of initial choices (non ajax), you should be able to simply use select2's tagging support with something like (didn't test it): // model is your IModelString for the selected data Select2ChoiceString choice = new Select2ChoiceString(choice, model);

Re: HazelCast and Atmosphere Integration with Wicket 6

2012-09-12 Thread esajjkh
Thanks for your help and support. I am using now wicket-atmosphere 0.4 snapshot and atmosphere 1.0.0 . I managed the reference of applicationclass in MyHazelcastBroadcaster class. Both classes looks like this now: class MyApplicationClass extends AuthenticatedWebApplication{ .

Re: HazelCast and Atmosphere Integration with Wicket 6

2012-09-12 Thread Emond Papegaaij
Then you probably didn't register the EventBus in your application's init method. Please take a look at the demo-application I've setup: https://github.com/papegaaij/wicket-atmosphere-quickstart It contains the minimal configuration needed for wicket-atmosphere. Best regards, Emond On

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
Paul, I looked at IResource and ResourceReference classes but still can't figure out how to implement an alternative to putClassAlias. In 1.4 you could do putClassAlias(GlobalResourceScope.class, global) and after that all new ResourceReference(GlobalResourceScope.class, relative/path/file.js)

disabling ajax submit button

2012-09-12 Thread Anna Simbirtsev
Hi I am trying to disable ajax submit button after it has been clicked. AjaxSubmitLink submitButton1 = new AjaxSubmitLink(submitButton1) { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target, final Form? form)

Re: Wicket 1.5 migration questions

2012-09-12 Thread Martin Grigorov
Hi Alec, See my previous response. Try it and then come back. On Wed, Sep 12, 2012 at 5:43 PM, Alec Swan alecs...@gmail.com wrote: Paul, I looked at IResource and ResourceReference classes but still can't figure out how to implement an alternative to putClassAlias. In 1.4 you could do

Re: wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Igor Vaynberg
you need to define your own createSearchChoice function and pass it to the config. see the docs on the demo site. -igor On Wed, Sep 12, 2012 at 2:33 AM, Thomas Götz t...@decoded.de wrote: I want to use wicket-select2 as a replacement for Wicket's AutoCompleteTextField. Is it somehow possible

Re: wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Thomas Götz
Ok, will try that, thanks! -Tom On 12.09.2012, at 17:23, Igor Vaynberg igor.vaynb...@gmail.com wrote: you need to define your own createSearchChoice function and pass it to the config. see the docs on the demo site. -igor On Wed, Sep 12, 2012 at 2:33 AM, Thomas Götz t...@decoded.de

Re: disabling ajax submit button

2012-09-12 Thread Sébastien Gautrin
Which wicket version ? (I ask because I see you are using several calls that are deprecated in 1.5). Besides, within the declaration of your inner class, don't try to access the variable you are defining (and without declaring it final, it should normally not compile anyway). Not changing the

JavaDoc for Wicket 6

2012-09-12 Thread Andrea Del Bene
I've seen that version 6.0.0 has adopted also a new structure for its distribution archives. So far I didn't find where the JavaDoc for this version can be downloaded . Are they available only online? - To unsubscribe, e-mail:

RE: Wicket 1.5 migration questions

2012-09-12 Thread Paul Bors
Hey Alec, I think Martin was referring to his earlier reply on Sep 06, 2012; 2:02pm from the thread when he asked you to try and extend PackageResourceReference and then mount your resources as: mountResource(/global, new MyPackageResourceReference()) Give that a try and let us know how it

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
I tried Martin's approach but it didn't work because RequestCycle.get().getRequest().getRequestParameters() is empty when accessed from inside getName(). Maybe I am doing it wrong, so here are some questions: 1. PackageResourceReference does not have a no-arg constructor, so what parameter should

RE: JavaDoc for Wicket 6

2012-09-12 Thread Paul Bors
It's linked off Wicket's home page at http://wicket.apache.org/ under the Releases section in parenthesis (docs): http://ci.apache.org/projects/wicket/apidocs/6.0.x/ ~ Thank you, Paul Bors -Original Message- From: Andrea Del Bene [mailto:an.delb...@gmail.com] Sent: Wednesday,

RE: JavaDoc for Wicket 6

2012-09-12 Thread Paul Bors
Sorry I think I might have read your question wrong, if you're looking for the JavaDoc artifact you can grab it via maven by using the javadoc classifier or you can search the Maven central repository and download it via your web browser from:

RE: Wicket 1.5 migration questions

2012-09-12 Thread Paul Bors
PackageResourceReference IS-A ResourceReference and neither has a no-arg constructor. To see examples of how to implement your own PackageResourceReference take a look at its children such as CssResourceReference for example and how it initialized itself via the #getResource() method. ~ Thank

[Announce] WicketStuff 1.4.21 is released

2012-09-12 Thread Martin Grigorov
Hello, WicketStuff Core projects version 1.4.21 have been released and shortly will be available at Maven Central repository. They are built against Apache Wicket 1.4.21. The changelog is: Andrei Costescu (2): Patch (reviewed) from Andrei Costache. (option not to force a value in the

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
PackageResourceReference IS-A ResourceReference and neither has a no-arg constructor. My point exactly. That's why I can't just do mountResource(/global, new MyRR()) as Martin suggested. To see examples of how to implement your own PackageResourceReference take a look at its children such as

Re: Wicket 1.5 migration questions

2012-09-12 Thread Christoph Leiter
On 12.09.2012 21:38, Alec Swan wrote: PackageResourceReference IS-A ResourceReference and neither has a no-arg constructor. My point exactly. That's why I can't just do mountResource(/global, new MyRR()) as Martin suggested. My quick try: public class MyPackageResourceReference extends

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
Thanks, Christoph. I tested your implementation and was able to pull global/css/styles.css from the browser. However, the following code threw an exception: response.renderCSSReference(new MyPackageResourceReference(MyResources.class, css/styles.css), screen); I also tried:

Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-12 Thread Bruno Borges
This is really great Igor, thanks. I am preparing my slides for my Wicket/Java EE session at JavaOne, and this just came in perfect time. I'll update my archetype and some slides to show this and let everyone know about =) *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Wed, Sep 12,

Re: Wicket/Scala where to start?

2012-09-12 Thread Bruno Borges
Why don't you take a look at a work I have been doing, called Gamboa Project ? It is a project where I build several Maven archetypes for Wicket/Scala architectures (integrated with Spring or Java EE) and using JPA, CouchDB, or MongoDB as the persistent store. By the way, I'm going be at JavaOne

Re: Wicket 1.5 migration questions

2012-09-12 Thread Christoph Leiter
On 12.09.2012 22:50, Alec Swan wrote: I tested your implementation and was able to pull global/css/styles.css from the browser. However, the following code threw an exception: response.renderCSSReference(new MyPackageResourceReference(MyResources.class, css/styles.css), screen); Maybe you

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
Maybe you could simply use response.renderCSSReference(getRequest().getContextPath() + /global/css/styles.css); or is there a problem with it? That didn't fix request.getUrl().toString() returning an empty string when called from ResourceReference.getExtension()