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
Re: AjaxFallbackDefaultDataTable problem
Hi thanx for your help. I just forgot to update the datasource for the table before calling "modelChanged()" Cheers B James Carman schrieb: Are you using an AjaxLink to do the delete? If so, are you adding the table to the ajax request target, so that it gets updated? On Mon, Dec 29, 2008 at 10:15 AM, Björn-Peter Tietjens wrote: Hi there, I would need some help on the AjaxFallbackDefaultDataTable please. I am using this AjaxFallbackDefaultDataTable to display entries from a database using hibernate and a SortableDataProvider. I inserted a Action column to delete entries. My ActionPanel adds a link and overwrites its onClick event, deleting the row from the database, BUT now the table on my page does not update until i completely reload the whole page. I am doing a ajaxFallbackDefaultDataTable.modelChanged(); but that doesnt do the job either. What do I need to ? Thank you for your help! Cheers Björn - 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: Modal window not appearing in IE
here is ajax debug message, i found that there has a error var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className="w_blue"; settings.width="460"; settings.height="500"; settings.resizable=true; settings.element = element; settings.cookieId="mwCreateOrder"; settings.mask="semi-transparent"; settings.onClose = function() { var wcall=wicketAjaxGet('?wicket:interface=:2:wmcShopBox:shopBox:wmcCreateOrder:mwCreateOrder::IBehaviorListener:1:-1',null,null, function() {return Wicket.$('mwCreateOrder72') != null;}.bind(this)); }; settings.onCloseButton = function() { var wcall=wicketAjaxGet('?wicket:interface=:2:wmcShopBox:shopBox:wmcCreateOrder:mwCreateOrder::IBehaviorListener:0:-1',null,null, function() {return Wicket.$('mwCreateOrder72') != null;}.bind(this));return !wcall;}; Wicket.Window.create(settings).show(); ]]> INFO: Response parsed. Now invoking steps... ERROR: Exception evaluating javascript: [object Error] INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: last focus id was not set INFO: focus set on toCreateOrder74 INFO: focus removed from toCreateOrder74 Martijn Dashorst wrote: > > It would help if you post some output of for example the > wicket-ajax-debug window, or the firefox console. With the information > you have given thus far we can't help you. > > Martijn > > On Mon, Dec 15, 2008 at 10:51 PM, ecornett > wrote: >> >> I have searched everywhere for an answer to this Wicket question with no >> luck. >> >> >> Martijn Dashorst wrote: >>> >>> As you come through nabble, I trust you have read and understood the >>> text that is shown prominently above the forum? >>> Before posting, please read "How to ask questions the smart way" [1] and answer these questions for yourself: * Did you check out our live examples * read our wiki * search using google If these fail to provide an answer, posting to the users list is appropriate. Be sure to include full stack traces and code. Did we mention that you read "How to ask questions the smart way" [1] before posting? >>> >>> Martijn >>> >>> [1] http://www.catb.org/~esr/faqs/smart-questions.html >>> >>> On Mon, Dec 15, 2008 at 7:18 PM, ecornett >>> wrote: Has anyone else had trouble with modal windows appearing in Firefox but not IE and if so, what is a good solution? I can go into more details if necessary. -- View this message in context: http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.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 >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>> Apache Wicket 1.3.4 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> - >>> 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/Modal-window-not-appearing-in-IE-tp21018938p21022867.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 >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > 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/Modal-window-not-appearing-in-IE-tp21018938p21213022.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
[GMAP2] Map can not display in AjaxTabbedPanel
first, sorry for my poor englist. in normal page, GMAP can display well, but when add GMAP AjaxTabbedPanel, when click tab, the GMAP can not display(can not see any map image). if default tabindex of the Page is GMAP's Tab, it displays well. attachfile is example code. I have another question about GIcon usage: I try to set GIcon in GMarkerOptions, but after set GIcon, GMarker can not display, it looks my icon resource's problem, where GIcon image place. now i place GIcon image page class path. thanks. gmap2-examples.rar Description: application/download - 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?
Thank you a lot CheckBox("personItem.personReceiveEmailOnDeals", new PropertyModel(this,"personItem.personReceiveEmailOnDeals")); it can not work, can we use PropertyModel ? 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() > { > > Form form = new Form("inform"); > add(form); > > CheckBox checkBoxPersonReceiveEmailOnDeals = new > CheckBox("personItem.personReceiveEmailOnDeals", new > PropertyModel(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 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
Re: FormComponent cookie persistent issue
By the way i am using wicket 1.3.5. I dont know if you need other information? I can send the quickstart project if anyone is interested. I dont know if it is okey to attach it to the mailing list. /Murat 2008/12/29 Murat Yücel > Hi All > > I have a strange problem with persisting form component values. > > In my project i have a SignInPanel. The SignInPanel has a rememberMe > checkbox. If the checkbox is > checked then the values will get persisted in a cookie. This part is > working very well if the user doesnt > login from a mounted bookmarkable page. > If the user login from a mounted bookmarkable page, then i can see that the > value is saved by calling > the CookieValuePersister, but on load the values are gone again. > > I have made a simple quickstart project and i am seing the same behaviour > here. Am I missing something? > Why doesnt cookie persist work for a mounted bookmarkable page? > > Hope that you can help. > > Kind regards > > /Murat >
Re: How to access the AJAX transport.responseXML
What is the usecase for needing to acces the responseXML coming from Wicket? Martijn On Mon, Dec 29, 2008 at 6:11 PM, Vance Fellers wrote: > > I need to access the XMLHttpRequest.responseXML from my javascript for a > Wicket web page. I followed the code in the wicket-ajax.js, seen below. I > assume this.loadedCallback is the onSuccess function, but how to access > responseXML passed in the xmldoc variable, or have loadedCallback call my > javascript function with the responseXML? > >> if (typeof(window.XMLHttpRequest) != "undefined" && typeof(DOMParser) != >> "undefined") { >> var parser = new DOMParser(); >> xmldoc = parser.parseFromString(responseAsText, "text/xml"); >> } else if (window.ActiveXObject) { >> xmldoc = t.responseXML; >> } >> // invoke the loaded callback with an xml document >> this.loadedCallback(xmldoc); >> } > > Vance > -- > View this message in context: > http://www.nabble.com/How-to-access-the-AJAX-transport.responseXML-tp21206061p21206061.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 > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ComponentResolver and CompoundPropertyModels
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-tp21209434p21209434.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
Wicket-contrib-accordion and Wicket-datetime YUI version clash?
Hi there, when using a DateTimeField together with Wicket-contrib-accordion, it seems my DateTimeField JS gets corrupted by the followoing header contributors: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> CivilOne - put it on the Map! http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js";> http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js";> http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js";> http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js";>
Re: feedback message without a form
Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro 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
Re: AjaxFallbackDefaultDataTable problem
Are you using an AjaxLink to do the delete? If so, are you adding the table to the ajax request target, so that it gets updated? On Mon, Dec 29, 2008 at 10:15 AM, Björn-Peter Tietjens wrote: > Hi there, > > > I would need some help on the AjaxFallbackDefaultDataTable please. > I am using this AjaxFallbackDefaultDataTable to display entries from a > database using hibernate and a SortableDataProvider. I inserted a Action > column to delete entries. My ActionPanel adds a link and overwrites its > onClick event, deleting the row from the database, BUT now the table on my > page does not update until i completely reload the whole page. I am doing a > ajaxFallbackDefaultDataTable.modelChanged(); > but that doesnt do the job either. What do I need to ? > > Thank you for your help! > Cheers Björn > > - > 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: use of org.wicketstuff.yui.markup.html.calendar.Calendar
Ok, first, I should take DateTimeField, that gives the desired setup. Anyway, now I am having JS YUI initialization errors when using the component within my pages, so I guess I will have to disable JS related stuff one by one and see what the offending other components are. Thanks for the help! /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 4:27 PM, Jeremy Thomerson wrote: > Any JS errors? > > Jeremy Thomerson > http://www.wickettraining.com > -- sent from a wireless device > > > -Original Message- > From: Peter Neubauer > Sent: Monday, December 29, 2008 8:10 AM > To: users@wicket.apache.org > Subject: Re: use of org.wicketstuff.yui.markup.html.calendar.Calendar > > Hi there, > thanks for the fast answers, got around to try it first now. So, the > DateTextField works great with > dateField= new DateTextField("date", new Model(new Date()), new > StyleDateConverter(false)); > dateField.add(new DatePicker()); > form.add(dateField); > > However, if I click on the datepicker icon in my page, absolutely > nothing happens, though it seems there is YUI headers and the yui.js > at > resources/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date.js > available (URL taken from the source of my page). > > No reaction i both FF3 and Safari. Any idea why this could be? > > /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 Tue, Dec 23, 2008 at 11:52 PM, Jeremy Thomerson > wrote: >> There is a Wicket core DatePicker now: >> 1.4: >> http://svn.apache.org/repos/asf/wicket/trunk/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/ >> 1.3: >> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/ >> >> >> >> On Tue, Dec 23, 2008 at 4:42 PM, Nino Martinez >> wrote: >> >>> Hi Peter >>> >>> Just use it the ordinary way add a field containing a date, and ADD the >>> datepicker to it... >>> >>> Like this: >>> >>> add(dateField = new DateTextField("date", new PropertyModel(this, >>> "date"))); >>> dateField.add(new DatePicker()); >>> >>> >>> >>> Peter Neubauer wrote: >>> Hi there, since Nino left the Jayway train, I am forced to work my way through wicketstuff :) Now, I want to pick a date, and am wondering what the current incarnation of a datepicker is that works with Wicket 1.3? I found the org.wicketstuff.yui.markup.html.calendar.Calendar and can insert it into a page but I am not sure how to get out the chosen date in the widget from the component. Are there any examples of the usage or am I on the wrong track here? Cheers and Happy Christmas to all the Wicket folks! /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 >>> >>> >> >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.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 c
feedback message without a form
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
How to access the AJAX transport.responseXML
I need to access the XMLHttpRequest.responseXML from my javascript for a Wicket web page. I followed the code in the wicket-ajax.js, seen below. I assume this.loadedCallback is the onSuccess function, but how to access responseXML passed in the xmldoc variable, or have loadedCallback call my javascript function with the responseXML? > if (typeof(window.XMLHttpRequest) != "undefined" && typeof(DOMParser) != > "undefined") { > var parser = new DOMParser(); > xmldoc = parser.parseFromString(responseAsText, "text/xml"); > } else if (window.ActiveXObject) { > xmldoc = t.responseXML; > } > // invoke the loaded callback with an xml document > this.loadedCallback(xmldoc); > } Vance -- View this message in context: http://www.nabble.com/How-to-access-the-AJAX-transport.responseXML-tp21206061p21206061.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: Default Focus Behavior?
Jonathan, Have you considered O'Reilly's "Cookbook" series? I've done some tech review for them over the years, though not recently. E-mail me directly if you'd like a potentially dated contact. :) Scott On Sun, Dec 28, 2008 at 9:26 AM, Jonathan Locke wrote: > > > I have a really elegant solution to this problem that is general enough to > go in core or extensions eventually (solves all of the above problems). > > Actually, I'm putting together a short, but action-packed book called > "Twenty-Six Wicket Tricks" and the code for this problem is going to be > trick "F" (i'm halfway through the alphabet already). If anyone really > desperately wants this and they promise to give me feedback on it, they can > email me. > > > Antony Stubbs wrote: >> >> Why not put this code into Wicket? >> >> >> jwcarman wrote: >>> >>> On 3/11/08, Martijn Dashorst wrote: I suggest wiki. >>> >>> Done: >>> >>> http://cwiki.apache.org/confluence/display/WICKET/Request+Focus+on+a+Specific+Form+Component >>> >>> I'm happy now. My work (no matter how trivial) may help someone >>> someday! :) I don't have time to do so now, but I might add in some >>> examples on how to do focus on errors, etc. >>> >>> - >>> 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/Default-Focus-Behavior--tp15934889p21194288.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: use of org.wicketstuff.yui.markup.html.calendar.Calendar
Any JS errors? Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Peter Neubauer Sent: Monday, December 29, 2008 8:10 AM To: users@wicket.apache.org Subject: Re: use of org.wicketstuff.yui.markup.html.calendar.Calendar Hi there, thanks for the fast answers, got around to try it first now. So, the DateTextField works great with dateField= new DateTextField("date", new Model(new Date()), new StyleDateConverter(false)); dateField.add(new DatePicker()); form.add(dateField); However, if I click on the datepicker icon in my page, absolutely nothing happens, though it seems there is YUI headers and the yui.js at resources/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date.js available (URL taken from the source of my page). No reaction i both FF3 and Safari. Any idea why this could be? /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 Tue, Dec 23, 2008 at 11:52 PM, Jeremy Thomerson wrote: > There is a Wicket core DatePicker now: > 1.4: > http://svn.apache.org/repos/asf/wicket/trunk/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/ > 1.3: > http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/ > > > > On Tue, Dec 23, 2008 at 4:42 PM, Nino Martinez > wrote: > >> Hi Peter >> >> Just use it the ordinary way add a field containing a date, and ADD the >> datepicker to it... >> >> Like this: >> >> add(dateField = new DateTextField("date", new PropertyModel(this, >> "date"))); >> dateField.add(new DatePicker()); >> >> >> >> Peter Neubauer wrote: >> >>> Hi there, >>> since Nino left the Jayway train, I am forced to work my way through >>> wicketstuff :) >>> >>> Now, I want to pick a date, and am wondering what the current >>> incarnation of a datepicker is that works with Wicket 1.3? I found the >>> org.wicketstuff.yui.markup.html.calendar.Calendar and can insert it >>> into a page but I am not sure how to get out the chosen date in the >>> widget from the component. Are there any examples of the usage or am I >>> on the wrong track here? >>> >>> Cheers and Happy Christmas to all the Wicket folks! >>> >>> /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 >> >> > > > -- > Jeremy Thomerson > http://www.wickettraining.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
AjaxFallbackDefaultDataTable problem
Hi there, I would need some help on the AjaxFallbackDefaultDataTable please. I am using this AjaxFallbackDefaultDataTable to display entries from a database using hibernate and a SortableDataProvider. I inserted a Action column to delete entries. My ActionPanel adds a link and overwrites its onClick event, deleting the row from the database, BUT now the table on my page does not update until i completely reload the whole page. I am doing a ajaxFallbackDefaultDataTable.modelChanged(); but that doesnt do the job either. What do I need to ? Thank you for your help! Cheers Björn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: use of org.wicketstuff.yui.markup.html.calendar.Calendar
Hi there, thanks for the fast answers, got around to try it first now. So, the DateTextField works great with dateField= new DateTextField("date", new Model(new Date()), new StyleDateConverter(false)); dateField.add(new DatePicker()); form.add(dateField); However, if I click on the datepicker icon in my page, absolutely nothing happens, though it seems there is YUI headers and the yui.js at resources/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date.js available (URL taken from the source of my page). No reaction i both FF3 and Safari. Any idea why this could be? /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 Tue, Dec 23, 2008 at 11:52 PM, Jeremy Thomerson wrote: > There is a Wicket core DatePicker now: > 1.4: > http://svn.apache.org/repos/asf/wicket/trunk/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/ > 1.3: > http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/ > > > > On Tue, Dec 23, 2008 at 4:42 PM, Nino Martinez > wrote: > >> Hi Peter >> >> Just use it the ordinary way add a field containing a date, and ADD the >> datepicker to it... >> >> Like this: >> >> add(dateField = new DateTextField("date", new PropertyModel(this, >> "date"))); >> dateField.add(new DatePicker()); >> >> >> >> Peter Neubauer wrote: >> >>> Hi there, >>> since Nino left the Jayway train, I am forced to work my way through >>> wicketstuff :) >>> >>> Now, I want to pick a date, and am wondering what the current >>> incarnation of a datepicker is that works with Wicket 1.3? I found the >>> org.wicketstuff.yui.markup.html.calendar.Calendar and can insert it >>> into a page but I am not sure how to get out the chosen date in the >>> widget from the component. Are there any examples of the usage or am I >>> on the wrong track here? >>> >>> Cheers and Happy Christmas to all the Wicket folks! >>> >>> /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 >> >> > > > -- > Jeremy Thomerson > http://www.wickettraining.com > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Dynamically show and edit a textarea in a table
Thanks Heikki, it works! Heikki Uotinen wrote: > > if you put extra div around textarea and add it to the target it should > work > - Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/Dynamically-show-and-edit-a-textarea-in-a-table-tp21197799p21202544.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: WicketTester OnChangeAjaxBehavior ?
tester.executeAjaxEvent("full:path:to:component", "onchange"); 2008/12/29 Martin Makundi : > Hi! > > I have some select boxes on the screen which trigger screen refresh in > live mode. > > However, I have not yet figured out how to trigger > OnChangeAjaxBehavior using WicketTester in a non-intrusive manner. I > have found some intrusive workarounds that tweak the server-side > models, but what is the right way to do it? > > ** > Martin > > - > 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: how Checkbox can be showed with "checked" when it value is matched?
why is it not working ? I tried and its working public class TestPage extends WebPage { private PersonItem personItem = new PersonItem(); public TestPage() { Form form = new Form("inform"); add(form); CheckBox checkBoxPersonReceiveEmailOnDeals = new CheckBox("personItem.personReceiveEmailOnDeals", new PropertyModel(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 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
WicketTester OnChangeAjaxBehavior ?
Hi! I have some select boxes on the screen which trigger screen refresh in live mode. However, I have not yet figured out how to trigger OnChangeAjaxBehavior using WicketTester in a non-intrusive manner. I have found some intrusive workarounds that tweak the server-side models, but what is the right way to do it? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how Checkbox can be showed with "checked" when it value is matched?
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