RE: How to get DropDownChoice value without commit form?
Override method wantOnSelectionChangedNotifications : dropDownChoice = new DropDownChoice...{ @Override protected boolean wantOnSelectionChangedNotifications() { return true; } @Override protected void onSelectionChanged(Object newSelection) { ... } -Heikki -Original Message- From: wch2001 [mailto:wch2...@hotmail.com] Sent: 30. joulukuuta 2008 9:59 To: users@wicket.apache.org Subject: How to get DropDownChoice value without commit form? Dear all, I have a project to have year dropdown choice (2008,2009, 2010 and so on), I need its value after it changed but b4 commit the form. How can i do ? thanks, Wch2001 -- View this message in context: http://www.nabble.com/How-to-get-DropDownChoice-value-without-commit-form--tp21214143p21214143.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Twenty Six Wicket Tricks
Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214357.html Sent from the Wicket - User 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: how Checkbox can be showed with checked when it value is matched?
it works for me, if its not working for you show the list your code or attach a quickstart. Regards Dipu On Tue, Dec 30, 2008 at 1:08 AM, wch2001 wch2...@hotmail.com wrote: Thank you a lot CheckBox(personItem.personReceiveEmailOnDeals, new PropertyModelBoolean(this,personItem.personReceiveEmailOnDeals)); it can not work, can we use PropertyModelBoolean ? thanks Dipu-3 wrote: why is it not working ? I tried and its working public class TestPage extends WebPage { private PersonItem personItem = new PersonItem(); public TestPage() { FormVoid form = new FormVoid(inform); add(form); CheckBox checkBoxPersonReceiveEmailOnDeals = new CheckBox(personItem.personReceiveEmailOnDeals, new PropertyModelBoolean(this,personItem.personReceiveEmailOnDeals)); form.add(checkBoxPersonReceiveEmailOnDeals); } private class PersonItem { private boolean personReceiveEmailOnDeals = true; public boolean isPersonReceiveEmailOnDeals() { return personReceiveEmailOnDeals; } public void setPersonReceiveEmailOnDeals(boolean personReceiveEmailOnDeals) { this.personReceiveEmailOnDeals = personReceiveEmailOnDeals; } } } Regards Dipu On Mon, Dec 29, 2008 at 9:46 AM, wch2001 wch2...@hotmail.com wrote: Dear all, CheckBox checkBoxPersonReceiveEmailOnDeals = new CheckBox(personItem.personReceiveEmailOnDeals, new PropertyModel(this, personItem.personReceiveEmailOnDeals)) ; Now personItem.personReceiveEmailOnDeals is true. but it also show it is not checked, how can i do ? Thank you for your help -- View this message in context: http://www.nabble.com/how-Checkbox-can-be-showed-with-%22checked%22-when-it-value-is-matched--tp21200883p21200883.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/how-Checkbox-can-be-showed-with-%22checked%22-when-it-value-is-matched--tp21200883p21211764.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
i will surely buy a copy Dipu On Tue, Dec 30, 2008 at 8:32 AM, Jonathan Locke jonathan.lo...@gmail.com wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214357.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Regarding DropdownChoice
Hi, I am using a dropdown list to display some values. When I am selection any one from the list it should be saved in the preferences. I want to get the value that I have selected from the list in some variable on the same page. Can anybody please give me the solution? Thanks and Regards, Nilesh N. More Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly prohibited. If you have received this electronic message in error please notify the sender by reply e-mail to and destroy the original message and all copies. Cybage has taken every reasonable precaution to minimize the risk of malicious content in the mail, but is not liable for any damage you may sustain as a result of any malicious content in this e-mail. You should carry out your own malicious content checks before opening the e-mail or attachment. www.cybage.com
Re: Twenty Six Wicket Tricks
Sounds interesting, although it would be nice if you could mention a trick or two such as to provide us with a little more info. I'm guessing its different from what you'd find in the wiki?! Casper Jonathan Locke wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214772.html Sent from the Wicket - User 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
optional DropDowns
Hi, I have a problem with an webform containing several dropdowns. Each dropdown is getting a (shared) object and one of the objects (int) properties as model. This way I can set the properties width and height of the object box. Now the drop downs are supposed to be optional... and when no item was chosen a default value should be applied. Not choosing an item from the dropdown and submitting the form resuts in an error saying that 'null' could not be set for the property of the model... How can I make that work? thank you for your help in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Regarding DropdownChoice
i think you have two options here 1. you can add an AjaxFormComponentUpdatingBehavior to the dropdown or 2. override wantOnSelectionChangedNotifications method of the dropdown choice first one as the name says is ajax based and second one will do roundtrip Dipu On Tue, Dec 30, 2008 at 9:20 AM, Nilesh More nm...@cybage.com wrote: Hi, I am using a dropdown list to display some values. When I am selection any one from the list it should be saved in the preferences. I want to get the value that I have selected from the list in some variable on the same page. Can anybody please give me the solution? Thanks and Regards, Nilesh N. More Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly prohibited. If you have received this electronic message in error please notify the sender by reply e-mail to and destroy the original message and all copies. Cybage has taken every reasonable precaution to minimize the risk of malicious content in the mail, but is not liable for any damage you may sustain as a result of any malicious content in this e-mail. You should carry out your own malicious content checks before opening the e-mail or attachment. www.cybage.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: optional DropDowns
Hi Björn You should probably either switch from int to Integer (which can be null) or provide an own values list which includes your default entry for example with value -1 (or customize the DropDownChoice to do that) Matt Björn Tietjens wrote: Hi, I have a problem with an webform containing several dropdowns. Each dropdown is getting a (shared) object and one of the objects (int) properties as model. This way I can set the properties width and height of the object box. Now the drop downs are supposed to be optional... and when no item was chosen a default value should be applied. Not choosing an item from the dropdown and submitting the form resuts in an error saying that 'null' could not be set for the property of the model... How can I make that work? thank you for your help in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- matthias.kel...@ergon.ch +41 44 268 83 98 Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich http://www.ergon.ch __ e r g o nsmart people - smart software smime.p7s Description: S/MIME Cryptographic Signature
Re: Wicket-contrib-accordion and Wicket-datetime YUI version clash?
Could be cool if we got a common place like jeremys jslib for this... Peter Neubauer wrote: Hi there, when using a DateTimeField together with Wicket-contrib-accordion, it seems my DateTimeField JS gets corrupted by the followoing header contributors: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleCivilOne - put it on the Map!/title link href=styles/styles.css rel=stylesheet type=text/css/ link href=images/app-icon.png rel=shortcut icon/ link href=images/app-icon.png rel=icon/ script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;/script script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;/script script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;/script script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;/script script type=text/javascript src=resources/org.wicketstuff.accordion.AccordionPanel/accordion-menu-v2.js/script link rel=stylesheet type=text/css href=resources/se.waylabs.locus.LocusBasePage/accordion-menu-v2.css / script type=text/javascript src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta-min.js/script script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript !--/*--![CDATA[/*!--*/ Wicket.Event.add(window, domready, function() { if (typeof wicketCalendarInits == 'undefined') { wicketCalendarInits = new Array(); wicketCalendarInitFinished = false; } Question here is - might it be that the yui-loader-beta-min.js is loading a different version from the more explicit loader in AccordionPanel.class, something along the lines public void renderHead(IHeaderResponse response) { response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;); response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;); response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;); response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;); response.renderJavascriptReference(JAVASCRIPT); response.renderCSSReference(STYLE); }; ? I that case, how would one avoid this? Cheers /peter Open Hearts, Open Minds, OpenCauses. GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - New Energy for Data - the Graph Database. http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
Interesting, what kind of topics will it cover? Jonathan Locke wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff-annotation and Wicket 1.4
Hi guys, Does someone already tried to use wicketstuff-annotation with Wicket 1.4? They say in the wicketstuff site that it depends on wicket 1.3.3 but isn't tested yet with 1.4. Gr. Hbiloo
Re: Twenty Six Wicket Tricks
Jonathan, We're finally starting work on a more advanced jWeekend Wicket course/workshop to complement our existing Wicket training so we would certainly look into buying several copies of such a book. Our Wicket courses have been running for 18 months and for much of that time we have been buying Martijn Eelco's http://manning.com/dashorst Wicket In Action (since the WiA MEAPs) as gifts for most attendees and also occasionally for our http://jweekend.co.uk/dev/LWUGReg/ London Wicket Event delegates (next event on Feb 4, BTW - registration page/details coming soon). Once we've reviewed the contents, we would certainly consider buying licences for the PDF of your new book for students attending our Wicket training. If you need reviewers, I am sure we can help with that here, and can no doubt also get some meaningful feedback to you from our more advanced London Wicket Event delegates if you like. Regards - Cemal http://www.jWeekend.co.uk jWeekend PS Is your JavaOne talk on Wicket? Jonathan Locke wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21215322.html Sent from the Wicket - User 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
ModalWindow not appearing in IE
ModalWindow can not appear in IE 6.x, but Firefox 3.x has no problem. In IE 6.x, when click show ModalWindow link, the server side code invoke, but the browser not show the modalwindow. ajax debug message detail as follow: INFO: focus removed from wicket-generated-id-120 INFO: focus set on showModal233 INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:2:homeTabs:panel:shopDetailPanel:wmcModalWindow:showModal2::IBehaviorListener:0:-1random=0.702769703404648 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (6568 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script script type=text/javascript src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css / script type=text/javascript src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta.js/script script type=text/javascript !--/*--![CDATA[/*!--*/ var e = Wicket.$('date44Dp'); if (e != null typeof(e.parentNode) != 'undefined' typeof(e.parentNode.parentNode != 'undefined')) e.parentNode.parentNode.removeChild(e.parentNode); /*--]^]^*//script /head]]/header-contributioncomponent id=modal231 ![CDATA[div id=modal231 style=display:none div id=content32 div style=margin: 1em This is panel content! p Date text field to demonstrate AJAX header contribution input id=date44 name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:date value= type=text size=8/ nbsp; resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif input name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:hours value= type=text size=2/nbsp;: input name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:minutes value= type=text size=2/ select name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:amOrPmChoice option selected=selected value=0AM/option option value=1PM/option /select /p /div /div /div]]/componentevaluate encoding=wicket1![CDATA[/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the License); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ if (typeof wicketCalendarInits == 'undefined') { wicketCalendarInits = new Array(); wicketCalendarInitFinished = false; } initdate44 = function() { Wicket.DateTime.init( { widgetId: date44, componentId: date44, calendarInit: { MONTHS_SHORT:[\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708]^,START_WEEKDAY:0,MONTHS_LONG:[\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708]^,iframe:false,WEEKDAYS_MEDIUM:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^,WEEKDAYS_1CHAR:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^,WEEKDAYS_LONG:[\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D]^,close:true,WEEKDAYS_SHORT:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^ }, datePattern: yy-M-d, alignWithIcon: true, fireChangeEvent: true, hideOnSelect: true }); }; if (wicketCalendarInitFinished) { // when a DatePicker is added via ajax, the loader is already finished, so // we call the init function directly. initdate44(); } else { // when page is rendered, all calendar components will be initialized
Re: optional DropDowns
Hi thank you for your help. I did switch from int to Integer and it works fine now. Cheers B Matthias Keller schrieb: Hi Björn You should probably either switch from int to Integer (which can be null) or provide an own values list which includes your default entry for example with value -1 (or customize the DropDownChoice to do that) Matt Björn Tietjens wrote: Hi, I have a problem with an webform containing several dropdowns. Each dropdown is getting a (shared) object and one of the objects (int) properties as model. This way I can set the properties width and height of the object box. Now the drop downs are supposed to be optional... and when no item was chosen a default value should be applied. Not choosing an item from the dropdown and submitting the form resuts in an error saying that 'null' could not be set for the property of the model... How can I make that work? thank you for your help in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
I can't wait for yet another great Wicket book. I will surly buy it. regarding tricks, using Modal window can be nice. Integrating Wicket with JS libs (If it's not a topic for a small book by itself). Cool stuff with Ajax. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214357.html Sent from the Wicket - User 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: ComponentResolver and CompoundPropertyModels
Just completing my last message... The code bellow actually works in the sense of adding the component to the form, but it doesn't work with compoundpropertymodels. I mean the value of the text field is never setted in the model. Ricardo Mayerhofer wrote: Hi all, I'm trying to autoAdd form components using componentResolver, but as far as I know it doesn't work nor is the recommended aproach: http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html#LifecycleofaWicketApplication-Rendering My intent is something like this: if ( componentTag.getName().equals( input ) ) { markupContainer.autoAdd( new TextField( componentTag.getId() ), markupStream ); } Is it posssible to acomplish this using wicket? Any input is appreciated. Thanks. -- View this message in context: http://www.nabble.com/ComponentResolver-and-CompoundPropertyModels-tp21209434p21216923.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
Does it have to be a book ? I do really like Igor's series at wicketinaction.com. Pros: the community feedback as comments. Cons: it is not profitable. El mar, 30-12-2008 a las 00:32 -0800, Jonathan Locke escribió: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketstuff-annotation and Wicket 1.4
I haven't tested it, but since it is in wicketstuff-core now, it is definitely compiling against 1.4. This also means that any unit tests in the project are also testing successfully against 1.4. So, that at least heightens your odds that it will work with 1.4, even though I can't comment on it's actual use with 1.4 PS - the artifact ID should be just annotation now. See: http://wicketstuff.org/maven/repository/org/wicketstuff/annotation/1.4-SNAPSHOT/ -- Jeremy Thomerson http://www.wickettraining.com On Tue, Dec 30, 2008 at 3:57 AM, Azzeddine Daddah waarhei...@gmail.comwrote: Hi guys, Does someone already tried to use wicketstuff-annotation with Wicket 1.4? They say in the wicketstuff site that it depends on wicket 1.3.3 but isn't tested yet with 1.4. Gr. Hbiloo
Re: ModalWindow not appearing in IE
Have you searched Nabble for past questions on this? Not sure if you'll find the answer, but you'll find an abundance of discussion and examples out there. http://www.nabble.com/Modal-window-not-appearing-in-IE-td21018938.html On Tue, Dec 30, 2008 at 3:54 AM, NHSoft.YHW nhsoft@gmail.com wrote: ModalWindow can not appear in IE 6.x, but Firefox 3.x has no problem. In IE 6.x, when click show ModalWindow link, the server side code invoke, but the browser not show the modalwindow. ajax debug message detail as follow: INFO: focus removed from wicket-generated-id-120 INFO: focus set on showModal233 INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:2:homeTabs:panel:shopDetailPanel:wmcModalWindow:showModal2::IBehaviorListener:0:-1random=0.702769703404648 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (6568 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution encoding=wicket1 ![CDATA[head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script script type=text/javascript src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script link rel=stylesheet type=text/css href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css / script type=text/javascript src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta.js/script script type=text/javascript !--/*--![CDATA[/*!--*/ var e = Wicket.$('date44Dp'); if (e != null typeof(e.parentNode) != 'undefined' typeof(e.parentNode.parentNode != 'undefined')) e.parentNode.parentNode.removeChild(e.parentNode); /*--]^]^*//script /head]]/header-contributioncomponent id=modal231 ![CDATA[div id=modal231 style=display:none div id=content32 div style=margin: 1em This is panel content! p Date text field to demonstrate AJAX header contribution input id=date44 name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:date value= type=text size=8/ nbsp; resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif input name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:hours value= type=text size=2/nbsp;: input name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:minutes value= type=text size=2/ select name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:amOrPmChoice option selected=selected value=0AM/option option value=1PM/option /select /p /div /div /div]]/componentevaluate encoding=wicket1![CDATA[/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the License); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ if (typeof wicketCalendarInits == 'undefined') { wicketCalendarInits = new Array(); wicketCalendarInitFinished = false; } initdate44 = function() { Wicket.DateTime.init( { widgetId: date44, componentId: date44, calendarInit: { MONTHS_SHORT:[\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708]^,START_WEEKDAY:0,MONTHS_LONG:[\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708]^,iframe:false,WEEKDAYS_MEDIUM:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^,WEEKDAYS_1CHAR:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^,WEEKDAYS_LONG:[\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D]^,close:true,WEEKDAYS_SHORT:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^ }, datePattern: yy-M-d,
How to call to a page via JavaScript
Hi, I would like to call to SomePage.html within my wicket project via a java script code. My project contains several pages and the navigation between the pages is done through a drop down menu (each drop down menu appears while hovering a tab-menu-panel). All popup menus are implemented using java script, and when the user clicks on one of the sub menu of the drop down menu I would like to direct him to some of my application page. A code snippet from the js looks like: js_menu_.addMenuItem(MyPageTitle,location=’MyPage.html’); If I put in the ‘location’ attribute a full URL, for example http://www.google.com then it works. But I would like to refer to an internal pages as I used to do using wicket:link but the last one is applicable only within html. Any idea how can I work around this? Or, Can I implement a (popup) drop down menu with wicket and listen to events just like it’s a BookmarkablePageLink. THANKS for any input! -- View this message in context: http://www.nabble.com/How-to-call-to-a-page-via-JavaScript-tp21217989p21217989.html Sent from the Wicket - User 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
different validations based on different submit button click
I have a foprm with several buttons representing actions , based on different action i want different validations so is there way where i can retrieve which submit button was clicked ? -- View this message in context: http://www.nabble.com/different-validations-based-on-different-submit-button-click-tp21218879p21218879.html Sent from the Wicket - User 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: different validations based on different submit button click
try form.findSubmittingButton() or better you can override onSubmit() method of each button regards dipu On Tue, Dec 30, 2008 at 3:53 PM, miro miroconn...@yahoo.com wrote: I have a foprm with several buttons representing actions , based on different action i want different validations so is there way where i can retrieve which submit button was clicked ? -- View this message in context: http://www.nabble.com/different-validations-based-on-different-submit-button-click-tp21218879p21218879.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
Thanks, I appreciate the offer to review. I will get back to you in some number of weeks. ;-) Yeah, the JavaOne talk I submitted is indeed on Wicket. Jon jWeekend wrote: Jonathan, We're finally starting work on a more advanced jWeekend Wicket course/workshop to complement our existing Wicket training so we would certainly look into buying several copies of such a book. Our Wicket courses have been running for 18 months and for much of that time we have been buying Martijn Eelco's http://manning.com/dashorst Wicket In Action (since the WiA MEAPs) as gifts for most attendees and also occasionally for our http://jweekend.co.uk/dev/LWUGReg/ London Wicket Event delegates (next event on Feb 4, BTW - registration page/details coming soon). Once we've reviewed the contents, we would certainly consider buying licences for the PDF of your new book for students attending our Wicket training. If you need reviewers, I am sure we can help with that here, and can no doubt also get some meaningful feedback to you from our more advanced London Wicket Event delegates if you like. Regards - Cemal http://www.jWeekend.co.uk jWeekend PS Is your JavaOne talk on Wicket? Jonathan Locke wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21218934.html Sent from the Wicket - User 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: How to access the AJAX transport.responseXML
Martin, the application provides the web page administrator the ability to assign styles to a web page by user group. For example, the visbility of certain fields or tabs will be displayed on an as need basis. These administered styles are stored in a database table. When a page is to be loaded, the stored styles are fetched and streamed to the page as XML or JSON. The responseXML is acquired; in the onSuccess function, the XML or JSON is read and the Javascript on-the-fly applies the styles. Martijn Dashorst wrote: What is the usecase for needing to acces the responseXML coming from Wicket? Martijn -- View this message in context: http://www.nabble.com/How-to-access-the-AJAX-transport.responseXMLtp21206061p21218950.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
I've already got a bit of most of that in there. Thanks. egolan74 wrote: I can't wait for yet another great Wicket book. I will surly buy it. regarding tricks, using Modal window can be nice. Integrating Wicket with JS libs (If it's not a topic for a small book by itself). Cool stuff with Ajax. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214357.html Sent from the Wicket - User 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 - Eyal Golan egola...@gmail.com Visit: JVDrums LinkedIn: LinkedIn -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21218958.html Sent from the Wicket - User 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: feedback message without a form
adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21218993.html Sent from the Wicket - User 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
DownloadLink, BIRT report
Hello.. How can create a download link on a webpage, that converts a BIRT report to excel format and downloads to client machine? Thank you. -- View this message in context: http://www.nabble.com/DownloadLink%2C-BIRT-report-tp21218997p21218997.html Sent from the Wicket - User 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
Contributing to Wicket - Client side form validation
Hi, We have been working on a small project to integrate http://yav.sourceforge.net/ YAV library with Wicket. It is javascript validation purely on the client side. YAV has a LGPL licence and is a sourceforge project. I know that we can use an Ajax Behavior to validate the form with the validators present on the server side, but this is to respond to one of our client needs and also to illustrate how easy it is to integrate an existing javascript library with Wicket. It has also some nice features like using in the javascript validation the same messages as the ones used by the Wicket application (default messages and user defined messages) We would like to contribute, if possible, this code (wicket-contrib / wicket-stuff) if people finds this interesting. But I am not sure what are the different steps for that. We where thinking making it a sourceforge or googlecode project, maybe it is the first step and then I could post the link to it on this forum. Everyone enjoy the last day(s) of this year :) Carl Azoury -- View this message in context: http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21219136.html Sent from the Wicket - User 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: feedback message without a form
Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21219219.html Sent from the Wicket - User 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: feedback message without a form
here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } miro wrote: yes jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21219279.html Sent from the Wicket - User 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: feedback message without a form
i have the feedback panel and i am able to display form validations , but when I add info to the page nothing is shown by the feedback panel here the code for adding info to my page public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21219394.html Sent from the Wicket - User 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: feedback message without a form
miro escreveu: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } Add the feedbackpanel to target. Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: feedback message without a form
try getSession().info(you info message); OK? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } miro wrote: yes jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21219482.html Sent from the Wicket - User 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: Contributing to Wicket - Client side form validation
Carl, This addresses a question that comes up on this list from time to time and knowing some of the people at Zenika you have probably developed this with, I am sure it will be a well thought out, robust and useful tool. It hopefully also gives us a pretext on which to get you over to London again for another talk at one of our upcoming London Wicket events! In terms of the actual validation, have you given any thought yet to how this can be done as DRY as possible wrt respecifying (equivalent/similar) validation at various layers including Wicket's, the ORM's, in business rules etc? Regards - Cemal http://www.jWeekend.co.uk jWeekend cazoury wrote: Hi, We have been working on a small project to integrate http://yav.sourceforge.net/ YAV library with Wicket. It is javascript validation purely on the client side. YAV has a LGPL licence and is a sourceforge project. I know that we can use an Ajax Behavior to validate the form with the validators present on the server side, but this is to respond to one of our client needs and also to illustrate how easy it is to integrate an existing javascript library with Wicket. It has also some nice features like using in the javascript validation the same messages as the ones used by the Wicket application (default messages and user defined messages) We would like to contribute, if possible, this code (wicket-contrib / wicket-stuff) if people finds this interesting. But I am not sure what are the different steps for that. We where thinking making it a sourceforge or googlecode project, maybe it is the first step and then I could post the link to it on this forum. Everyone enjoy the last day(s) of this year :) Carl Azoury -- View this message in context: http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21219589.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
i like those too. and i hope people keep blogging about wicket like that. it's nice to get the gist of how to do something that way and boost WIA in the process. however, the quality bar of chapters in twenty-six tricks will be higher and my goals for each trick are (i hope) considerably more rigorous and educational than a blog entry. they are: (1) to present a fully reusable, high-quality component suitable for including in your application directly and with no changes (i'm generally designing these tricks for reuse and extension) (2) to cohesively demonstrate and detail through discussion a range of design choices and patterns in the process (probably the more valuable part, as you will (hopefully) understand not only what it is that i've done, but why it's been done that way and not some other way). (3) to reuse tricks in building new tricks if it's mainly cost you are worried about, i haven't chosen a price yet, but it will obviously be less than WIA. and if you want to give feedback, i will need some reviewers and you're welcome to be one, although be warned that i'm not looking for casual feedback since this is a book project and not a blog. i'd want thorough and detailed comments on the code and text for several (say 5) chapters (which will take you hours, not minutes). in return for their work, each reviewer gets a free copy of the book. jon martin-g wrote: Does it have to be a book ? I do really like Igor's series at wicketinaction.com. Pros: the community feedback as comments. Cons: it is not profitable. El mar, 30-12-2008 a las 00:32 -0800, Jonathan Locke escribió: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21219849.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
I think that sounds like a wonderful idea. I've enjoyed WIA (as much as I've read so far) and would certainly purchase a follow-up book of Wicket tricks. Dane -Original Message- From: Jonathan Locke [mailto:jonathan.lo...@gmail.com] Sent: Tuesday, December 30, 2008 8:56 AM To: users@wicket.apache.org Subject: Re: Twenty Six Wicket Tricks i like those too. and i hope people keep blogging about wicket like that. it's nice to get the gist of how to do something that way and boost WIA in the process. however, the quality bar of chapters in twenty-six tricks will be higher and my goals for each trick are (i hope) considerably more rigorous and educational than a blog entry. they are: (1) to present a fully reusable, high-quality component suitable for including in your application directly and with no changes (i'm generally designing these tricks for reuse and extension) (2) to cohesively demonstrate and detail through discussion a range of design choices and patterns in the process (probably the more valuable part, as you will (hopefully) understand not only what it is that i've done, but why it's been done that way and not some other way). (3) to reuse tricks in building new tricks if it's mainly cost you are worried about, i haven't chosen a price yet, but it will obviously be less than WIA. and if you want to give feedback, i will need some reviewers and you're welcome to be one, although be warned that i'm not looking for casual feedback since this is a book project and not a blog. i'd want thorough and detailed comments on the code and text for several (say 5) chapters (which will take you hours, not minutes). in return for their work, each reviewer gets a free copy of the book. jon martin-g wrote: Does it have to be a book ? I do really like Igor's series at wicketinaction.com. Pros: the community feedback as comments. Cons: it is not profitable. El mar, 30-12-2008 a las 00:32 -0800, Jonathan Locke escribió: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21219849.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
Jonathan, I think that Wicket is missing a solid overview of the below form components, how they differ, how they overlap, and when to use each. Check, Checkbox, CheckGroup, CheckGroupSelector DropDownChoice (there are 3 wiki pages, but I'd like to draw out the overlap with RadioChoice and the role of IChoiceRenderer) Radio, RadioChoice, RadioGroup And of course: IChoiceRenderer. For example, I really don't know whether my above list is missing any components. If such a topic is not in the works for your book, I'll volunteer to put together a first pass at such a wiki page. Cheers, Scott On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
I'd like to review your Wicket tricks too. Regards Sven Jonathan Locke wrote: Thanks, I appreciate the offer to review. I will get back to you in some number of weeks. ;-) Yeah, the JavaOne talk I submitted is indeed on Wicket. Jon jWeekend wrote: Jonathan, We're finally starting work on a more advanced jWeekend Wicket course/workshop to complement our existing Wicket training so we would certainly look into buying several copies of such a book. Our Wicket courses have been running for 18 months and for much of that time we have been buying Martijn Eelco's http://manning.com/dashorst Wicket In Action (since the WiA MEAPs) as gifts for most attendees and also occasionally for our http://jweekend.co.uk/dev/LWUGReg/ London Wicket Event delegates (next event on Feb 4, BTW - registration page/details coming soon). Once we've reviewed the contents, we would certainly consider buying licences for the PDF of your new book for students attending our Wicket training. If you need reviewers, I am sure we can help with that here, and can no doubt also get some meaningful feedback to you from our more advanced London Wicket Event delegates if you like. Regards - Cemal http://www.jWeekend.co.uk jWeekend PS Is your JavaOne talk on Wicket? Jonathan Locke wrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21220309.html Sent from the Wicket - User 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: feedback message without a form
i tried that but no messge is displayed the message is displayed when the url is http://localhost:8080/audit/app/ and my current url is http://localhost:8080/audit/app/?wicket:interface=:6 jWeekend wrote: try getSession().info(you info message); OK? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } miro wrote: yes jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21220522.html Sent from the Wicket - User 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: Twenty Six Wicket Tricks
Jonathan Locke schrieb: I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). where´s the pre-order link ? ;) you write it, we buy it. -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E schae...@thomas-daily.de www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet redakt...@thomas-daily.de. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
well, if there's a reusable component in it somehow... i don't see how to approach that though, so maybe it's a wiki article. Scott Swank wrote: Jonathan, I think that Wicket is missing a solid overview of the below form components, how they differ, how they overlap, and when to use each. Check, Checkbox, CheckGroup, CheckGroupSelector DropDownChoice (there are 3 wiki pages, but I'd like to draw out the overlap with RadioChoice and the role of IChoiceRenderer) Radio, RadioChoice, RadioGroup And of course: IChoiceRenderer. For example, I really don't know whether my above list is missing any components. If such a topic is not in the works for your book, I'll volunteer to put together a first pass at such a wiki page. Cheers, Scott On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21220767.html Sent from the Wicket - User 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
DateTimeField Error and Question
Hi, I am using the org.apache.wicket.extensions.yui.calendar.DateTimeField 1. If I enter a date say 1.1.1955 in the textfield, the textfield strips ist to 01.01.55. The first time I click on the Calendar icon, the calendar shows the year 1955. From the second click on, the Calendar shows the wrong year 2055. a, How can I avoid this Error? b, How can I tell the textfield of the DateTiemField to show a 4 digit year? 2. The Calendar has two Arrow-Icons to increment and decrement the month. Is it possible to show a dropdown for the year inside the calendar? Regards Christoph
Re: Contributing to Wicket - Client side form validation
Carl, I think this project is very interesting. I was recently investigating on client side validation with wicket and could not find any pure client-side solution. I will be waiting for your link... David On Wed, Dec 31, 2008 at 12:10 PM, jWeekend jweekend_for...@cabouge.comwrote: Carl, This addresses a question that comes up on this list from time to time and knowing some of the people at Zenika you have probably developed this with, I am sure it will be a well thought out, robust and useful tool. It hopefully also gives us a pretext on which to get you over to London again for another talk at one of our upcoming London Wicket events! In terms of the actual validation, have you given any thought yet to how this can be done as DRY as possible wrt respecifying (equivalent/similar) validation at various layers including Wicket's, the ORM's, in business rules etc? Regards - Cemal http://www.jWeekend.co.uk jWeekend cazoury wrote: Hi, We have been working on a small project to integrate http://yav.sourceforge.net/ YAV library with Wicket. It is javascript validation purely on the client side. YAV has a LGPL licence and is a sourceforge project. I know that we can use an Ajax Behavior to validate the form with the validators present on the server side, but this is to respond to one of our client needs and also to illustrate how easy it is to integrate an existing javascript library with Wicket. It has also some nice features like using in the javascript validation the same messages as the ones used by the Wicket application (default messages and user defined messages) We would like to contribute, if possible, this code (wicket-contrib / wicket-stuff) if people finds this interesting. But I am not sure what are the different steps for that. We where thinking making it a sourceforge or googlecode project, maybe it is the first step and then I could post the link to it on this forum. Everyone enjoy the last day(s) of this year :) Carl Azoury -- View this message in context: http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21219589.html Sent from the Wicket - User 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: Contributing to Wicket - Client side form validation
Hi Carl, Yeah, Pure Javascript validation is something needed. I've been trying to integrate wicket with yav a couple of days ago . I think you contribution will be very interesting. Googlecode project is a good step. Azarias Tomás 2008/12/30 cazoury carl.azo...@zenika.com -- AT(R)
Re: Twenty Six Wicket Tricks
Check = detailed control of each check (you have to iterate over them to add more than one forexample in a listview) CheckBox = list of checks (not same as above) CheckGroup = Holds the model for checks Repeat above for radios. Dropdown = simple component There are also some ajax versions of above... It might just be me that have become blind to these things :) Of all the frameworks I work with, be it web, orm, log etc Wicket brings me the least trouble :) Happy new year :) Scott Swank wrote: Jonathan, I think that Wicket is missing a solid overview of the below form components, how they differ, how they overlap, and when to use each. Check, Checkbox, CheckGroup, CheckGroupSelector DropDownChoice (there are 3 wiki pages, but I'd like to draw out the overlap with RadioChoice and the role of IChoiceRenderer) Radio, RadioChoice, RadioGroup And of course: IChoiceRenderer. For example, I really don't know whether my above list is missing any components. If such a topic is not in the works for your book, I'll volunteer to put together a first pass at such a wiki page. Cheers, Scott On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Contributing to Wicket - Client side form validation
I like to keep my contributions in wicketstuff repo, and I think us wicketstuffers would be happy to have your project there .. But no matter what I think you should contribute the stuff you've done :) So if you want, just post your sourceforge nick to the dev list to get write permissions.. And I think your project should go into wicketstuff core, but jeremy can fill you in on that :) cazoury wrote: Hi, We have been working on a small project to integrate http://yav.sourceforge.net/ YAV library with Wicket. It is javascript validation purely on the client side. YAV has a LGPL licence and is a sourceforge project. I know that we can use an Ajax Behavior to validate the form with the validators present on the server side, but this is to respond to one of our client needs and also to illustrate how easy it is to integrate an existing javascript library with Wicket. It has also some nice features like using in the javascript validation the same messages as the ones used by the Wicket application (default messages and user defined messages) We would like to contribute, if possible, this code (wicket-contrib / wicket-stuff) if people finds this interesting. But I am not sure what are the different steps for that. We where thinking making it a sourceforge or googlecode project, maybe it is the first step and then I could post the link to it on this forum. Everyone enjoy the last day(s) of this year :) Carl Azoury - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
Thanks Nino. The problem is that there isn't any place on the wiki that pulls all of this together. Consequently I've seen aspects of this asked several times on the list. If I don't hear anything to the contrary, I'll assume that this material is in fact missing from the wiki and I'll add it. This is the best info I'm aware of on these components (excepting the good coverage of DropDownChoice on the wiki): http://www.wicket-library.com/wicket-examples/forminput/ Oh, and in my first pass I missed CheckBoxMultipleChoice. Select (from extensions) Scott On Tue, Dec 30, 2008 at 11:08 AM, Nino Martinez nino.martinez.w...@gmail.com wrote: Check = detailed control of each check (you have to iterate over them to add more than one forexample in a listview) CheckBox = list of checks (not same as above) CheckGroup = Holds the model for checks Repeat above for radios. Dropdown = simple component There are also some ajax versions of above... It might just be me that have become blind to these things :) Of all the frameworks I work with, be it web, orm, log etc Wicket brings me the least trouble :) Happy new year :) Scott Swank wrote: Jonathan, I think that Wicket is missing a solid overview of the below form components, how they differ, how they overlap, and when to use each. Check, Checkbox, CheckGroup, CheckGroupSelector DropDownChoice (there are 3 wiki pages, but I'd like to draw out the overlap with RadioChoice and the role of IChoiceRenderer) Radio, RadioChoice, RadioGroup And of course: IChoiceRenderer. For example, I really don't know whether my above list is missing any components. If such a topic is not in the works for your book, I'll volunteer to put together a first pass at such a wiki page. Cheers, Scott On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: feedback message without a form
Have you tried without redirecting to the response page? miro wrote: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } miro wrote: yes jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21222096.html Sent from the Wicket - User 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: Wicket-contrib-accordion and Wicket-datetime YUI version clash?
Hi there, now, updating the wicket-contrib-accordion YUI version to 2.4.1, the one used in wicket-datetime, is solving the problem, here is the patch! Index: src/main/java/org/wicketstuff/accordion/AccordionPanel.java === --- src/main/java/org/wicketstuff/accordion/AccordionPanel.java (revision 4542) +++ src/main/java/org/wicketstuff/accordion/AccordionPanel.java (working copy) @@ -60,13 +60,13 @@ public void renderHead(IHeaderResponse response) { response - .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;); + .renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/yahoo/yahoo.js;); response - .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;); + .renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/event/event.js;); response - .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;); + .renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/dom/dom.js;); response - .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;); + .renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/animation/animation.js;); response.renderJavascriptReference(JAVASCRIPT); response.renderCSSReference(STYLE); }; /peter Open Hearts, Open Minds, OpenCauses. GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - New Energy for Data - the Graph Database. http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org- New Energy for Java - Domain Driven Development. On Mon, Dec 29, 2008 at 10:13 PM, Peter Neubauer peter.neuba...@jayway.se wrote: Hi there, when using a DateTimeField together with Wicket-contrib-accordion, it seems my DateTimeField JS gets corrupted by the followoing header contributors: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleCivilOne - put it on the Map!/title link href=styles/styles.css rel=stylesheet type=text/css/ link href=images/app-icon.png rel=shortcut icon/ link href=images/app-icon.png rel=icon/ script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;/script script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;/script script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;/script script type=text/javascript src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;/script script type=text/javascript src=resources/org.wicketstuff.accordion.AccordionPanel/accordion-menu-v2.js/script link rel=stylesheet type=text/css href=resources/se.waylabs.locus.LocusBasePage/accordion-menu-v2.css / script type=text/javascript src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta-min.js/script script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript !--/*--![CDATA[/*!--*/ Wicket.Event.add(window, domready, function() { if (typeof wicketCalendarInits == 'undefined') { wicketCalendarInits = new Array(); wicketCalendarInitFinished = false; } Question here is - might it be that the yui-loader-beta-min.js is loading a different version from the more explicit loader in AccordionPanel.class, something along the lines public void renderHead(IHeaderResponse response) { response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;); response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;); response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;); response .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;); response.renderJavascriptReference(JAVASCRIPT); response.renderCSSReference(STYLE); }; ? I that case, how would one avoid this? Cheers /peter Open Hearts, Open Minds,
Re: Twenty Six Wicket Tricks
NP, yeah but anyhow you have your point. If it gets asked a lot then the WIKI needs it :) Scott Swank wrote: Thanks Nino. The problem is that there isn't any place on the wiki that pulls all of this together. Consequently I've seen aspects of this asked several times on the list. If I don't hear anything to the contrary, I'll assume that this material is in fact missing from the wiki and I'll add it. This is the best info I'm aware of on these components (excepting the good coverage of DropDownChoice on the wiki): http://www.wicket-library.com/wicket-examples/forminput/ Oh, and in my first pass I missed CheckBoxMultipleChoice. Select (from extensions) Scott On Tue, Dec 30, 2008 at 11:08 AM, Nino Martinez nino.martinez.w...@gmail.com wrote: Check = detailed control of each check (you have to iterate over them to add more than one forexample in a listview) CheckBox = list of checks (not same as above) CheckGroup = Holds the model for checks Repeat above for radios. Dropdown = simple component There are also some ajax versions of above... It might just be me that have become blind to these things :) Of all the frameworks I work with, be it web, orm, log etc Wicket brings me the least trouble :) Happy new year :) Scott Swank wrote: Jonathan, I think that Wicket is missing a solid overview of the below form components, how they differ, how they overlap, and when to use each. Check, Checkbox, CheckGroup, CheckGroupSelector DropDownChoice (there are 3 wiki pages, but I'd like to draw out the overlap with RadioChoice and the role of IChoiceRenderer) Radio, RadioChoice, RadioGroup And of course: IChoiceRenderer. For example, I really don't know whether my above list is missing any components. If such a topic is not in the works for your book, I'll volunteer to put together a first pass at such a wiki page. Cheers, Scott On Tue, Dec 30, 2008 at 10:32 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
Jon, I would also offer to review for you, even understanding your rigorous requirements :) That would be a privilege if you have the need. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Dec 30, 2008 at 10:55 AM, Jonathan Locke jonathan.lo...@gmail.comwrote: i like those too. and i hope people keep blogging about wicket like that. it's nice to get the gist of how to do something that way and boost WIA in the process. however, the quality bar of chapters in twenty-six tricks will be higher and my goals for each trick are (i hope) considerably more rigorous and educational than a blog entry. they are: (1) to present a fully reusable, high-quality component suitable for including in your application directly and with no changes (i'm generally designing these tricks for reuse and extension) (2) to cohesively demonstrate and detail through discussion a range of design choices and patterns in the process (probably the more valuable part, as you will (hopefully) understand not only what it is that i've done, but why it's been done that way and not some other way). (3) to reuse tricks in building new tricks if it's mainly cost you are worried about, i haven't chosen a price yet, but it will obviously be less than WIA. and if you want to give feedback, i will need some reviewers and you're welcome to be one, although be warned that i'm not looking for casual feedback since this is a book project and not a blog. i'd want thorough and detailed comments on the code and text for several (say 5) chapters (which will take you hours, not minutes). in return for their work, each reviewer gets a free copy of the book. jon martin-g wrote: Does it have to be a book ? I do really like Igor's series at wicketinaction.com. Pros: the community feedback as comments. Cons: it is not profitable. El mar, 30-12-2008 a las 00:32 -0800, Jonathan Locke escribió: Well, over the break here I've started something I swore I would never do again (well, two things, if you include the JavaOne talk I'm working on). I'm writing a (hopefully relatively short) book. It's called Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z) demonstrates something that people typically want to do and in the process builds a reusable and educational component. I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know. I'd also be interested in getting some idea how many people would be interested in this book (would provide some fuel for me to get it done). It does not cover any of the same ground as Wicket in Action (which you should buy if you have not already!), BTW. It's more of a companion to that book. Happy Holidays! Best, Jonathan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21219849.html Sent from the Wicket - User 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: Contributing to Wicket - Client side form validation
Thank you every one for your answers and interests on the project. I will be very happy for the project to go on Wicketstuff repo. My nick on sourceforge is : cazoury, I will post that on the dev list. Hopefully everything will be checked in before the end of the week. In terms of the actual validation, have you given any thought yet to how this can be done as DRY as possible wrt respecifying (equivalent/similar) validation at various layers including Wicket's, the ORM's, in business rules etc? for the DRY principle we only take into account the validators defined on the form components. Nothing else for the moment. They are some Validators in Wicket that are not available in YAV and the contrary. Maybe a next step will be to add them on the YAV side so all the default Wicket validators can be taken into account. But first, the checkin of the code :) Nino Martinez-2 wrote: I like to keep my contributions in wicketstuff repo, and I think us wicketstuffers would be happy to have your project there .. But no matter what I think you should contribute the stuff you've done :) So if you want, just post your sourceforge nick to the dev list to get write permissions.. And I think your project should go into wicketstuff core, but jeremy can fill you in on that :) cazoury wrote: Hi, We have been working on a small project to integrate http://yav.sourceforge.net/ YAV library with Wicket. It is javascript validation purely on the client side. YAV has a LGPL licence and is a sourceforge project. I know that we can use an Ajax Behavior to validate the form with the validators present on the server side, but this is to respond to one of our client needs and also to illustrate how easy it is to integrate an existing javascript library with Wicket. It has also some nice features like using in the javascript validation the same messages as the ones used by the Wicket application (default messages and user defined messages) We would like to contribute, if possible, this code (wicket-contrib / wicket-stuff) if people finds this interesting. But I am not sure what are the different steps for that. We where thinking making it a sourceforge or googlecode project, maybe it is the first step and then I could post the link to it on this forum. Everyone enjoy the last day(s) of this year :) Carl Azoury - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21223881.html Sent from the Wicket - User 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
any better at dealing with Image in DataTable
Running into the same issue as seen in: http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg03706.html where you try to put an Image in a DataTable and get Component cell must be applied to a tag of type 'img', not 'span wicket:id=cell' (line 0, column 0) Is there a simpler way of handling this thats emerged in the 3 years since, or do you still need at least an inner class with a standalone HTML file? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: any better at dealing with Image in DataTable
Kirk Israel wrote: Running into the same issue as seen in: http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg03706.html where you try to put an Image in a DataTable and get Component cell must be applied to a tag of type 'img', not 'span wicket:id=cell' (line 0, column 0) Is there a simpler way of handling this thats emerged in the 3 years since, or do you still need at least an inner class with a standalone HTML file? You may use a fragment instead of new HTML file. Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: feedback message without a form
Refresh feedback panel after setting the message: final FeedbackPanel feedback = new FeedbackPanel (feedback); feedback.setOutputMarkupId(true); add(feedback); public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); target.addComponent(feedback); return; } ... -Heikki -Original Message- From: Vance Fellers [mailto:nvfellers...@yahoo.com] Sent: 30. joulukuuta 2008 21:38 To: users@wicket.apache.org Subject: Re: feedback message without a form Have you tried without redirecting to the response page? miro wrote: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } miro wrote: yes jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21222096.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twenty Six Wicket Tricks
Jonathan Locke wrote: I've got 13 tricks coded up now and ideas for a handful more, but if there are any requests out there, please let me know Perhaps something about handling URLs. Like writing your own url coding strategy and how to mount pages with URL that have some variable before the fixed parts (like /{language}/products/{productid}). Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org