Re: unable to retrieve HTTPServletRequest parameters
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 message in context: http://apache-wicket.1842946.n4.nabble.com/unable-to-retrieve-HTTPServletRequest-parameters-tp4676661p4676805.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shift/Crtl selection in DefaultNestedTree
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 the > AjaxRequestAttributes at the server side (see #updateAjaxAttributes()). > At the client side the jQuery event is added to this JS object and the > object itself is passed as a parameter to all callback functions: before, > beforeSend, precondition, complete, ... > See > https://ci.apache.org/projects/wicket/guide/8.x/ > single.html#_working_with_ajax > for more info. > > About your second question - how to debug those functions: just add > "debugger;" in the JS code. > If the browser Dev Tools are opened then the browser will suspend the > execution at this special expression. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, Jan 17, 2017 at 7:23 PM, Sven Meier wrote: > > > 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 StyledLinkLabel.this.isClickable(); > > } > > > > @Override > > protected void updateAjaxAttributes(AjaxRequestAttributes > > attributes) > > { > > super.updateAjaxAttributes(attributes); > > > > attributes.getDynamicExtraParameters(). > add("function(attrs) > > { return { 'modifiers' : modifiers(attrs.event) }; }"); > > } > > > > @Override > > public void onClick(AjaxRequestTarget target) > > { > > String modifier = getRequest().getRequestParamet > > ers().getParameterValue("modifiers").toOptionalString(); > > } > > }; > > } > > > > I didn't try it, but I think all you have to do is to provide a > > #modifiers(event) to encode all pressed modifier keys. > > > > Have fun > > Sven > > > > > > > > On 17.01.2017 18:30, Maxim Solodovnik wrote: > > > >> 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 get it? (found > no > >> way to debug these dynamic JS functions :( ) > >> > >> Thanks in advance > >> > >> [1] https://issues.apache.org/jira/browse/WICKET-5306 > >> > >> On Thu, Dec 22, 2016 at 2:14 PM, Maxim Solodovnik > > >> wrote: > >> > >> Sounds doable :) > >>> I was hoping this is already implemented, so I can use it :) > >>> Will implement myself :) > >>> > >>> On Thu, Dec 22, 2016 at 2:06 PM, Sven Meier wrote: > >>> > >>> Hi Maxim, > > you'd have to transport information about the currently pressed keys > to > the server (via AjaxRequestAttributes dynamic extra parameters). > > There it is just a matter of managing selection state and visually > marking the components accordingly. > > Sounds complicated? > > Sven > > > On 22.12.2016 05:44, Maxim Solodovnik wrote: > > Hello All, > > > > Maybe someone has any working examples of multi-node selection > > in DefaultNestedTree using Crtl/Shift keys? > > > > Thanks in advance > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >>> -- > >>> WBR > >>> Maxim aka solomax > >>> > >>> > >> > >> > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > -- WBR Maxim aka solomax
Silk Test for wicket appplication
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 wicket dynamically generated component ID, the load test is failing wherever wicket handling the component id's. Do we need to do anything to handle the components ID for the Silk Test? Any Help?
Re: Shift/Crtl selection in DefaultNestedTree
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 object itself is passed as a parameter to all callback functions: before, beforeSend, precondition, complete, ... See https://ci.apache.org/projects/wicket/guide/8.x/single.html#_working_with_ajax for more info. About your second question - how to debug those functions: just add "debugger;" in the JS code. If the browser Dev Tools are opened then the browser will suspend the execution at this special expression. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jan 17, 2017 at 7:23 PM, Sven Meier wrote: > 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 StyledLinkLabel.this.isClickable(); > } > > @Override > protected void updateAjaxAttributes(AjaxRequestAttributes > attributes) > { > super.updateAjaxAttributes(attributes); > > attributes.getDynamicExtraParameters().add("function(attrs) > { return { 'modifiers' : modifiers(attrs.event) }; }"); > } > > @Override > public void onClick(AjaxRequestTarget target) > { > String modifier = getRequest().getRequestParamet > ers().getParameterValue("modifiers").toOptionalString(); > } > }; > } > > I didn't try it, but I think all you have to do is to provide a > #modifiers(event) to encode all pressed modifier keys. > > Have fun > Sven > > > > On 17.01.2017 18:30, Maxim Solodovnik wrote: > >> 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 get it? (found no >> way to debug these dynamic JS functions :( ) >> >> Thanks in advance >> >> [1] https://issues.apache.org/jira/browse/WICKET-5306 >> >> On Thu, Dec 22, 2016 at 2:14 PM, Maxim Solodovnik >> wrote: >> >> Sounds doable :) >>> I was hoping this is already implemented, so I can use it :) >>> Will implement myself :) >>> >>> On Thu, Dec 22, 2016 at 2:06 PM, Sven Meier wrote: >>> >>> Hi Maxim, you'd have to transport information about the currently pressed keys to the server (via AjaxRequestAttributes dynamic extra parameters). There it is just a matter of managing selection state and visually marking the components accordingly. Sounds complicated? Sven On 22.12.2016 05:44, Maxim Solodovnik wrote: Hello All, > > Maybe someone has any working examples of multi-node selection > in DefaultNestedTree using Crtl/Shift keys? > > Thanks in advance > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> -- >>> WBR >>> Maxim aka solomax >>> >>> >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Shift/Crtl selection in DefaultNestedTree
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 StyledLinkLabel.this.isClickable(); } @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add("function(attrs) { return { 'modifiers' : modifiers(attrs.event) }; }"); } @Override public void onClick(AjaxRequestTarget target) { String modifier = getRequest().getRequestParameters().getParameterValue("modifiers").toOptionalString(); } }; } I didn't try it, but I think all you have to do is to provide a #modifiers(event) to encode all pressed modifier keys. Have fun Sven On 17.01.2017 18:30, Maxim Solodovnik wrote: 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 get it? (found no way to debug these dynamic JS functions :( ) Thanks in advance [1] https://issues.apache.org/jira/browse/WICKET-5306 On Thu, Dec 22, 2016 at 2:14 PM, Maxim Solodovnik wrote: Sounds doable :) I was hoping this is already implemented, so I can use it :) Will implement myself :) On Thu, Dec 22, 2016 at 2:06 PM, Sven Meier wrote: Hi Maxim, you'd have to transport information about the currently pressed keys to the server (via AjaxRequestAttributes dynamic extra parameters). There it is just a matter of managing selection state and visually marking the components accordingly. Sounds complicated? Sven On 22.12.2016 05:44, Maxim Solodovnik wrote: Hello All, Maybe someone has any working examples of multi-node selection in DefaultNestedTree using Crtl/Shift keys? Thanks in advance - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shift/Crtl selection in DefaultNestedTree
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 get it? (found no way to debug these dynamic JS functions :( ) Thanks in advance [1] https://issues.apache.org/jira/browse/WICKET-5306 On Thu, Dec 22, 2016 at 2:14 PM, Maxim Solodovnik wrote: > Sounds doable :) > I was hoping this is already implemented, so I can use it :) > Will implement myself :) > > On Thu, Dec 22, 2016 at 2:06 PM, Sven Meier wrote: > >> Hi Maxim, >> >> you'd have to transport information about the currently pressed keys to >> the server (via AjaxRequestAttributes dynamic extra parameters). >> >> There it is just a matter of managing selection state and visually >> marking the components accordingly. >> >> Sounds complicated? >> >> Sven >> >> >> On 22.12.2016 05:44, Maxim Solodovnik wrote: >> >>> Hello All, >>> >>> Maybe someone has any working examples of multi-node selection >>> in DefaultNestedTree using Crtl/Shift keys? >>> >>> Thanks in advance >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax
Re: Reload TabbedPanel preserving active tab
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 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, because only directly targeted component are referenced here IIRC) > You can also look in the ajax-debug-window if you see the > jQuery('#mydialog').destroy() statement in the "priority-evaluate" section > (I guess not, too) > > Otherwise, you have other workarounds: > 1/ removing the dialog from the tab-panel :) > 2/ calling mydialog#destroy *before* the ajax call (tough an > AjaxCallListener, see #updateAjaxAttributes) > 3/ calling mydialog#destroy in the response, trough > handler.prependJavaScript(JQueryUtils.trycatch("jQuery(' > #mydialog').destroy()")); > - I would opt for this one. you can look at [1] > > Hope this helps, > Sebastien. > > [1] > https://github.com/sebfz1/wicket-jquery-ui/blob/master/ > wicket-jquery-ui/src/main/java/com/googlecode/wicket/ > jquery/ui/JQueryUIBehavior.java#L136 > > > > On Tue, Jan 17, 2017 at 11:50 AM, Maxim Solodovnik > wrote: > > > 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-create dialog :( > > (dialog seems to be added to the as hidden div, and not being > > updated) > > > > Is it possible? > > Are there any workarounds except removing dialog from the tab-panel? > > > > > > > > On Sun, Jan 15, 2017 at 12:30 AM, Sebastien wrote: > > > > > Transferring to users@, I did not realized I reply to you only > Maxim... > > > > > > > > > -- Forwarded message -- > > > From: Maxim Solodovnik > > > Date: Sat, Jan 14, 2017 at 5:13 PM > > > Subject: Re: Reload TabbedPanel preserving active tab > > > To: Sebastien > > > > > > > > > Thanks a lot Sebastien! > > > Works as expected :) > > > > > > On Sat, Jan 14, 2017 at 8:31 PM, Sebastien wrote: > > > > > > > Oops, forgot something in the copy paste: > > > > > > > > this.tabPanel = new TabbedPanel("tabs", this.newTabModel()) { > > > >> > > > >> private IModel indexModel = Model.of(-1); > > > >> > > > >> @Override > > > >> protected void onConfigure() > > > >> { > > > >> super.onConfigure(); > > > >> > > > >> int index = indexModel.getObject(); > > > >> > > > >> if (index > -1) // TODO eventually also check if the > > > >> corresponding tab is visible > > > >> { > > > >> this.setActiveTab(index); > > > >> } > > > >> } > > > >> > > > >> public void onActivate(AjaxRequestTarget target, int > > index, > > > >> ITab tab) > > > >> { > > > >> indexModel.setObject(index); > > > >> } > > > >> } > > > >> > > > > > > > > > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > > -- WBR Maxim aka solomax
Re: Reload TabbedPanel preserving active tab
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, because only directly targeted component are referenced here IIRC) You can also look in the ajax-debug-window if you see the jQuery('#mydialog').destroy() statement in the "priority-evaluate" section (I guess not, too) Otherwise, you have other workarounds: 1/ removing the dialog from the tab-panel :) 2/ calling mydialog#destroy *before* the ajax call (tough an AjaxCallListener, see #updateAjaxAttributes) 3/ calling mydialog#destroy in the response, trough handler.prependJavaScript(JQueryUtils.trycatch("jQuery('#mydialog').destroy()")); - I would opt for this one. you can look at [1] Hope this helps, Sebastien. [1] https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/JQueryUIBehavior.java#L136 On Tue, Jan 17, 2017 at 11:50 AM, Maxim Solodovnik wrote: > 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-create dialog :( > (dialog seems to be added to the as hidden div, and not being > updated) > > Is it possible? > Are there any workarounds except removing dialog from the tab-panel? > > > > On Sun, Jan 15, 2017 at 12:30 AM, Sebastien wrote: > > > Transferring to users@, I did not realized I reply to you only Maxim... > > > > > > -- Forwarded message -- > > From: Maxim Solodovnik > > Date: Sat, Jan 14, 2017 at 5:13 PM > > Subject: Re: Reload TabbedPanel preserving active tab > > To: Sebastien > > > > > > Thanks a lot Sebastien! > > Works as expected :) > > > > On Sat, Jan 14, 2017 at 8:31 PM, Sebastien wrote: > > > > > Oops, forgot something in the copy paste: > > > > > > this.tabPanel = new TabbedPanel("tabs", this.newTabModel()) { > > >> > > >> private IModel indexModel = Model.of(-1); > > >> > > >> @Override > > >> protected void onConfigure() > > >> { > > >> super.onConfigure(); > > >> > > >> int index = indexModel.getObject(); > > >> > > >> if (index > -1) // TODO eventually also check if the > > >> corresponding tab is visible > > >> { > > >> this.setActiveTab(index); > > >> } > > >> } > > >> > > >> public void onActivate(AjaxRequestTarget target, int > index, > > >> ITab tab) > > >> { > > >> indexModel.setObject(index); > > >> } > > >> } > > >> > > > > > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > > > > > -- > WBR > Maxim aka solomax >
Re: Debugging 'component has been removed from page'
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 information during the exception instantiation. > > 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 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_ 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 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 > > > > first is finished... but then the target component is no longer > visible > > > on > > > > the server side... > > > > > > > > On Tue, Jan 17, 2017 at 9:16 AM, Maxim Solodovnik < > > solomax...@gmail.com> > > > > wrote: > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > -- > > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > -- > Regards - Ernesto Reinaldo Barreiro >
Re: Reload TabbedPanel preserving active tab
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-create dialog :( (dialog seems to be added to the as hidden div, and not being updated) Is it possible? Are there any workarounds except removing dialog from the tab-panel? On Sun, Jan 15, 2017 at 12:30 AM, Sebastien wrote: > Transferring to users@, I did not realized I reply to you only Maxim... > > > -- Forwarded message -- > From: Maxim Solodovnik > Date: Sat, Jan 14, 2017 at 5:13 PM > Subject: Re: Reload TabbedPanel preserving active tab > To: Sebastien > > > Thanks a lot Sebastien! > Works as expected :) > > On Sat, Jan 14, 2017 at 8:31 PM, Sebastien wrote: > > > Oops, forgot something in the copy paste: > > > > this.tabPanel = new TabbedPanel("tabs", this.newTabModel()) { > >> > >> private IModel indexModel = Model.of(-1); > >> > >> @Override > >> protected void onConfigure() > >> { > >> super.onConfigure(); > >> > >> int index = indexModel.getObject(); > >> > >> if (index > -1) // TODO eventually also check if the > >> corresponding tab is visible > >> { > >> this.setActiveTab(index); > >> } > >> } > >> > >> public void onActivate(AjaxRequestTarget target, int index, > >> ITab tab) > >> { > >> indexModel.setObject(index); > >> } > >> } > >> > > > > > > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax
Re: Debugging 'component has been removed from page'
@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 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_ 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 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 > > > first is finished... but then the target component is no longer visible > > on > > > the server side... > > > > > > On Tue, Jan 17, 2017 at 9:16 AM, Maxim Solodovnik < > solomax...@gmail.com> > > > wrote: > > > > > > > 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 > > > > > > > > > > > > > > > > -- > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > > -- Regards - Ernesto Reinaldo Barreiro
Re: Debugging 'component has been removed from page'
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_ 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 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 > > first is finished... but then the target component is no longer visible > on > > the server side... > > > > On Tue, Jan 17, 2017 at 9:16 AM, Maxim Solodovnik > > wrote: > > > > > 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 > > > > > > > > > > > -- > > Regards - Ernesto Reinaldo Barreiro > > > > > > -- > WBR > Maxim aka solomax >
Re: Debugging 'component has been removed from page'
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 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 > first is finished... but then the target component is no longer visible on > the server side... > > On Tue, Jan 17, 2017 at 9:16 AM, Maxim Solodovnik > wrote: > > > 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 > > > > > > -- > Regards - Ernesto Reinaldo Barreiro > -- WBR Maxim aka solomax
Re: Debugging 'component has been removed from page'
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 first is finished... but then the target component is no longer visible on the server side... On Tue, Jan 17, 2017 at 9:16 AM, Maxim Solodovnik wrote: > 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 > -- Regards - Ernesto Reinaldo Barreiro
Debugging 'component has been removed from page'
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