Re: Customized Navigation Toolbar not getting added to the table.
Hi, Check the produced markup. On Wed, Apr 9, 2014 at 8:56 AM, chathuraka.waas chathuraka.w...@gmail.comwrote: hi, i'm trying to add a navigation bar to my table. but its not getting displayed. I have a customized data table and i'm trying to add my customized navigation bar to it. Here's my code. Please note this NavigationToolbar class is not the one in API. in Customized tabel. addBottomToolbar(new NavigationToolbar(this)); customized navigation bar. public class NavigationToolbar extends AbstractToolbar { private static final long serialVersionUID = 6646820801010951840L; public NavigationToolbar(final DataTable?,Object table) { super(table); add(new NavigatorLabel(navigatorLabel, table)); add(new Navigator(navigator, (DataTable?,Object) table) { private static final long serialVersionUID = 1541054336938996456L; @Override protected void onAjaxEvent(AjaxRequestTarget target) { target.add(table); } } wicket:panel xmlns:wicket=http://wicket.apache.org/; div class=fan-nav The toolbars are table rows either in the thead or the tfoot. In both cases they have to use tr as the root/main HTML element, not div as you do. 1-3 of 3 /div /wicket:panel what am i doing wrong here. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297.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: Customized Navigation Toolbar not getting added to the table.
Hi Martin, my markup in the customizedtable.html is like this, div class=bottom-toolbar wicket:container wicket:id=bottomToolbars class=fan-nav/wicket:container /div but in runtime it doesnt create any markup. when i inspected with firebug it shows as, div class=bottom-toolbar /div regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665299.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: Customized Navigation Toolbar not getting added to the table.
OK. Now fix it as I suggested - try with trtd.../td/tr. You cannot put a div directly in table. Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 9:33 AM, chathuraka.waas chathuraka.w...@gmail.comwrote: Hi Martin, my markup in the customizedtable.html is like this, div class=bottom-toolbar wicket:container wicket:id=bottomToolbars class=fan-nav/wicket:container /div but in runtime it doesnt create any markup. when i inspected with firebug it shows as, div class=bottom-toolbar /div regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665299.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: Re: After copy war under C:\Tomcat7.0\webapps ,my Tomcat start-up log popup errors.Please help me figure this problem out, 3x.
Hi, Yes, it deploys fine. I just updated http://www.wicket-library.com/wicket-examples-6.0.x/index.html to 6.14.0 and all demo apps work fine. Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 9:18 AM, 003210 sunya...@raisecom.com wrote: Hi,there, my problem still does not solved (the 6.14.0 exam war could not work under Tomcat 7). Have you try on your own enviroment , and wheither the 6.14.0 exam war work well or not ? waiting for responds. -- 软件七部 孙雅斌 分机:58963399-5244 *From:* 003210 sunya...@raisecom.com *Date:* 2014-04-08 15:23 *To:* Martin Grigorov mgrigo...@apache.org *CC:* users users@wicket.apache.org *Subject:* Re: Re: After copy war under C:\Tomcat7.0\webapps ,my Tomcat start-up log popup errors.Please help me figure this problem out, 3x. I downloaded the war and copied it directly to the C:\Tomcat7.0\webapps . I‘m quit sure i did not modify any part of the .war . And could you test the war on your enviroment to confirm if my problem is normal ? -- 软件七部 孙雅斌 分机:58963399-5244 *From:* Martin Grigorov mgrigo...@apache.org *Date:* 2014-04-08 14:57 *To:* 孙雅斌 sunya...@raisecom.com *CC:* users users@wicket.apache.org *Subject:* Re: After copy war under C:\Tomcat7.0\webapps ,my Tomcat start-up log popup errors.Please help me figure this problem out, 3x. Hi, The problem is interesting. The logs say that all dependency injection libraries (Guice, CDI and Spring) are not available ... Have you modified somehow the .war file before pasting it at \webapps\ folder ? The .war file brings these libs in WEB-INF/lib/ folder. Martin Grigorov Wicket Training and Consulting On Tue, Apr 8, 2014 at 6:54 AM, 003210 sunya...@raisecom.com wrote: there again, I'v download the wicket-examples-6.14.0.war successfully ,but after I copy this war under C:\Tomcat7.0\webapps ,my Tomcat start-up log popup errors :see attached file, then my war could not response IE requests . Please help me figure this problem out, 3x. -- 软件七部 孙雅斌 分机:58963399-5244 *From:* Martin Grigorov mgrigo...@apache.org *Date:* 2014-04-04 21:00 *To:* users@wicket.apache.org; 孙雅斌 sunya...@raisecom.com *Subject:* Re: Could you tell me the 6.14.0 wicket examples zip download url available today. Hi, http://central.maven.org/maven2/org/apache/wicket/wicket-examples/6.14.0/ Martin Grigorov Wicket Training and Consulting On Fri, Apr 4, 2014 at 4:38 AM, 003210 sunya...@raisecom.com wrote: Hi, I'v been told that for Wicket v1.2.4 examples, users can download by url 'http : //wicket.sourceforge.net/Download.html'. But today the url 'http : //wicket.sourceforge.net/Download.html' is not available. Could you tell me the 6.14.0 wicket examples zip download url available today. thanks. -- sunnybean 010-58963399-5244
Re: Customized Navigation Toolbar not getting added to the table.
I feel like having a deja vu On Wed, Apr 9, 2014 at 8:37 AM, Martin Grigorov mgrigo...@apache.orgwrote: OK. Now fix it as I suggested - try with trtd.../td/tr. You cannot put a div directly in table. Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 9:33 AM, chathuraka.waas chathuraka.w...@gmail.comwrote: Hi Martin, my markup in the customizedtable.html is like this, div class=bottom-toolbar wicket:container wicket:id=bottomToolbars class=fan-nav/wicket:container /div but in runtime it doesnt create any markup. when i inspected with firebug it shows as, div class=bottom-toolbar /div regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665299.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 -- Regards - Ernesto Reinaldo Barreiro
Re: Customized Navigation Toolbar not getting added to the table.
hi martin, updated the markup as u mentioned, tfoot /tfoot but its still not working. its generating the following, tfoot /tfoot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665303.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: Customized Navigation Toolbar not getting added to the table.
Hi, I recommend you to read a book on HTML. It will save you a lot of time in the future. Ernesto's deja vu is this mail thread - http://markmail.org/message/4xkyroiyqt6l4thg. Here you have problems with what HTML is needed to construct an HTML table that a browser will render properly. Please re-read it. Don't put tfoot in your markup. Just wrap the initial markup (the one with the div) with trtd [HERE IS THE DIV] /td/tr. Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 9:48 AM, chathuraka.waas chathuraka.w...@gmail.comwrote: hi martin, updated the markup as u mentioned, tfoot /tfoot but its still not working. its generating the following, tfoot /tfoot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665303.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
Error loading jQuery JS in wicket 6.7.0 (IE)
Hello, I would like to know if someone can explain my problem : - In production, when my application use wicket 6.7.0 everything is OK and no error - In production, when my appication use wicket 6.7.0 (6.12.0 actually) everything is KO because Javascript are not loaded. In fact i have lots of JS errors in IE console like that : Message : Acces forbidden Ligne : 4 Caractère : 12122 Code : 0 URI : http://XXX:5000/my-application/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.10.1.min-ver-33D85132F0154466FC017DD05111873D.js; I know this problem is really strange and i can't explain it :( Someone knows if something has changed in JS loading/access after wicket 6.7.0 ? Thanks a lot. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-loading-jQuery-JS-in-wicket-6-7-0-IE-tp4665308.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: Customized Navigation Toolbar not getting added to the table.
Hi Martin, Thanks for your advices and help on this matter. as you suggessted i added the following markup. wicket:container wicket:id=topToolbars/wicket:container [cell] div class=bottom-toolbar wicket:container wicket:id=bottomToolbars class=fan-nav/wicket:container /div but it still doesnt work. this is what i get it in run time for the bottom-toolbar. div class=bottom-toolbar /div and i also noticed that top toolbar also doesnt get added. im' using this code to add the table row header values. addTopToolbar(new AjaxFallbackHeadersToolbar(this, dataProvider)); i'm not sure where has i got it wrong. Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665310.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: Error loading jQuery JS in wicket 6.7.0 (IE)
Hi, There are no changes in the way JS resources are loaded. jQuery has been updated in 6.9.0 to a newer version (from 1.8.3 to 1.10.1, I think) but this doesn't look like what breaks in your application. What is the error code when requesting the JS file ? Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 11:13 AM, dmalescot d.males...@gmail.com wrote: Hello, I would like to know if someone can explain my problem : - In production, when my application use wicket 6.7.0 everything is OK and no error - In production, when my appication use wicket 6.7.0 (6.12.0 actually) everything is KO because Javascript are not loaded. In fact i have lots of JS errors in IE console like that : Message : Acces forbidden Ligne : 4 Caractère : 12122 Code : 0 URI : http://XXX:5000/my-application/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.10.1.min-ver-33D85132F0154466FC017DD05111873D.js I know this problem is really strange and i can't explain it :( Someone knows if something has changed in JS loading/access after wicket 6.7.0 ? Thanks a lot. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-loading-jQuery-JS-in-wicket-6-7-0-IE-tp4665308.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: Error loading jQuery JS in wicket 6.7.0 (IE)
I think someone mentioned having issues with jQuery 1.10.1 on IE. Newer versions of Wicket use jQuery 1.11.0 You can also setup a custom version with app.getJavaScriptLibrarySettings().setJQueryReference(someReference) Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 12:31 PM, dmalescot d.males...@gmail.com wrote: thank for your quick answer. So the error is access denied on ie (works on FF). After some search on internet, it seems to be this problem : http://stackoverflow.com/questions/17370482/preventing-script5-access-is-denied-error-in-ie?rq=1 http://bugs.jquery.com/ticket/13980 So I think it's a 1.10.1 bug on IE. I do a quick test : Create a index.html file on local which is loading a wicket application in an iFrame : - OK on FF - KO on IE (no css, no javascript) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-loading-jQuery-JS-in-wicket-6-7-0-IE-tp4665308p4665313.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
use AjaxFormChoiceComponentUpdatingBehavior to submit form
Hello, I know it's possible to use this components: - AjaxFormChoiceComponentUpdatingBehavior: on choices/groups to perform action when value is chosen. Only the value of the current form component is send to the form bean on server side. - AjaxFormSubmitBehavior: can be used on component to send values of all form fields to server. But can not be used on choices/groups. Is it possible to combine those 2? Thanks ! Kind Regards, Marieke Vandamme -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/use-AjaxFormChoiceComponentUpdatingBehavior-to-submit-form-tp4665315.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: use AjaxFormChoiceComponentUpdatingBehavior to submit form
Hi, What exactly is the problem with using AjaxFormSubmitBehavior ? It should collect the name/value pairs of all form elements and send them to the server. Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 2:45 PM, Marieke Vandamme marieke.vanda...@tvh.bewrote: Hello, I know it's possible to use this components: - AjaxFormChoiceComponentUpdatingBehavior: on choices/groups to perform action when value is chosen. Only the value of the current form component is send to the form bean on server side. - AjaxFormSubmitBehavior: can be used on component to send values of all form fields to server. But can not be used on choices/groups. Is it possible to combine those 2? Thanks ! Kind Regards, Marieke Vandamme -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/use-AjaxFormChoiceComponentUpdatingBehavior-to-submit-form-tp4665315.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: use AjaxFormChoiceComponentUpdatingBehavior to submit form
Hi, It can not be used on a RadioGroup. When I tested it on RadioGroup, the onsubmit function in AjaxFormSubmitBehavior isn't called. I know changed it so that the AjaxFormSubmitBehavior is added to each Radio, but I thought there might be another solution. Kinds Regards, Marieke Vandamme. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/use-AjaxFormChoiceComponentUpdatingBehavior-to-submit-form-tp4665315p4665317.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: use AjaxFormChoiceComponentUpdatingBehavior to submit form
Please create a quickstart app and attach it to JIRA and we will take a look. Thanks! Martin Grigorov Wicket Training and Consulting On Wed, Apr 9, 2014 at 4:00 PM, Marieke Vandamme marieke.vanda...@tvh.bewrote: Hi, It can not be used on a RadioGroup. When I tested it on RadioGroup, the onsubmit function in AjaxFormSubmitBehavior isn't called. I know changed it so that the AjaxFormSubmitBehavior is added to each Radio, but I thought there might be another solution. Kinds Regards, Marieke Vandamme. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/use-AjaxFormChoiceComponentUpdatingBehavior-to-submit-form-tp4665315p4665317.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
Modal Popup JS errors on close
We have a modal popup in an app that uses Wicket 1.4.7. We recently upgraded out first app to Wicket 6.8, and we want to add a modal popup to it. However, and it comes up okay, but on close, I get a JS error. Firebug says: this.content.contentWindow.Wicket.Window is undefined on line 785 of modal-ver-[a long number].js. I'm presuming the number is dynamic and meaningless on that. Note that we do replace the jQuery inside wicket with 1.8.2 in the application object. But everything works until this point, so I don't particularly have any reason to suspect it. Here's the part of the head where the script includes are being done. meta charset=utf-8 / titleCopy Sharing Request To Other Assets In Same Case - 04192011-02/title link rel=stylesheet href=/EquitableSharing/js/extjs/resources/css/ext-all.css link rel=stylesheet href=/EquitableSharing/css/html5reset.css / link rel=stylesheet href=/EquitableSharing/css/ui.all.css / link rel=stylesheet href=/EquitableSharing/css/print.css media=print / -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-Popup-JS-errors-on-close-tp4665319.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: Modal Popup JS errors on close
Just discovered that this happens in Firefox, not in IE, and even then only when firebug is open. So maybe not a real problem? But it is a little alarming to me that I get it even then. I'd still like to solve it, but obviously, that makes it less important. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-Popup-JS-errors-on-close-tp4665319p4665320.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
Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice
I gave a talk at ApacheCon NA yesterday on Croquet. It is a combination of Wicket, Jetty, Hibernate, and Guice to make it super-easy to start writing Wicket code almost immediately, instead of spending time configuring everything. Slides: https://docs.google.com/presentation/d/1m3jdbpYoSBOCPz8Wes9mPvhf8TLp_3dndj_gW08iFL8/ Code: https://github.com/metrink/croquet Docs: http://croquet.metrink.com Thanks... Bill-
Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice
I have attended, it was fun :) On Wed, Apr 9, 2014 at 10:51 AM, William Speirs wspe...@apache.org wrote: I gave a talk at ApacheCon NA yesterday on Croquet. It is a combination of Wicket, Jetty, Hibernate, and Guice to make it super-easy to start writing Wicket code almost immediately, instead of spending time configuring everything. Slides: https://docs.google.com/presentation/d/1m3jdbpYoSBOCPz8Wes9mPvhf8TLp_3dndj_gW08iFL8/ Code: https://github.com/metrink/croquet Docs: http://croquet.metrink.com Thanks... Bill- -- WBR Maxim aka solomax
Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice
Looks like awesome work - very clean page design and excellent documentation, and I'm sure that the quality extends to the code as well. I'll definitely be looking into this for my next project, if not porting some of my current ones. When using Croquet, how easy would it be to drop in a different JPA implementation in place of Hibernate? Best, Chris On Wed, Apr 9, 2014 at 12:51 PM, William Speirs wspe...@apache.org wrote: I gave a talk at ApacheCon NA yesterday on Croquet. It is a combination of Wicket, Jetty, Hibernate, and Guice to make it super-easy to start writing Wicket code almost immediately, instead of spending time configuring everything. Slides: https://docs.google.com/presentation/d/1m3jdbpYoSBOCPz8Wes9mPvhf8TLp_3dndj_gW08iFL8/ Code: https://github.com/metrink/croquet Docs: http://croquet.metrink.com Thanks... Bill-
Re: Customized Navigation Toolbar not getting added to the table.
Hi, was able to resolve the issue by adding following markup. tfoot wicket:id=bottomToolbars wicket:container wicket:id=toolbars/wicket:container /tfoot div wicket:id=navigatorFirst | Previous | Next NavigationToolbar.html# | Last NavigationToolbar.html# /div div wicket:id=navigatorLabel[navigator-label]/div Thanks for all the help guys. Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-Navigation-Toolbar-not-getting-added-to-the-table-tp4665297p4665326.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