Just handle java properties files with Apache Wicket

2018-05-25 Thread kyrindorx
Hey all, I have a idea to handle java properties files in Apache Wicket. We use this little helper in our projects, too :) So check it out and test it: https://t.co/7RNgdC6VlD Bye Kyrindor PS: It's open source (MIT License) ---

Re: Calling Wicket from JS

2018-05-25 Thread Zbynek Vavros
Thanks Martin, exactly what I was looking for! On Fri, May 25, 2018 at 1:54 PM, Martin Grigorov wrote: > Hi, > > You need to use POST method for your Ajax request. > See AbstractDefaultAjaxBehavior#updateAjaxAttributes() > > On Fri, May 25, 2018 at 2:41 PM, Zbynek Vavros > wrote: > > > Hey, > >

How to use language/locale from url without creating a session?

2018-05-25 Thread Bas Gooren
Hi! We build mainly e-commerce websites on wicket, which means most pages are publicly visible and indexable. Since our websites are multi-language we have a custom CompoundRequestMapper which checks if the url contains a valid locale, and updates the session locale accordingly. This works great!

Re: AjaxRequestHandler sends redirect if update contains a page

2018-05-25 Thread Ravi
Hi Martin, a colleague also gave me the hint regarding the need of a markupId to replace an element. Makes perfect sense, thanks for clarification :) -Ravi -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: Wicket 8 migration / header contributions question

2018-05-25 Thread Andrea Del Bene
Hi, I've added a note at the beginning of the migration guide listing important changes that should be checked during migration even if you don't have compilation problems. Feel free to improve/enrich it. On Fri, May 25, 2018 at 11:42 AM, Sven Meier wrote: > Hi, > > it would be great if you cou

Re: Basket in session

2018-05-25 Thread Andrea Del Bene
In Guide we trust :-) http://wicket.apache.org/learn/#guide On Fri, May 25, 2018 at 11:30 AM, JavaTraveler wrote: > Hello ! > > I have been trying to make a basket for an e-commerce application. > > But I don't understand how to use the session's system in wicket. > > Anyone have a good source

Re: Basket in session

2018-05-25 Thread Martin Grigorov
Hi, I'd recommend you to read Wicket documentation. The Session class is explained at https://ci.apache.org/projects/wicket/guide/8.x/single.html#_session_class P.S. You may also want to subscribe to the mailing list ( https://wicket.apache.org/help/email.html#user) so that your messages are not

Basket in session

2018-05-25 Thread JavaTraveler
Hello ! I have been trying to make a basket for an e-commerce application. But I don't understand how to use the session's system in wicket. Anyone have a good source I could read ? Right now, I'm trying a class with "@SessionScoped" like in JSF. But, I had no results so far. -- Sent from: htt

Re: Calling Wicket from JS

2018-05-25 Thread Martin Grigorov
Hi, You need to use POST method for your Ajax request. See AbstractDefaultAjaxBehavior#updateAjaxAttributes() On Fri, May 25, 2018 at 2:41 PM, Zbynek Vavros wrote: > Hey, > > I am using the callBackScript() of AbstractDefaultAjaxBehavior: > AbstractDefaultAjaxBehavior behavior = new AbstractDef

Re: AjaxRequestHandler sends redirect if update contains a page

2018-05-25 Thread Martin Grigorov
On Fri, May 25, 2018 at 2:36 PM, Ravi wrote: > Hi, > > I was wondering why AjaxRequestHandler sends a redirect when I add a page > to > the ART. > > I understand that for most cases it does not make sense to add the whole > page, but I'm just lucky enough to be on one of those situation. > Our pa

Calling Wicket from JS

2018-05-25 Thread Zbynek Vavros
Hey, I am using the callBackScript() of AbstractDefaultAjaxBehavior: AbstractDefaultAjaxBehavior behavior = new AbstractDefaultAjaxBehavior() { @Override public CharSequence getCallbackFunction(CallbackParameter... extraParameters) { return super.getCallbac

AjaxRequestHandler sends redirect if update contains a page

2018-05-25 Thread Ravi
Hi, I was wondering why AjaxRequestHandler sends a redirect when I add a page to the ART. I understand that for most cases it does not make sense to add the whole page, but I'm just lucky enough to be on one of those situation. Our page is being integrated in a third party page via JQuery.load().

Re: AJAX & IllegalStateException: Components can no longer be added

2018-05-25 Thread Tobias Gierke
Hi Sven, Hi, actually it is even more strict: Once the ART has started generating the response - including preparation of components - you can now longer add other components. This hasn't changed from 7.x to 8.x We were discussing on lifting this restriction, but this would come with some

Re: Wicket 8 migration / header contributions question

2018-05-25 Thread Sven Meier
Hi, it would be great if you could provide a quickstart showing the problem. Thanks Sven Am 25.05.2018 um 10:34 schrieb Tobias Gierke: Hi, Hi Thomas, that should work. Could you please compare your setup with the one in https://github.com/apache/wicket/tree/master/wicket-examples/src/main

Re: AJAX & IllegalStateException: Components can no longer be added

2018-05-25 Thread Sven Meier
Hi, actually it is even more strict: Once the ART has started generating the response - including preparation of components - you can now longer add other components. This hasn't changed from 7.x to 8.x We were discussing on lifting this restriction, but this would come with some difficulti

Re: Wicket 8 migration / header contributions question

2018-05-25 Thread Martin Grigorov
Hi, On Fri, May 25, 2018 at 11:38 AM, Tobias Gierke < tobias.gie...@voipfuture.com> wrote: > Hi, > >> Hi, >> >> this should be caused by WICKET-6498. This issue has changed the behavior >> for HeaderResponseDecorator. You can find how to adapt your code in the >> migration guide or in the release

AJAX & IllegalStateException: Components can no longer be added

2018-05-25 Thread Tobias Gierke
Hi, Can someone please explain to me what's causing this exception (see end of this mail) when trying to add a component to an ART ? In http://apache-wicket.1842946.n4.nabble.com/Components-can-no-longer-be-added-td4662838.html Sven Meier said once rendering of components via Ajax has sta

Re: Wicket 8 migration / header contributions question

2018-05-25 Thread Tobias Gierke
Hi, Hi, this should be caused by WICKET-6498. This issue has changed the behavior for HeaderResponseDecorator. You can find how to adapt your code in the migration guide or in the release note of Milestone 9: Btw, could you maybe enhance the migration guide to include a warning about JS eve

Re: Wicket 8 migration / header contributions question

2018-05-25 Thread Tobias Gierke
Hi, Hi Thomas, that should work. Could you please compare your setup with the one in https://github.com/apache/wicket/tree/master/wicket-examples/src/main/java/org/apache/wicket/examples/resourcedecoration My code is identical except I'm using FilteringHeaderResponse with a custom "bucket" na