Re: Will renderHead method be invoked when a component is rendered via wicket events?
On Mon, Mar 9, 2015 at 3:03 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, If a component is rendered then its #renderHead() should be called! On Mon, Mar 9, 2015 at 4:08 AM, MadasamySankarapandian madas...@mcruncher.com wrote: I am using bootstrap-timepicker.js in a single page application . Time picker is added in a panel which is then embedded in the page. When the entire page is reloaded, the timepicker is working fine. However, when the respective panel is displayed via Wicket events, the time picker is not rendered. I am using Component#onEvent(Ievent) method to display the panel. The javascript resource reference for timepicker is added in renderHead method. I would like to know if a panel is reloaded during onEvent call, will rendeHead method be invoked or not? Here are few code snippets to help you all understand what I am trying? public class BasePage { public void renderHead(IHeaderResponse response) Call super.renderHead(response) too. Is this a method in the page or in SelectionPanel ?! This method is in BasePage. { response.render(JavaScriHeaderItem.forReference(new JavaScriptResourceReference(bootstrap-timepicker.js))); response.render(JavaScriHeaderItem.forReference(new JavaScriptResourceReference(common.js))); } //event is received to display panel public void onEvent(IEvent ievent) { super.onEvent(ievent) if(event.getPayLoad() instance of Notification) { Notification notification = (Notification) event.getPayload(); PageParameters parameters = notification.getPageParameters() Panel selectedPanel = getSelectedPanel(parameters, notification.getPanelClass); BasePage.this.selectedPanel.replaceWith(selectedPanel); There is no Ajax here, so the whole page is re-rendered and #renderHead() should be called for all visible components. Sorry here ajax is involved. In the sample code i forgot to add. selectedPanel.setOutputMarkupId(true); notification.getTarget().add(selectedPanel); } } } -- Thanks and regards Madasamy -- Thanks and regards Madasamy
Will renderHead method be invoked when a component is rendered via wicket events?
I am using bootstrap-timepicker.js in a single page application . Time picker is added in a panel which is then embedded in the page. When the entire page is reloaded, the timepicker is working fine. However, when the respective panel is displayed via Wicket events, the time picker is not rendered. I am using Component#onEvent(Ievent) method to display the panel. The javascript resource reference for timepicker is added in renderHead method. I would like to know if a panel is reloaded during onEvent call, will rendeHead method be invoked or not? Here are few code snippets to help you all understand what I am trying? public class BasePage { public void renderHead(IHeaderResponse response) { response.render(JavaScriHeaderItem.forReference(new JavaScriptResourceReference(bootstrap-timepicker.js))); response.render(JavaScriHeaderItem.forReference(new JavaScriptResourceReference(common.js))); } //event is received to display panel public void onEvent(IEvent ievent) { super.onEvent(ievent) if(event.getPayLoad() instance of Notification) { Notification notification = (Notification) event.getPayload(); PageParameters parameters = notification.getPageParameters() Panel selectedPanel = getSelectedPanel(parameters, notification.getPanelClass); BasePage.this.selectedPanel.replaceWith(selectedPanel); } } } -- Thanks and regards Madasamy
Re: [ANNOUNCE] WicketStuff 6.19.0 is released
Thanks to martin, Maxim Solodovnik and wicket-stuff team to fix bug clear input of select2 field. On Tue, Feb 10, 2015 at 3:29 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thanks! On Mon, Feb 9, 2015 at 9:06 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, WicketStuff core 6.19.0 based on Apache Wicket 6.19.0 is released and available at Maven Central. The changelog since 6.18.0 is: cmiles74 (31): Fixed bad links in the example app Added Travis CI status image Fixed bug in tile variable declaration Merge branch 'wicket-6.x' of https://github.com/wicketstuff/core into wicket-6.x Added persistent feature and map centering Added Bing Maps support Completed first pass at modify interaction Merge branch 'wicket-6.x' of https://github.com/wicketstuff/core into wicket-6.x Updated Travis CI config Started implementing drag-and-drop interactions Completed my first pass at implementing the modify interaction Completed my first pass at implementing the modify interaction Did battle with ID generation Did battle with ID generation Conducted mortal battle with ID generation Implemented interaction change and removal Worked on issues refreshing the Boostrap popover Minor scoping change for incidental variable Altered to collect changes before posting to server Altered to escape markup when Strings are stored Altered to store all global variables in one location Moved map instances into our global array Fixed typo with unscoped variable Moved timer variable into our global array Fixed a minor bug Merge remote-tracking branch 'wicketstuff/wicket-6.x' into wicket-6.x Cleaned up Travis config Fixed up post-merge issues Removed custom Travis configuration Removed custom Travis banner Cleaned up code, altered links in examples Andrea Del Bene (9): prevented default event behavior for stateless link Improved StatelessAjaxFormSubmitBehavior and StatelessAjaxSubmittingLink following the code of their stateful versions. porting of changes from master branch updated readme file improved test code Merge pull request #382 from openwide-java/update-serialized-page-size added sonatype snapshot repository fixed dependency on wrong Servlet version number trying to use the last java 6 compatible version of gae Martin Tzvetanov Grigorov (7): Build against Wicket 6.19.0-SNAPSHOT [travis] Enable caching for Maven repository [travis] Wrap the exported value in double quotes [travis] Revert to the version before PR #378 [select2] Update select2 to 3.5.2 [native-websockets-javax] Copy Wicket Native WebSockets Javax from Wicket 7.x to WicketStuff-6.x/jdk-1.7 Release 6.19.0 Martin Grigorov (2): Merge pull request #373 from simpuls/wicket-6.x Merge pull request #378 from cmiles74/wicket-6.x Guillaume Smet (1): [serializer-*] update serialized page size test in the serializer modules Mathias Born (1): New Feature to center a map with Geocode information Maxim Solodovnik (1): [select2] Make it possible to clear the input of Select2Choice and Select2MultiChoice (by @martin-g) klopfdreh (1): [HTML5] - CSS Shapes schoemer (1): CompoundRequestMapper: last registered mapper has highest priority Many thanks to all contributors ! The WicketStuff team -- Regards - Ernesto Reinaldo Barreiro -- Thanks and regards Madasamy
Re: Could not clear select2Choice component model value.
Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - 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 -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- Thanks and regards Madasamy
Re: Could not clear select2Choice component model value.
Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - 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 -- Thanks and regards Madasamy
AjaxLazyLoadPanel is block other page render while processing
We have using 6.6.0 in our application. In home page we using AjaxLazyLoadPanel to load the widgets data, It take long time to render the widget. When loading widget, if click the other page, the page is not rendered immediately. After completed AjaxLazyLoadPanel process then only the clicked page is render.The AjaxLazyLaodPanel is blocking my request. Hep me to solve this problem?.
Re: AjaxLazyLoadPanel is block other page render while processing
I am sorry. I have solved this problem to improve getData() performance. On Tue, Feb 11, 2014 at 9:36 AM, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks for your suggestion. But problem remains same. *My html code like * . . *div wicket:id=label/div* . . *My java code like below* Class FooPanel extends Panel { public FooPanel() { . . . add(createLabel()); add(createAjaaxTimeBehaviour()); } private Label createLabel() { label = new Label(label, Loading); label.setOutputMarkupId(true); return label; } private AbstractAjaxTimerBehavior createAjaxTimeBehaviour() { return new AbstractAjaxTimerBehavior(Duration.seconds(1)) { @Override protected void onTimer(AjaxRequestTarget target) { //This method to take few seconds to fetch data * int count = getData();if (unKnownCount = 0) { FooComponent fooComponent = new FooComponent(label.getId(), count); fooComponent.setOutputMarkupId(true); label.replaceWith(fooComponent); target.add(fooComponent);} else { target.add(label);}* } }; } } Added this panel in FooPage. If click foo page from any other page the foo page render immediately. If click any other page from FooPage it takes few seconds to take render the page. On Mon, Feb 10, 2014 at 4:37 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, See http://markmail.org/message/4gxbwbhoqojutox6 Martin Grigorov Wicket Training and Consulting On Mon, Feb 10, 2014 at 9:31 AM, MadasamySankarapandian madas...@mcruncher.com wrote: We have using 6.6.0 in our application. In home page we using AjaxLazyLoadPanel to load the widgets data, It take long time to render the widget. When loading widget, if click the other page, the page is not rendered immediately. After completed AjaxLazyLoadPanel process then only the clicked page is render.The AjaxLazyLaodPanel is blocking my request. Hep me to solve this problem?.