Re: unable to retrieve HTTPServletRequest parameters

2017-01-17 Thread Kris
Thank you Martin and Sven and sorry i delayed working on your suggestions. I did a POC and i was able to do retrieve the parameters from both HTTPServletRequest and PageParameters. Problem was with the application that is invoking the wicket application. Thanks a lot - K -- View this

Re: Shift/Crtl selection in DefaultNestedTree

2017-01-17 Thread Maxim Solodovnik
Thanks a lot! Everything seems to work as expected :) On Wed, Jan 18, 2017 at 3:04 AM, Martin Grigorov wrote: > Hi Maxim, > > As Sven already showed in the code the way to get the jQuery event is: > attrs.event > 'attrs' is the settings object that Wicket generates from

Silk Test for wicket appplication

2017-01-17 Thread durairaj t
Unable to run the recorded Silk Test scripts in the Silk Test tool and getting the following message in the scripts. "id81_hf_0" := "" , // hidden, unchanged, value: "" "idf_hf_0" := "" , // hidden, unchanged, value: "" "id81_hf_0", "idf_hf_0" are

Re: Shift/Crtl selection in DefaultNestedTree

2017-01-17 Thread Martin Grigorov
Hi Maxim, As Sven already showed in the code the way to get the jQuery event is: attrs.event 'attrs' is the settings object that Wicket generates from the AjaxRequestAttributes at the server side (see #updateAjaxAttributes()). At the client side the jQuery event is added to this JS object and the

Re: Shift/Crtl selection in DefaultNestedTree

2017-01-17 Thread Sven Meier
Hi, you should be able to add a dynamic extra attribute: protected MarkupContainer newLinkComponent(String id, IModel model) { return new AjaxLink(id) { @Override public boolean isEnabled() { return

Re: Shift/Crtl selection in DefaultNestedTree

2017-01-17 Thread Maxim Solodovnik
I have started implementing this :) Used this [1] as an example I have one proposal: To add method updateAjaxAttributes to StyledLinkLabel (to reduce amount of copy/paste :)), I can create PR, it seems to be trivial :) And one question: To have ctrl/shift I need original MouseEvent, how can I

Re: Reload TabbedPanel preserving active tab

2017-01-17 Thread Maxim Solodovnik
I see :) I have removed "form" dialog from the tab Maybe this report will help other users :) Thanks for the hints :) On Tue, Jan 17, 2017 at 6:35 PM, Sebastien wrote: > Hi Maxim, > > It seems that the dialog widget is not correctly *destroyed*, therefore the > new dialog

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,

Re: Debugging 'component has been removed from page'

2017-01-17 Thread Martin Grigorov
On Tue, Jan 17, 2017 at 11:39 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > @Martin, > > May the exception could contain info about failing request (e.g. URL, if > it AJAX and so on). > This is possible with Logback/Log4j configuration. No need Wicket to try to extract this

Re: Reload TabbedPanel preserving active tab

2017-01-17 Thread Maxim Solodovnik
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: Debugging 'component has been removed from page'

2017-01-17 Thread Ernesto Reinaldo Barreiro
@Martin, May the exception could contain info about failing request (e.g. URL, if it AJAX and so on). On Tue, Jan 17, 2017 at 11:06 AM, Martin Grigorov wrote: > Hi Maxim, > > Try with MarkupContainer #replace() and #remove() methods. > > Martin Grigorov > Wicket Training

Re: Debugging 'component has been removed from page'

2017-01-17 Thread Martin Grigorov
Hi Maxim, Try with MarkupContainer #replace() and #remove() methods. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jan 17, 2017 at 10:59 AM, Maxim Solodovnik wrote: > Hello Ernesto, > > Thanks for the answer, I know why this _can_

Re: Debugging 'component has been removed from page'

2017-01-17 Thread Maxim Solodovnik
Hello Ernesto, Thanks for the answer, I know why this _can_ happen I was hoping I can set breakpoint somewhere to see why it happens in my case On Tue, Jan 17, 2017 at 4:12 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Imagine you have an AJAX action and that action replaces

Re: Debugging 'component has been removed from page'

2017-01-17 Thread Ernesto Reinaldo Barreiro
Imagine you have an AJAX action and that action replaces a panel... your page does not blocks the UI so the user can e.g. click on a component of the panel to be replaced (e.g the same of different AJAX action). As AJAX actions are queued at client side second action will only be executed aster

Debugging 'component has been removed from page'

2017-01-17 Thread Maxim Solodovnik
Hello All, Recently I got weird exception ComponentNotFoundException: Component 'id-sequence-here' has been removed from page. Maybe you know are there any way to debug why and when component was removed Thanks in advance! -- WBR Maxim aka solomax