Re: Reload TabbedPanel preserving active tab

2017-01-13 Thread Maxim Solodovnik
Jquery :) Thaks a lot! WBR, Maxim (from mobile, sorry for the typos) On Jan 14, 2017 01:30, "Sebastien" wrote: > 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,

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

Reload TabbedPanel preserving active tab

2017-01-13 Thread Maxim Solodovnik
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: Cannot modify component hierarchy after render phase has started

2017-01-13 Thread Sven Meier
Hi Dirk, problem is that TestPanel.onConfigure() is called during render phase only, while in 7.4 it was (correctly) called in #beforeRender() (where hierarchy changes are still allowed). So I assume this is caused by WICKET-6216, component queuing might be involved. Regards Sven

Re: Cannot mock final SortableDataProvider.getSortState

2017-01-13 Thread Eric J. Van der Velden
Hoi Bas, I am at the office now, so now I would like to comment on the first question in your last answer. My experience is that when you mock a class, and you call a final method on the mock, Mockito returns null. So it is not that you can trust a final method or not, the mock's method returns

Idea for a template component

2017-01-13 Thread Marcel Barbosa Pinto
Hi guys, I had an idea last night and decided to implement it. On my wicket app I have a lot of labels that is used just to display the model values to the user. So my code was some thing like this: WebMarkupContainer container = new WebMarkupContainer("container", new

Re: Cannot mock final SortableDataProvider.getSortState

2017-01-13 Thread Bas Gooren
Hi Eric, Well - looking at SortableDataProvider I suppose you cold mock an implementation of it. As getSortState() is final, you need to trust that it does it’s job. Why do you want to mock that method? The same applies to LoadableDetachableModel - why do you need to mock final getObject(),

Re: AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Sven Meier
Ah, it didn't have anything to do with Ajax or models after all: - PasswordTextField#setResetPassword(false) lets it render the password (you don't have a login form here, so it's safe) - Group has to implement #equals() and #hashCode() *or* you have to use an id value other than index

Re: Cannot mock final SortableDataProvider.getSortState

2017-01-13 Thread Eric J. Van der Velden
Hoi Bas, Thank you for your answer! So maybe I am doing it wrong. Let's take an example. In the wicket examples, in package org.apache.wicket.examples.repeater, there is the provider: public class SortableContactDataProvider_my extends SortableDataProvider_my implements

AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Christoph.Manig
Ok I created an Account on GitHub. Here is the example: https://github.com/CManig/WicketChoiceExample Mit freundlichen Grüßen Christoph Manig -Ursprüngliche Nachricht- Von: Maxim Solodovnik [mailto:solomax...@gmail.com] Gesendet: Freitag, 13. Januar 2017 10:48 An:

Re: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Maxim Solodovnik
you can use any publicaly available project hosting (your SVN, bitbucket, github etc.) Or you can create JIRA issue and attach your quickstart (I would use this option only if I know for sure it is JIRA bug) On Fri, Jan 13, 2017 at 4:07 PM, wrote: > I've only have

Re: Cannot modify component hierarchy after render phase has started

2017-01-13 Thread Dirk Forchel
Hi Sven, attached you can find a quickstart which demonstrates the problem. I've added 3 test pages all with a TextField and a Panel with a TextField. For each component, the model object is set at the onConfigure method. At the first page both components are added to the page itself. At the

AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Christoph.Manig
I've only have a GitLab Account will this also work for you? Can you send me a link to the right place in Jira? Mit freundlichen Grüßen Christoph Manig -Ursprüngliche Nachricht- Von: Maxim Solodovnik [mailto:solomax...@gmail.com] Gesendet: Freitag, 13. Januar 2017 10:05 An:

Re: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Maxim Solodovnik
You can share github link or attach it to JIRA :) On Fri, Jan 13, 2017 at 4:02 PM, wrote: > I created a small example. How can I send this to you? > > > Mit freundlichen Grüßen > Christoph Manig > Systems Engineer > > T-Systems International GmbH > Systems

AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Christoph.Manig
I created a small example. How can I send this to you? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport & Logistics Annenstr. 5 01067 Dresden tel.: +49 (0) 351 / 4744 - 188 fax:+49 (0) 351 / 4744 - 209 email: