Re: How to get a value of textfield on onBlur event..
AjaxFormComponentUpdatingBehavior might be what you want. Regards, Gerolf On Tue, Jun 8, 2010 at 10:58 PM, jammyjohn jchinnas...@yahoo.com wrote: Hi, How to get the value of the textfield on onBlur event? The below code always prints null for shipIdTf.getInput() final TextField shipIdTf = new TextField(ship.id); shipIdTf.setOutputMarkupId(true); mawbForm.add(shipIdTf); shipIdTf.add(new AjaxEventBehavior(onBlur){ private static final long serialVersionUID = 1L; @Override protected void onEvent(AjaxRequestTarget target) { System.out.println(Event is triggered); System.out.println(The input value is + shipIdTf.getInput()) } }); Please suggest. Thanks for your time. Jamuna. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-a-value-of-textfield-on-onBlur-event-tp2248027p2248027.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: AutocompleteTextField behaviours
AjaxRequestTarget.get() returns the current AjaxRequestTarget, if there is one, otherwise it returns null. use that in the getChoices callback and you should be fine. On Sun, May 23, 2010 at 8:17 PM, Katherine kati...@rambler.ru wrote: Hello, Can anybody help newbie with following question: I'm using AutocompletText field with AjaxFormComponentUpdatingBehavior(onchange), which catches onchange event, when user selects item from the list. It appeared so that sometimes I get too many items for DropDownList, and I don't want it to hang and I need to update a warning label in case there are too many items for the DropDownList. That's why I need to make a check after each character is inputed. That is well done in getChoices method, but in that method I don't have AjaxRequestTarget to update the label. And when I use OnChangeAjaxBehavior everything is good with updating label, but it doesn't catch the event when item from DropDownList is selected. I can't use bot AjaxFormComponentUpdatingBehavior and OnChangeAjaxBehavior because the last one extend the first. Is there a possibility to handle my problem? Or may be it is already solved, but I wasn't able to find the solution, so will be greatfull for the link. I'm using wicket 1.3.7 Big thanks in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Display timeout page for long running requests
you can use an ajax timer to check if the long running process has finished after 5 seconds and abort the process and redirect the user to the timeout page if it hasn't. gerolf On Wed, Apr 7, 2010 at 12:11 AM, Mak makar...@gmail.com wrote: Hi All, I am new to wicket framework. I have a requirement that my wicket application needs to abandon its request processing after the specified time (say 5 secs ) has elapsed. Also, an error page / popup should be displayed after timeout to notify the user. In other words, from user point of view either we should get the correct output page before 5 seconds or display timeout page after 5 seconds. Any ideas/directions on how to implement this requirement would be highly appreciated!! Thanks Mak
Re: ajaxfallback
before adding a component to the ajaxrequesttarget, simply check that the target is not null (aka the request is an ajax request). otherwise you don't need to add the components to the ajaxrequesttarget anyway. gerolf On Wed, Apr 7, 2010 at 12:20 AM, tubin gen fachh...@gmail.com wrote: I am using AjaxLink all my application and we add to AjaxRequestTarget for repainting components , now we want to change it to use AjaxFallback , but in ajaxfallback AjaxRequestTarget is null and I get null pointer exception.Please tell me if there is any way I can move from AjaxLink to AjaxFallBack link without breaking ?
Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ?
i will try to find some time to take a look at it tonight. gerolf On Wed, Dec 30, 2009 at 11:51 AM, Giovanni pino_o...@yahoo.com wrote: I got the same error today, trying to use the JmxPanel with Wicket 1.3.7. Any idea about how to solve this issue? I would really like to use the JmxPanel in my application. Best regards, giovanni From: Trent Larson larsontr...@gmail.com To: users@wicket.apache.org Sent: Wed, March 18, 2009 11:41:38 PM Subject: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ? I'm trying to use the wicketstuff-jmx-panel component as simply as possible: add(new JmxPanel(jmx)); But I get a strange error about a method that doesn't exist: Caused by: java.lang.NoSuchMethodError: org.wicketstuff.jmx.markup.html.tree.JmxTreePanel.add(Lorg/apache/wicket/Component;)Lorg/apache/wicket/MarkupContainer; at org.wicketstuff.jmx.markup.html.tree.JmxTreePanel.init(JmxTreePanel.java:33) at org.wicketstuff.jmx.markup.html.JmxPanel.init(JmxPanel.java:113) at org.wicketstuff.jmx.markup.html.JmxPanel.init(JmxPanel.java:94) I call it strange because I'm using 1.4-m3, which appears to have the MarkupContainer.add(Component...) method, so I cannot figure out what it's trying to tell me. So is anyone using this in 1.4? Any idea why it's complaining about no such method? Thanks! Trent
Re: ATOM/RSS feeds in wicket
maybe [0] is of interest for you. [0] http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-rome On Thu, Dec 3, 2009 at 9:03 AM, shiraz memon shiraz.li...@googlemail.comwrote: Hi, I would like to use ATOM/RSS feed with the application developed on wicket, I wonder if wicket provides an integration/implementation of ATOM/RSS publishing protocol? Thanks Shiraz
Re: PropertyModels *without* strings
On Thu, Nov 26, 2009 at 8:54 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I would say that refactoring calls for improvement in the bindgen approach. Is it theoretically possible to facilitate refactoring with bindgen? Is it practically possible to facilitate refactoring with bindgen? i'm wondering whether it would be feasible to rewrite bindgen on top of lombok, since they can generate code via APT and eclipse AST modification. also, since version 0.9.0, support for Refactor - Rename is built in. gerolf
Re: PropertyModels *without* strings
On Thu, Nov 26, 2009 at 1:52 PM, James Carman jcar...@carmanconsulting.comwrote: The configuration files are changed for you. I don't know how eclipse works with this kind of stuff, but IDEA definitely has hooks for this kind of stuff. if you refactor-rename a class, you can have eclipse look for the FQCN in comments, strings, non-java files and change that accordingly. not sure if that also works for fields, methods,... On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If refactoring is not supported it is just easier to use string constants, which do not break. ** Martin 2009/11/26 Gerolf Seitz gerolf.se...@gmail.com: as far as i have read, the binding methods aren't automatically refactored (eg. renamed), but you get compiler errors in the code where you use the old names. so it should be fairly easy to fix your own code (in contrast to some strings) On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Is refactoring available for bindgen? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Mittwoch, 25. November 2009 22:56 An: users@wicket.apache.org; d...@wicket.apache.org Betreff: PropertyModels *without* strings http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ -igor - 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: PropertyModels *without* strings
that's why i was wondering about a lombok based bindgen implementation, since lombok is available as apt processor and eclipse plugin :) On Thu, Nov 26, 2009 at 5:13 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you guys are missing the point. Bindgen is a *standard apt processor*. it is not an eclipse plugin. all major IDEs have support for annotation processors baked in. refactoring support is definetely *possible*, but it would require an actual IDE pliugin. -igor On Thu, Nov 26, 2009 at 5:20 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to the person that does it. ** Martin 2009/11/26 Johan Compagner jcompag...@gmail.com: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html On Thu, Nov 26, 2009 at 13:52, James Carman jcar...@carmanconsulting.comwrote: Refactoring could definitely be supported in IDEA. With the Hibernate support, when you change a property name it will change your mapping hbm.xml (yes, we still use them) files for you automatically. Same thing happens with the Spring support. The configuration files are changed for you. I don't know how eclipse works with this kind of stuff, but IDEA definitely has hooks for this kind of stuff. On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If refactoring is not supported it is just easier to use string constants, which do not break. ** Martin 2009/11/26 Gerolf Seitz gerolf.se...@gmail.com: as far as i have read, the binding methods aren't automatically refactored (eg. renamed), but you get compiler errors in the code where you use the old names. so it should be fairly easy to fix your own code (in contrast to some strings) On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Is refactoring available for bindgen? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Mittwoch, 25. November 2009 22:56 An: users@wicket.apache.org; d...@wicket.apache.org Betreff: PropertyModels *without* strings http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ -igor - 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 - 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: PropertyModels *without* strings
as far as i have read, the binding methods aren't automatically refactored (eg. renamed), but you get compiler errors in the code where you use the old names. so it should be fairly easy to fix your own code (in contrast to some strings) On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Is refactoring available for bindgen? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Mittwoch, 25. November 2009 22:56 An: users@wicket.apache.org; d...@wicket.apache.org Betreff: PropertyModels *without* strings http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ -igor - 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: PropertyModels *without* strings
On Thu, Nov 26, 2009 at 8:43 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: i am actually somewhat shocked that someone can look at this and not see the value. this fills in a huge gap in java until methods and fields become first-class citizens. but, maybe im just weird. i was like this close to enhancing lombok to automatically create at least java.reflect.Field/Method references and constants for property names. but the bindgen(-wicket) solution is way better. thanks for that :) -igor On Wed, Nov 25, 2009 at 11:28 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If refactoring is not supported it is just easier to use string constants, which do not break. ** Martin 2009/11/26 Gerolf Seitz gerolf.se...@gmail.com: as far as i have read, the binding methods aren't automatically refactored (eg. renamed), but you get compiler errors in the code where you use the old names. so it should be fairly easy to fix your own code (in contrast to some strings) On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Is refactoring available for bindgen? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Mittwoch, 25. November 2009 22:56 An: users@wicket.apache.org; d...@wicket.apache.org Betreff: PropertyModels *without* strings http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ -igor - 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: WicketStuff JMX
it hasn't been integrated with wicket-jmx, since i wasn't really happy with a few things in wicketstuff-jmxpanel. if my memory serves me well, i've seen at least 1 other solution that had even more functionality, i think, than the jmxpanel i started. couldn't say specific project names or links though. regarding AWOL, i'm still watching wicket-dev closely and wicket-users to a certain extent. please accept my apologies for not taking care of things i started. i would love to get back into wicket development, and hopefully in the rather near-ish future, i can make some time to bring these words into action. Best regards, Gerolf On Mon, Nov 23, 2009 at 10:30 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Wasn't it integrated into wicket-jmx? Or did that fall apart with Gerolf going AWOL? Martijn On Mon, Nov 23, 2009 at 10:10 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i guess its waiting for someone with time to bring it back up to speed. -igor On Mon, Nov 23, 2009 at 1:05 PM, rodrigo benenson rodrigo.benen...@gmail.com wrote: Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01007.html It seems that in the past there was some consensus on keeping wicket-jmx and jmxpanel up to date. http://old.nabble.com/Integrate-wicket-contrib-jmx-panel-into-wicket-jmx-td14778294.html Anyone has tried to fix this ? Regards, rodrigob. ps: thanks for wicket ! - 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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketStuff JMX
thanks martijn, i'm actually very excited about the new URL mapping stuff from igor and matej and the upcoming ajax rework. unfortunately, i haven't been able to use wicket so far in my current company until very recently for a rather small project. and it's kinda hypocritical to not eat your own dogfood :) just need to find myself some kind of out-of-work-project for that i guess :) nino, thanks for taking care of the jmxpanel update. cheers, gerolf On Tue, Nov 24, 2009 at 12:43 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: On Tue, Nov 24, 2009 at 12:29 PM, Gerolf Seitz gerolf.se...@gmail.com wrote: regarding AWOL, i'm still watching wicket-dev closely and wicket-users to a certain extent. please accept my apologies for not taking care of things i started. i would love to get back into wicket development, and hopefully in the rather near-ish future, i can make some time to bring these words into action. No need to apologize! Life happens. Sometimes the paths separate and life takes people in a different direction. We are grateful for the time you've volunteered thus far. Martijn PS. I'm glad you're at least still reading with us :) -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketStuff JMX
On Tue, Nov 24, 2009 at 2:16 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: They should probably be merged. I like DRY :) sounds like a sound approach :) gerolf 2009/11/24 rodrigo benenson rodrigo.benen...@gmail.com Nice to hear that youre still there.. For the time being jmxpanel is working with wicket 1.4 and waiting for someone to give it a little love :) where can someone grab the fixed version ? Is great to see how fast you guys answer ! Regards, rodrigob. On Tue, Nov 24, 2009 at 12:43 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Nice to hear that youre still there.. For the time being jmxpanel is working with wicket 1.4 and waiting for someone to give it a little love :) I'll mention that the one from JBOSS(4.0.2-4.2) have a very retro ui, light years from jmxpanel.. regards Nino 2009/11/24 Gerolf Seitz gerolf.se...@gmail.com it hasn't been integrated with wicket-jmx, since i wasn't really happy with a few things in wicketstuff-jmxpanel. if my memory serves me well, i've seen at least 1 other solution that had even more functionality, i think, than the jmxpanel i started. couldn't say specific project names or links though. regarding AWOL, i'm still watching wicket-dev closely and wicket-users to a certain extent. please accept my apologies for not taking care of things i started. i would love to get back into wicket development, and hopefully in the rather near-ish future, i can make some time to bring these words into action. Best regards, Gerolf On Mon, Nov 23, 2009 at 10:30 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Wasn't it integrated into wicket-jmx? Or did that fall apart with Gerolf going AWOL? Martijn On Mon, Nov 23, 2009 at 10:10 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i guess its waiting for someone with time to bring it back up to speed. -igor On Mon, Nov 23, 2009 at 1:05 PM, rodrigo benenson rodrigo.benen...@gmail.com wrote: Hello there ! Is there any news on WicketStuff JmxPanel ? It seems to be broken for a while now http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01007.html It seems that in the past there was some consensus on keeping wicket-jmx and jmxpanel up to date. http://old.nabble.com/Integrate-wicket-contrib-jmx-panel-into-wicket-jmx-td14778294.html Anyone has tried to fix this ? Regards, rodrigob. ps: thanks for wicket ! - 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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - 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: pb to access to this on event onchange on the AutoCompleteTextField
hi, in case you haven't done it, can you please file a jira issue with an attached example quickstart project that leads to the error? i will take a look at it later today. thanks, gerolf On Sun, Jan 4, 2009 at 6:15 PM, Olivier Dutrieux dutri...@pasteur.frwrote: I would like create a component that extends AjaxEditableLabel with replace TextField with AjaxEditableAutoComplete. And I discovert a problem in the wicket-autocomplete.js when the event onchange is rewriting (line 83) : // WICKET-1280 objonchangeoriginal=obj.onchange; obj.onchange=function(event){ if(mouseactive==1)return false; if(typeof objonchangeoriginal==function)objonchangeoriginal(); } objonchange=obj.onchange; the problem is that the objonchangeoriginal function can't access to the this object, and it's necessary because I change the onchange event on AjaxEditableAutoComplete in case I extends AjaxEditableLabel with this : editor.add(new EditorAjaxBehavior() { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); final String saveCall = {wicketAjaxGet(' + getCallbackUrl() + save=true'+this.name+'='+wicketEncode(this.value)); return true;}; tag.put(onchange, saveCall); } }); then the best way to solve the problem is to change the invocation of objonchangeoriginal function with that : 84// WICKET-1280 85objonchangeoriginal=obj.onchange; 86obj.onchange=function(event){ 87 if(mouseactive==1)return false; 88 if(typeof objonchangeoriginal==function)objonchangeoriginal.apply(this, [event]); 89 } 90objonchange=obj.onchange; all invocation of function need to be change this with new invocation on the wicket-autocomplete.js file. -- View this message in context: http://www.nabble.com/pb-to-access-to-this-on-event-onchange-on-the-AutoCompleteTextField-tp21278638p21278638.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: DateTimeField Error and Question
you can override the method newDateTextField(String, PropertyModel) and return a customized DateTextField object. gerolf On Thu, Jan 1, 2009 at 6:44 AM, tbt nadeesh...@yahoo.com wrote: Hi I am not sure if the DateTextField attribute in the DateTimeField class can be modified to change the calendar behavior. But you could use a TextField or a DateTextField and add a DatePicker instance to it like the following example TextField checkInField = new TextField(checkInField ,new PropertyModel(searchModel,checkInDate)); DatePicker checkInPicker = new DatePicker() { protected String getDatePattern() { return dd/MMM/; } }; checkInField.add(checkInPicker); regards -- View this message in context: http://www.nabble.com/DateTimeField-Error-and-Question-tp21221202p21239433.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: Round corners n' stuff? Possible Contribution?
i think i have an integration for the latest nifty libs [0] lying around haven't looked at it in quite a while, so maybe it's not that good anyway :) gerolf [0] http://www.html.it/articoli/niftycube/index.html On Fri, Dec 19, 2008 at 9:31 PM, Nino Martinez nino.martinez.w...@gmail.com wrote: Im fed up with all the different approaches to make your pages look great.. So I'll want to make a contrib for this : http://www.ruzee.com/content/liquid-canvas http://www.html.it/articoli/nifty/index.html unless somebody has a better suggestion? WDYT? regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form field (value) does not update after validation error
don't know if i totally understood the setting of your example, but your edit button shouldn't submit/post the form, eg. just use a Link attached to an input type=button tag instead of a Button. Gerolf On Wed, Dec 10, 2008 at 1:11 PM, Rutger Jansen [EMAIL PROTECTED] wrote: Well this is of course a simple example. In my case I have an administration page with a list of domain objects, lets say cheeses (how did I come up with that idea?). On the same page I have a form with all fields of the cheese object (name and kiloPrice for example). Behind each cheese in the list there is an 'edit' button which will set that specific cheese object as a the current model object in the form, which results in the name and kiloPrice field in the form being filled with the values of the cheese. If then, for some reason the validation of a form post fails (the price is too high for this Gouda), and I (as an end user) decide to skip editing this Gouda cheese and press the edit button of the Cheddar cheese, the form will not be updated with the name and price of the Cheddar. The values of the Gouda remain. Even though the current object in the model was updated to Cheddar. When I now press the submit button again (after putting a correct price in the field), the Cheddar object is updated with the values of the Gouda (which were still in the formfields). I can make a bigger example like this if needed. On 12/10/08, Martijn Dashorst [EMAIL PROTECTED] wrote: Why on earth would you want to update a model value when there's a validation error in the input? That is the whole point of validation! Martijn On Wed, Dec 10, 2008 at 10:44 AM, Rutger Jansen [EMAIL PROTECTED] wrote: Hi, I have a strange situation in the admin part of my application which I have reproduced in this tiny code example. In this example I can load a value in the textfield by clicking the link (which also increases the number to show that the link works ok). I can post the form without problems and load the value again. But when a validation error occurs (in this case when the posted value is too long), the field will not be updated after pressing the link (even though the log shows that the link is clicked), unless I post the form again without validation errors. Am I forgetting something here? Rutger --- Example page class--- public class Example extends WebPage { private String value; private int valueVersion = 1; public Example() { Form form = new Form(form); TextField textfield = new TextField(textfield, new PropertyModel(Example.this, value)); textfield.add(StringValidator.maximumLength(15)); form.add(textfield); add(form); add(new FeedbackPanel(feedback)); add(new Link(link){ @Override public void onClick() { value = This is a test + valueVersion++; } }); } } --- Example html --- html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net/; head/head body div wicket:id=feedback / form wicket:id=form input type=text wicket:id=textfield/ input type=submit / /form pa href=# wicket:id=linkLoad form value/a/p /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateTimeField AjaxEventBehavior problem
new DateTimeField(...) { protected DateTextField newDateTextField(...) { DateTextField field = super.newDateTextField(...); field.add(new AjaxEventBehavior(...) {...}); return field; } } On Wed, May 21, 2008 at 3:32 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a DateTimeField panel which works just fine. However, I need to toggle the visibility of a checkbox once the date has been populated. This is of course via AJAX with an AjaxEventBehavior. I tried to slap the behavior on the DateTimeField panel, but the onEvent method only gets triggered when I select am/pm, which is the last field in that panel. BTW, when referring to 'panel' I mean that internal panel that DateTimeField uses, not my own panel in my page. How can I make the date field in the DateTimeField panel trigger my event? Thanks, Michael
Re: (Class? extends Page?) casting troubles
Eelco, can you try it again with latest trunk? Cheers, Gerolf On Wed, May 21, 2008 at 6:54 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Tue, May 20, 2008 at 9:44 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: i have the fix for that in my local checkout and will commit it sometime today. Cool. I just found out Wicket In Action's code (http://code.google.com/p/wicketinaction/) had compile errors. Ideally, Wicket 1.4 it should be completely backwards compatible. A copy from the errors Eclipse reports: The constructor RestartResponseAtInterceptPageException(ClassSigninPage) is undefined book-wicket-in-action/src/java/wicket/in/action/chapter12/authdiscounts UserPanel.java line 37 1211331768935 213000 The constructor RestartResponseAtInterceptPageException(ClassSigninPage) is undefined book-wicket-in-action/src/java/wicket/in/action/chapter13/locdiscounts UserPanel.java line 41 1211331768461 212926 The constructor RestartResponseAtInterceptPageException(ClassSigninPage) is undefined book-wicket-in-action/src/java/wicket/in/action/common WiaAuthorizationStrategy.java line 36 1211331766706 212722 The method setModelObject(capture#6-of ?) in the type Componentcapture#6-of ? is not applicable for the arguments (int) book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_1 HelloWorldTest.java line 91 1211331768160 212829 The method setObject(Object) of type CheeseModel must override a superclass method book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_3 Index.java line 42 1211331769904 213426 The method startPanel(TestPanelSource) in the type BaseWicketTester is not applicable for the arguments (ClassHelloWorldPanel) book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_1 HelloWorldTest.java line 66 1211331768160 212828 The return type is incompatible with Application.getHomePage() book-wicket-in-action/src/java/wicket/in/action WicketInActionApplication.java line 125 1211331770166 213591 The return type is incompatible with MarkupContainer.setModel(IModel) book-wicket-in-action/src/java/wicket/in/action/common AjaxEditableLabel.java line 129 1211331767509 212759 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_2 Index.java line 61 1211331769986 213564 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_3 Index.java line 61 1211331769970 213527 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_3 ShoppingCartPanel.java line 32 1211331769946 213506 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_2 Index.java line 120 1211331769917 213443 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_3 Index.java line 29 1211331769904 213425 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_3 Index.java line 113 1211331767771 212812 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_3 Index.java line 132 1211331767771 212815 Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (Class? extends Page?) casting troubles
On Wed, May 21, 2008 at 10:30 AM, Johan Compagner [EMAIL PROTECTED] wrote: always strange that that works If you just look at it then it seems to be the same thing :) tbh, i would still like to get an explanation _why_ it works with S extends Component? and not directly with ? extends Component?. Gerolf
Re: AjaxButton without a Form
you can have input type=button wicket:id=linkButton/ in markup and new AjaxLink(linkButton) {...} in java code. Gerolf On Tue, May 20, 2008 at 2:35 AM, mnwicket [EMAIL PROTECTED] wrote: That is an option, but would rather use; input type=button.../ I have styles around my input buttons that I want to reuse. I'm sure I can create my own custom component, but thought someone has probably done it or has a good way around it. Mathias P.W Nilsson wrote: Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup lt;a wicket:id=closeLinkgt;lt;img src=../path/to/link/gt;lt;/agt; -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17331010.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (Class? extends Page?) casting troubles
Ryan, this is already fixed in trunk and will be included in the rebuilt M2 release. Gerolf On Wed, May 21, 2008 at 3:49 PM, Ryan McKinley [EMAIL PROTECTED] wrote: does this mean it should work now? strangely, things work fine for me in eclipse, but from the command line, I still get: $ mvn clean install: /Users/ryan/Documents/workspace/dexter/website/src/java/dexter/website/wicket/page/DownloadingPage.java:[18,97] inconvertible types found : java.lang.Classdexter.website.wicket.page.account.DexSignInPage required: java.lang.Class? extends org.apache.wicket.Page? I ran: mvn clean install in the wicket directory... Not sure if the java version is helpful: ryan$ mvn -version Maven version: 2.0.6 ryan$ javac -version javac 1.6.0_04-dp thanks for any pointers On May 21, 2008, at 3:19 AM, Gerolf Seitz wrote: Eelco, can you try it again with latest trunk? Cheers, Gerolf On Wed, May 21, 2008 at 6:54 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Tue, May 20, 2008 at 9:44 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: i have the fix for that in my local checkout and will commit it sometime today. Cool. I just found out Wicket In Action's code (http://code.google.com/p/wicketinaction/) had compile errors. Ideally, Wicket 1.4 it should be completely backwards compatible. A copy from the errors Eclipse reports: The constructor RestartResponseAtInterceptPageException(ClassSigninPage) is undefined book-wicket-in-action/src/java/wicket/in/action/chapter12/authdiscounts UserPanel.java line 37 1211331768935 213000 The constructor RestartResponseAtInterceptPageException(ClassSigninPage) is undefined book-wicket-in-action/src/java/wicket/in/action/chapter13/locdiscounts UserPanel.java line 41 1211331768461 212926 The constructor RestartResponseAtInterceptPageException(ClassSigninPage) is undefined book-wicket-in-action/src/java/wicket/in/action/common WiaAuthorizationStrategy.java line 36 1211331766706 212722 The method setModelObject(capture#6-of ?) in the type Componentcapture#6-of ? is not applicable for the arguments (int) book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_1 HelloWorldTest.java line 91 1211331768160 212829 The method setObject(Object) of type CheeseModel must override a superclass method book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_3 Index.java line 42 1211331769904 213426 The method startPanel(TestPanelSource) in the type BaseWicketTester is not applicable for the arguments (ClassHelloWorldPanel) book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_1 HelloWorldTest.java line 66 1211331768160 212828 The return type is incompatible with Application.getHomePage() book-wicket-in-action/src/java/wicket/in/action WicketInActionApplication.java line 125 1211331770166 213591 The return type is incompatible with MarkupContainer.setModel(IModel) book-wicket-in-action/src/java/wicket/in/action/common AjaxEditableLabel.java line 129 1211331767509 212759 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_2 Index.java line 61 1211331769986 213564 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_3 Index.java line 61 1211331769970 213527 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter03/section_3_3 ShoppingCartPanel.java line 32 1211331769946 213506 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_2 Index.java line 120 1211331769917 213443 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter04/section_4_3 Index.java line 29 1211331769904 213425 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_3 Index.java line 113 1211331767771 212812 The return type is incompatible with Model.getObject() book-wicket-in-action/src/java/wicket/in/action/chapter15/section_15_3 Index.java line 132 1211331767771 212815 Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to strip wicket tags from markup in development mode?
in MyApplication.init(): getMarkupSettings().setStripWicketTags(true); Gerolf On Wed, May 21, 2008 at 7:08 PM, Lauri Lehtinen [EMAIL PROTECTED] wrote: Hi - Is there an easy way to strip the wicket tags from the produced markup while keeping the application in development mode? I'm finding the development of a Facebook FBML app pretty painful, as wicket:* are ignored by Facebook and result in error messages. With deployment configuration I get around this, but then I run into a lot of Internal error pages which aren't very helpful. Thanks -- LL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateField strangeness
iirc, that happens when the corresponding markup of the DateField is an input tag and not a div tag. DateField is a Panel (or FormComponentPanel), but not a FormComponent like TextField. hth, Gerolf On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm adding a DateField like this: DateField endTimeField = new DateField(eventSchedule.endTime); Now, when I open my page I see two fields - one with the id eventSchedule.endTime and one next to it, before the JS calendar icon called 'date83'. All I want to do is to show one field followed by the JS calendar icon. Is there something I'm missing here? Michael
Re: (Class? extends Page?) casting troubles
i have the fix for that in my local checkout and will commit it sometime today. Gerolf p.s.: kudos to ijuma ;) On Wed, May 21, 2008 at 6:42 AM, Ryan McKinley [EMAIL PROTECTED] wrote: Hello- I'm using 1.4 trunk and running into troubles compiling. My base page extends WebPageT, then I have a bunch of pages that extend that. Everywhere I need to pass in a class that extends Page, I get the error: /Users/ryan/Documents/workspace/...MyClass.java:[32,97] inconvertible types found : java.lang.Classmy.package.SomePage required: java.lang.Class? extends org.apache.wicket.Page? any pointers? I tried casting: throw new RestartResponseAtInterceptPageException( (Class? extends Page?) MyPage.class ); and new BookmarkablePageLink( path, (Class? extends Page?) MyPage.class ); but that squaks in the compiler also. any ideas thanks ryan
Re: RequiredBorder being applied multiple times in ajax calls
Sam, a similar issue happened to the WicketAjaxIndicatorAppender. take a look at WicketAjaxIndicatorAppender#renderHead to see how this is solved there. maybe you can do something similar with your RequiredBorder. regards, Gerolf On Thu, May 15, 2008 at 2:58 AM, Sam Barnum [EMAIL PROTECTED] wrote: Using the tips in this PDF http://londonwicket.org/content/LondonWicket-FormsWithFlair.pdf I created the simple RequiredBorder class as follows: public class RequiredBorder extends MarkupComponentBorder { public void renderAfter(Component component) { FormComponent fc = (FormComponent) component; if (fc.isRequired()) { super.renderAfter(component); } } } This basically adds a * after any required fields. It seemed to work great until I used it with an ajax phone formatter behavior: new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { Object oldValue = component.getValue(); String formatted = new PhoneFormatter().format(oldValue); component.setModelObject(formatted); target.addComponent(component); } } This caused duplicate * indicators to appear after my phone field when the phone number changed, one per onchange request. I tried adding a boolean field to the RequiredBorder so it only gets processed once. This fixed the phone formatter duplicates, but if the form submits and stays on the same page, all the * marks disappear from the required fields. This is definitely some sort of lifecycle problem, but how do you fix it? On a related note, is it generally a bad idea to mix AJAX and non-ajax actions? It seems like this is one of many issues I've run into when doing this. Thanks, -Sam Barnum
Re: RequiredBorder being applied multiple times in ajax calls
On Thu, May 15, 2008 at 6:25 PM, Sam Barnum [EMAIL PROTECTED] wrote: * Somehow disable the border only for ajax calls Sam, I think you can do something like this in RequiredBorder#renderAfter: AjaxRequestTarget target = AjaxRequestTarget.get(); if (target == null) { // we're in a normal request // put logic of the original renderAfter here } not sure if that works, but you might wanna give that a try. cheers, Gerolf
Re: FYI: new wicket site
the site looks nice. i especially like the advanced dropdown box. for us non-dutch, does eropuit mean anything in particular? cheers, Gerolf On Wed, May 14, 2008 at 10:36 AM, lars vonk [EMAIL PROTECTED] wrote: Hi all, A new Wicket site is born! It's a Dutch site on which you can search for day trips and such. See: www.eropuit.nl. Thanks to the user- and dev-group for answering any questions we had during the process. Lars
Re: FYI: new wicket site
On Wed, May 14, 2008 at 10:52 AM, Maurice Marrink [EMAIL PROTECTED] wrote: @Gerolf er op uit could be loosely translated as going places or taking a trip. thx :) Maurice On Wed, May 14, 2008 at 10:36 AM, lars vonk [EMAIL PROTECTED] wrote: Hi all, A new Wicket site is born! It's a Dutch site on which you can search for day trips and such. See: www.eropuit.nl. Thanks to the user- and dev-group for answering any questions we had during the process. Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about IHeaderContributor
gotcha, thx On Wed, May 14, 2008 at 6:40 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: If you think it is a bug, please open a JIRA issue for it. didn't we EOL Wicket 1.2.x? http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/ Yeah, I actually meant for Wicket 1.3 and up, because the bug is in there as well. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using generics with some non-generic classes in Wicket
i think something similar happend to me with Model.valueOf(Map), so i had to change it back to return Model instead of Model? Gerolf On Wed, May 14, 2008 at 11:41 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: well, apparently johan ran into a situation where component? is too restrictive... -igor On Wed, May 14, 2008 at 2:37 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: since then the thread has evolved into whether or not we should use ? extends Component or ? extends Component? -igor I don't understand how that changes any of my points. The first is incorrect (from a generics point of view) since you're referencing an unparameterized generic type. So the second gives warnings only in code that is not properly generified... Regards, Sebastiaan On Wed, May 14, 2008 at 1:54 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: i do like generics. did i ever say otherwise? the problem here is that if we scope something as Class? extends Component then even though you ARE using generics in your code you will still get a warning because we did not scope the class as Class? extends Component?. on the other hand if we do scope it as Class? extends Component? then you can no longer pass a raw reference when calling the function. But that's exactly the point isn't it? If you're using generics then you shouldn't be using raw Components anymore... so we are screwed if we do and we are screwed if we dont, i expected generics to be better. Well they definitely could have been better (erasure is terrible if you ask me), but I don't see what's wrong in this case. It warns you if you should be using a parameterized type but you don't. And especially if you look at the vote result, I think the majority wants the generics... that vote was before we uncovered this issue. we voted on the idea of generics, not on the implementation. That's true, but I wonder if this issue would change the vote much. I don't really understand why it's an issue, because you can use generified Components always: ComponentObject if you don't want to constrain the model object, and ComponentVoid if you don't need a model. The question that started the thread was about StringResourceModel which was not yet generified, and in that case, the warning seems to me to be perfectly ok: it just says StringResourceModel should be generified. It's not a release yet, so that some users who use the current snapshot run into these kind of warnings which cannot be removed seems to be fine to me... Regards, Sebastiaan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encapsulation, extension and transparent resolvers
On Mon, May 12, 2008 at 7:26 PM, Jan Kriesten [EMAIL PROTECTED] wrote: maybe gerolf didn't want to step into ground where others may have more insight - that's the reason i filed this to jira. correct. also, because of what igor said: especially if it is markup parsing code which is a pretty fragile area in wicket. i applied it o 1.4.x, since that's the version jan would like to see fixed. should 1.3.x and 1.4.x be in sync regarding this issue? Gerolf
Re: Disabling the date part in the DateTimeField component
this is not possible, but based on DateTimeField, it should be fairly straight forward to run your own TimeField. Gerolf On Mon, May 12, 2008 at 8:28 PM, nitinkc [EMAIL PROTECTED] wrote: Does anyone know if it is possible to disable just the date part in the DateTimeField component. I have a requirement to allow to user to only edit the hours and minutes. Is there another component/way to achieve this?? -- View this message in context: http://www.nabble.com/Disabling-the-date-part-in-the-DateTimeField-component-tp17189917p17189917.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutoCompleteTextField type mismatch in line 227
On Fri, May 9, 2008 at 2:04 AM, Hoover, William [EMAIL PROTECTED] wrote: i'm assuming the same issue also causes the selection to be lost on occasion never heard of this one... -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 7:57 PM To: users@wicket.apache.org Subject: Re: AutoCompleteTextField type mismatch in line 227 in case you mean [0], that's going to be dealt with probably tomorrow ;) [0] https://issues.apache.org/jira/browse/WICKET-1595 On Fri, May 9, 2008 at 1:52 AM, Hoover, William [EMAIL PROTECTED] wrote: Although, it still has some issues when dealing with mouseover and keyboard events combo ;o) -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 4:23 PM To: users@wicket.apache.org Subject: Re: AutoCompleteTextField type mismatch in line 227 it's fixed in the upcoming 1.3.4 and the already release 1.4-M1 Gerolf On Thu, May 8, 2008 at 10:20 PM, taygolf [EMAIL PROTECTED] wrote: Yes I am just starting to try and get the autocompletetextfield working on my app and I am using wicket 1.3. as well and it is doing the same thing. It is throwing a js type mismatch error. Works fine in firefox but not in IE. Did you figure out the problem? T Niels Bo wrote: Hi I just swithed from 1.3.2 to 1.3.3 and that resultet in a javascript error type mismatch in line 227, wich is this line in wicket-autocomplete.js: menu.style.zIndex=index==auto?index:Number(index)+1; Only in IE (6.0) - firefox works fine. Does anyone else see this problem? Niels -- View this message in context: http://www.nabble.com/AutoCompleteTextField-%22type-mismatch%22-in-l in e-227-tp16560166p17135623.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with MultiFileUploadField and keeping rest of fields in model
when the file size exceeds the size limit, the request processing is kind of aborted and the other request params are not processed (no conversion, validation, ...). when the page is then rendered again, the formcomponents don't have an input value set, and that's why the fields are cleared and no error messages are displayed. there's already a jira issue for that, but actually there's not much that we can do, except some hacks that would temporarily allow an unlimited file size to be able to read the normal request parameters, and just discard the uploaded files. but then a (wicke[dt]) user can upload gigabytes of files and keeping your server, connection, ... busy. so that's not really a solution either. creative input on how to handle this is very much appreciated ;) Cheers, Gerolf On Thu, May 8, 2008 at 10:13 AM, Java Programmer [EMAIL PROTECTED] wrote: Hello, I have use MultiFileUploadField for uploading pictures, everything works fine but when I use e.g. setMaxSize(Bytes.kilobytes(1024)) on the form and try to upload larger picture or pictures than limit, I got only one message about hitting limit size, and other fildes are not checked this time (e.g. required text fields). There is also problem with backuping fields from model after such sending, some fields are set up, and some remains empty. I have read about Notice that this component clears its model at the end of the request, so the uploaded files MUST be processed within the request they were uploaded., but I don't think it's the problem. I try to use 2 models one CompoundPropertyModel for texts on form, and one for new MultiFileUploadField(UPLOADS, new Model(new ArrayListFileUpload()), MAX_PICTURES_TO_UPLOAD); (earlier I had everything in CompoundPropertyModel). Anybody knows what could be wrong? Best regards, Adr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutoCompleteTextField type mismatch in line 227
it's fixed in the upcoming 1.3.4 and the already release 1.4-M1 Gerolf On Thu, May 8, 2008 at 10:20 PM, taygolf [EMAIL PROTECTED] wrote: Yes I am just starting to try and get the autocompletetextfield working on my app and I am using wicket 1.3. as well and it is doing the same thing. It is throwing a js type mismatch error. Works fine in firefox but not in IE. Did you figure out the problem? T Niels Bo wrote: Hi I just swithed from 1.3.2 to 1.3.3 and that resultet in a javascript error type mismatch in line 227, wich is this line in wicket-autocomplete.js: menu.style.zIndex=index==auto?index:Number(index)+1; Only in IE (6.0) - firefox works fine. Does anyone else see this problem? Niels -- View this message in context: http://www.nabble.com/AutoCompleteTextField-%22type-mismatch%22-in-line-227-tp16560166p17135623.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutoCompleteTextField type mismatch in line 227
in case you mean [0], that's going to be dealt with probably tomorrow ;) [0] https://issues.apache.org/jira/browse/WICKET-1595 On Fri, May 9, 2008 at 1:52 AM, Hoover, William [EMAIL PROTECTED] wrote: Although, it still has some issues when dealing with mouseover and keyboard events combo ;o) -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 4:23 PM To: users@wicket.apache.org Subject: Re: AutoCompleteTextField type mismatch in line 227 it's fixed in the upcoming 1.3.4 and the already release 1.4-M1 Gerolf On Thu, May 8, 2008 at 10:20 PM, taygolf [EMAIL PROTECTED] wrote: Yes I am just starting to try and get the autocompletetextfield working on my app and I am using wicket 1.3. as well and it is doing the same thing. It is throwing a js type mismatch error. Works fine in firefox but not in IE. Did you figure out the problem? T Niels Bo wrote: Hi I just swithed from 1.3.2 to 1.3.3 and that resultet in a javascript error type mismatch in line 227, wich is this line in wicket-autocomplete.js: menu.style.zIndex=index==auto?index:Number(index)+1; Only in IE (6.0) - firefox works fine. Does anyone else see this problem? Niels -- View this message in context: http://www.nabble.com/AutoCompleteTextField-%22type-mismatch%22-in-lin e-227-tp16560166p17135623.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pros and cons of WicketBench
On Fri, May 2, 2008 at 10:05 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: however, it does have its problems. eclipse' java editor is not built with embedding in mind, so once you start using (2) you will miss out on such useful things as mark occurences, double clicking the left border to set a breakpoint ( right clicking still works ), ctrl clicking into a class wont always work, etc. i think the idea is awesome, too bad eclipse makes it so hard to implement :( do you know (or can you estimate) what needs to be done to make the java editor more flexible regarding these issues? since we have a spy in the eclipse camp (*cough* johan *cough*), it's maybe worth a try. Gerolf P.S.: yes, i know johan isn't part of the JDT team ;) -igor On Fri, May 2, 2008 at 12:15 PM, Frank Silbermann [EMAIL PROTECTED] wrote: When I was developing in Wicket 1.2 I used Jbuilder 2006; it was what the employer provided. Other developers, however, use Eclipse for their (non-Wicket) projects, and Jbuilder 2007/8 are Eclipse-based, so I figured might might as well start my Wicket 1.3 experiments using Eclipse. What are the pros and (if any) cons of using the Wicket Bench plug-in? Is it worth setting up if all I'm really going to be doing is (perhaps) to upgrade a Wicket 1.2 application to Wicket 1.3? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: way to traverse / get all form validators
there is final ListIValidator getValidators() {...} on FormComponent Gerolf On Fri, May 2, 2008 at 4:17 PM, michalb_cz [EMAIL PROTECTED] wrote: Is there some way how to traverse all validators which are associated (added through the add(IValidator) method) with the form? I look for something like get(IValidator) [like List.get(Object obj) method] or ListIValidator getValidators() methods on Form component -- View this message in context: http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JmxPanel
heh, didn't think of that ;) the correct way would be to override the methode getDomainFilter and return IDomainFilter.ALL (or something like that) Gerolf On Wed, Apr 30, 2008 at 11:49 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: YESS! You are right, now it works. Thank you, Paolo On Wed, Apr 30, 2008 at 11:15 AM, Benjamin Ernst [EMAIL PROTECTED] wrote: Hi Paolo, I had just the same problem as you. The display:none has nothing to do with this. It just hides the root of the tree. The problem was that the domain is skipped, because it doesen´t have the same name as my Application. So I removed the the filter part from the createTreeModel()-Method in the JmxPanel.java like this: // process all available domains for (int i = 0; i domains.length; i++) { // skip unwanted domains *//if (!getDomainFilter().accept(domains[i])) //{ //continue; //}* // create domain tree node and add to root JmxTreeNode domain = new JmxTreeNode(domains[i], null); rootNode.add(domain); .. Now I can see all domains in my jmx-Panel I hope it helps. Benjamin On Wed, Apr 23, 2008 at 11:09 PM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: No. Just a plain html page without any custom css. What version of Wicket/Wicket-stuff-jmx-panel are you using ? Thanks, // Paolo On Wed, Apr 23, 2008 at 7:20 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: nope, did the same thing you did. do you have any custom css that might cause this? Gerolf On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Absolutely, JMX feature is enabled. I'm adding a JmxPanel in my page using a simple: add(new JmxPanel(jmx)); but nothing is displayed .. You have it working? Have you used any trick? // Paolo On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: Paolo, I'm not sure where the display:none comes from, but i'm pretty sure it's not from the JmxPanel. do you have jmx enabled at all? Gerolf On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Guys, someone has soem experience with the nice JmxPanel describe here? http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/ Adding a JmxPanel instance to my page I always get the following EMPTY panel .. div class=jmxTreePanel table tr tddiv id=tree1 class=jmxTree div style=display:none id=tree1_0/div /div/td tddiv id=detailPanel2 /div/td /tr /table /div div style=clear:both/div Any ideas ? Thanks. // Paolo
Re: wicket-spring-annot 1.4-m1?
such information is usually found in the migration notes: http://cwiki.apache.org/WICKET/migrate-14.html Gerolf On Wed, Apr 30, 2008 at 4:49 PM, James Carman [EMAIL PROTECTED] wrote: ok, thanks. That makes sense. On Wed, Apr 30, 2008 at 10:32 AM, Leszek Gawron [EMAIL PROTECTED] wrote: James Carman wrote: Is this gone now that 1.4 is JDK5+? Is this stuff just bundled in with wicket-spring? yes -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rendering the navigation toolbar
On Tue, Apr 29, 2008 at 11:00 AM, Eyal Golan [EMAIL PROTECTED] wrote: wow!! cool. That was so educational :) Thanks. np :) If I change this, it will change EVERYTHING, right? yes, this is the setting for all disabled links. What if I want to do something like: em style=color: green; only for this PNL ? Is there a way? there are numerous ;) you could add a SimpleAttributeModifier to the specific PNL: PNL link = new PNL(...); link.add(new SimpleAttributeModifier(class, green) { public boolean isEnabled() { return !getComponent().isEnabled(); } } you could easily achieve the same result with overriding PNL#onComponentTag ... Gerolf
Re: rendering the navigation toolbar
instead of the custom AbstractBehavior, you could add an AttributeAppender like this: link.add(new AttributeAppender(class, true, new Model(disabledPaginLink), ) { public boolean isEnabled() { return !getComponent().isEnabled(); } }); Gerolf On Tue, Apr 29, 2008 at 1:09 PM, Eyal Golan [EMAIL PROTECTED] wrote: thanks, here's what I did. 1. I have a StyledAjaxNavigationToolbar that overrides: @Override protected PagingNavigator newPagingNavigator(String navigatorId, final DataTable table) { return new StyledAjaxPagingNavigator(navigatorId, table); } 2. Then my StyledAjaxPagingNavigator overrides: @Override protected PagingNavigation newNavigation(IPageable pageable, IPagingLabelProvider labelProvider) { return new StyledAjaxPagingNavigation(navigation, pageable, labelProvider); } 3. StyledAjaxPagingNavigation overrides: @Override protected Link newPagingNavigationLink(String id, IPageable pageable, int pageIndex) { Link link = super.newPagingNavigationLink(id, pageable, pageIndex); link.add(new AbstractBehavior() { private static final long serialVersionUID = 1L; @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); if (!component.isEnabled()) { CharSequence oldClassName = tag.getString(class); if (oldClassName == null || oldClassName.equals()) { tag.put(class, disabledPagingLink); } else { tag.put(class, oldClassName + + disabledPagingLink); } } } }); return link; } And then, in the CSS file I do whatever I want... And now, is this the best way to access the PNL ? Was I able to get the newPagingNavigationLink with less overridden classes? And thanks for you help. I really enjoy this Wicket stuff!! It's so wicked ;) On Tue, Apr 29, 2008 at 12:43 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: On Tue, Apr 29, 2008 at 11:00 AM, Eyal Golan [EMAIL PROTECTED] wrote: wow!! cool. That was so educational :) Thanks. np :) If I change this, it will change EVERYTHING, right? yes, this is the setting for all disabled links. What if I want to do something like: em style=color: green; only for this PNL ? Is there a way? there are numerous ;) you could add a SimpleAttributeModifier to the specific PNL: PNL link = new PNL(...); link.add(new SimpleAttributeModifier(class, green) { public boolean isEnabled() { return !getComponent().isEnabled(); } } you could easily achieve the same result with overriding PNL#onComponentTag ... Gerolf -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Re: autocomplete: no popup when field is empty
right, but since it's in extensions, everything has to be homegrown :/ On Wed, Apr 23, 2008 at 11:11 PM, Johan Compagner [EMAIL PROTECTED] wrote: not by us ;) Gerolf is ofcourse using a standard fully tested lib right ;) On Wed, Apr 23, 2008 at 10:58 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: heh, that is 10kb more of javascript to maintain -igor On Wed, Apr 23, 2008 at 12:40 PM, Johan Compagner [EMAIL PROTECTED] wrote: i really dont care about a 3kb or 13kb script .. Those are cached anyway so thats fine by me its not that it its 100kb+ or something like that johan On Wed, Apr 23, 2008 at 8:34 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: i _could_ use something from a combobox i did some time ago: http://people.apache.org/~gseitz/combo/http://people.apache.org/%7Egseitz/combo/ http://people.apache.org/%7Egseitz/combo/ http://people.apache.org/%7Egseitz/combo/ http://people.apache.org/%7Egseitz/combo/ but that script is 13kb (unstripped) compared to wicket-autocomplete 3k (stripped) and it's based on YUI... On Wed, Apr 23, 2008 at 4:49 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: k, it's basically done. if the list is longer than the browser's height, scrolling with both the keyboard and the mouse either feels kinda awkward (because the entire page gets scrolled with .scrollIntoView) or even impossible. what we could do now is the following: put the list in another div with style overflow:scroll; height: XYpx; this way scrollIntoView does not affect the entire page. now if anyone can think of better names than allowEmptyInput or showListOnEmptyInput i will happily use the better suggestions ;) Gerolf On Wed, Apr 23, 2008 at 4:26 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: nah, i think this should be pretty straight forward. let me take a look. Gabriel, can you file a jira issue for that? thanks. Gerolf On Wed, Apr 23, 2008 at 4:14 PM, Johan Compagner [EMAIL PROTECTED] wrote: I guess this is being done because when nothing is typed there is normally no list? Gerolf do you see any problem making this configurable so that it does show always a list if there are values? johan On Wed, Apr 23, 2008 at 2:53 PM, Gabriel Erzse [EMAIL PROTECTED] wrote: Hi, I am using the autocomplete feature of Wicket, and I would like the user to see the entire list of available values when the input field is empty. Then, as he starts typing values in the input field, the list of values will narrow down. However I see that when the input field is empty, the popup for autocomplete is not displayed (for example when I press down arrow). I searched in the wicket code and I saw that in file wicket-autocomplete.js, in function doUpdateChoices there are two checks for the situation when the input field is empty. These checks don't allow for the popup to be visible. So, my questions would be: does anyone know why this was done so, and can I somehow disable this behavior? I would find it really useful to be able to display a list of values even when the input field is empty. Thank you, Gabi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JmxPanel
Paolo, I'm not sure where the display:none comes from, but i'm pretty sure it's not from the JmxPanel. do you have jmx enabled at all? Gerolf On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Guys, someone has soem experience with the nice JmxPanel describe here? http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/ Adding a JmxPanel instance to my page I always get the following EMPTY panel .. div class=jmxTreePanel table tr tddiv id=tree1 class=jmxTree div style=display:none id=tree1_0/div /div/td tddiv id=detailPanel2 /div/td /tr /table /div div style=clear:both/div Any ideas ? Thanks. // Paolo
Re: autocomplete: no popup when field is empty
nah, i think this should be pretty straight forward. let me take a look. Gabriel, can you file a jira issue for that? thanks. Gerolf On Wed, Apr 23, 2008 at 4:14 PM, Johan Compagner [EMAIL PROTECTED] wrote: I guess this is being done because when nothing is typed there is normally no list? Gerolf do you see any problem making this configurable so that it does show always a list if there are values? johan On Wed, Apr 23, 2008 at 2:53 PM, Gabriel Erzse [EMAIL PROTECTED] wrote: Hi, I am using the autocomplete feature of Wicket, and I would like the user to see the entire list of available values when the input field is empty. Then, as he starts typing values in the input field, the list of values will narrow down. However I see that when the input field is empty, the popup for autocomplete is not displayed (for example when I press down arrow). I searched in the wicket code and I saw that in file wicket-autocomplete.js, in function doUpdateChoices there are two checks for the situation when the input field is empty. These checks don't allow for the popup to be visible. So, my questions would be: does anyone know why this was done so, and can I somehow disable this behavior? I would find it really useful to be able to display a list of values even when the input field is empty. Thank you, Gabi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: autocomplete: no popup when field is empty
k, it's basically done. if the list is longer than the browser's height, scrolling with both the keyboard and the mouse either feels kinda awkward (because the entire page gets scrolled with .scrollIntoView) or even impossible. what we could do now is the following: put the list in another div with style overflow:scroll; height: XYpx; this way scrollIntoView does not affect the entire page. now if anyone can think of better names than allowEmptyInput or showListOnEmptyInput i will happily use the better suggestions ;) Gerolf On Wed, Apr 23, 2008 at 4:26 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: nah, i think this should be pretty straight forward. let me take a look. Gabriel, can you file a jira issue for that? thanks. Gerolf On Wed, Apr 23, 2008 at 4:14 PM, Johan Compagner [EMAIL PROTECTED] wrote: I guess this is being done because when nothing is typed there is normally no list? Gerolf do you see any problem making this configurable so that it does show always a list if there are values? johan On Wed, Apr 23, 2008 at 2:53 PM, Gabriel Erzse [EMAIL PROTECTED] wrote: Hi, I am using the autocomplete feature of Wicket, and I would like the user to see the entire list of available values when the input field is empty. Then, as he starts typing values in the input field, the list of values will narrow down. However I see that when the input field is empty, the popup for autocomplete is not displayed (for example when I press down arrow). I searched in the wicket code and I saw that in file wicket-autocomplete.js, in function doUpdateChoices there are two checks for the situation when the input field is empty. These checks don't allow for the popup to be visible. So, my questions would be: does anyone know why this was done so, and can I somehow disable this behavior? I would find it really useful to be able to display a list of values even when the input field is empty. Thank you, Gabi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JmxPanel
nope, did the same thing you did. do you have any custom css that might cause this? Gerolf On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Absolutely, JMX feature is enabled. I'm adding a JmxPanel in my page using a simple: add(new JmxPanel(jmx)); but nothing is displayed .. You have it working? Have you used any trick? // Paolo On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: Paolo, I'm not sure where the display:none comes from, but i'm pretty sure it's not from the JmxPanel. do you have jmx enabled at all? Gerolf On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Guys, someone has soem experience with the nice JmxPanel describe here? http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/ Adding a JmxPanel instance to my page I always get the following EMPTY panel .. div class=jmxTreePanel table tr tddiv id=tree1 class=jmxTree div style=display:none id=tree1_0/div /div/td tddiv id=detailPanel2 /div/td /tr /table /div div style=clear:both/div Any ideas ? Thanks. // Paolo
Re: autocomplete: no popup when field is empty
i _could_ use something from a combobox i did some time ago: http://people.apache.org/~gseitz/combo/http://people.apache.org/%7Egseitz/combo/ but that script is 13kb (unstripped) compared to wicket-autocomplete 3k (stripped) and it's based on YUI... On Wed, Apr 23, 2008 at 4:49 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: k, it's basically done. if the list is longer than the browser's height, scrolling with both the keyboard and the mouse either feels kinda awkward (because the entire page gets scrolled with .scrollIntoView) or even impossible. what we could do now is the following: put the list in another div with style overflow:scroll; height: XYpx; this way scrollIntoView does not affect the entire page. now if anyone can think of better names than allowEmptyInput or showListOnEmptyInput i will happily use the better suggestions ;) Gerolf On Wed, Apr 23, 2008 at 4:26 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: nah, i think this should be pretty straight forward. let me take a look. Gabriel, can you file a jira issue for that? thanks. Gerolf On Wed, Apr 23, 2008 at 4:14 PM, Johan Compagner [EMAIL PROTECTED] wrote: I guess this is being done because when nothing is typed there is normally no list? Gerolf do you see any problem making this configurable so that it does show always a list if there are values? johan On Wed, Apr 23, 2008 at 2:53 PM, Gabriel Erzse [EMAIL PROTECTED] wrote: Hi, I am using the autocomplete feature of Wicket, and I would like the user to see the entire list of available values when the input field is empty. Then, as he starts typing values in the input field, the list of values will narrow down. However I see that when the input field is empty, the popup for autocomplete is not displayed (for example when I press down arrow). I searched in the wicket code and I saw that in file wicket-autocomplete.js, in function doUpdateChoices there are two checks for the situation when the input field is empty. These checks don't allow for the popup to be visible. So, my questions would be: does anyone know why this was done so, and can I somehow disable this behavior? I would find it really useful to be able to display a list of values even when the input field is empty. Thank you, Gabi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: option transfer widget
there is Palette in wicket-extensions. Gerolf On Tue, Apr 22, 2008 at 6:36 PM, Niels van Kampenhout [EMAIL PROTECTED] wrote: Hi all Before I write it myself, is there any component in Wicket stuff or somewhere else like the option transfer on [1]. I couldn't find it, but I don't know what the generally accepted name for such a widget is which makes searching a little difficult. Shouldn't be too difficult to write but if it's readily available ;-) thanks Niels [1] http://www.mattkruse.com/javascript/optiontransfer/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to disable dates in Wicket Date Picker ?
public class MyDatePicker extends DatePicker { private static final long serialVersionUID = 1L; private static final SimpleDateFormat format = new SimpleDateFormat(MM/dd/); @SuppressWarnings(unchecked) @Override protected void configure(Map widgetProperties) { super.configure(widgetProperties); // set minimal date Date minDate = getMinDate(); widgetProperties.put(mindate, format.format(minDate)); // set maximal date Date maxDate = getMaxDate(); widgetProperties.put(maxdate, format.format(maxDate)); } } Gerolf On Mon, Apr 21, 2008 at 3:02 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, Is it possible to programatically disable dates that have passed in wicket's date picker. for exampleI want to disable all the dates before today's day. Can someone please give an example? Thanks, ~ R -- View this message in context: http://www.nabble.com/Is-it-possible-to-disable-dates-in-Wicket-Date-Picker---tp16807706p16807706.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementing AutoComplete Issue
this is fixed for 1.3.4 Gerolf On Mon, Apr 21, 2008 at 3:50 PM, Ricky [EMAIL PROTECTED] wrote: Hi, I have implemented autocomplete using 1.3.3. examples in wicket stuff. It is working fine in firefox, however doesnt work in IE. Is there a fix for this ? Is scriptaculous thing the answer ? if so can someone point me to the example source or give me a rough idea ? thanks Rick
Re: Implementing AutoComplete Issue
to quote johan, maybe in about 1-2 weeks. Gerolf On Mon, Apr 21, 2008 at 7:34 PM, Ricky [EMAIL PROTECTED] wrote: But there isn't a 1.3.4 in very near future is it ? Btw, Scriptaculous is down ... (the detail documentation i mean, that simple source doesn't tell you that much) On Mon, Apr 21, 2008 at 10:27 AM, Gerolf Seitz [EMAIL PROTECTED] wrote: this is fixed for 1.3.4 Gerolf On Mon, Apr 21, 2008 at 3:50 PM, Ricky [EMAIL PROTECTED] wrote: Hi, I have implemented autocomplete using 1.3.3. examples in wicket stuff. It is working fine in firefox, however doesnt work in IE. Is there a fix for this ? Is scriptaculous thing the answer ? if so can someone point me to the example source or give me a rough idea ? thanks Rick
Re: Form clear
you have to clear the model of the form(components). so either set a new (empty) model object for the form (in combination with a compoundpropertymodel) or you have to reset the models of the formcomponents somehow one by one... Gerolf On Fri, Apr 18, 2008 at 8:53 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I have an user Form that is posted with AjaxFallbackButton. When the forms gets submitted without error I want to clear the form. How can I reset the form? -- View this message in context: http://www.nabble.com/Form-clear-tp16760778p16760778.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging every request into db
you could do that in your own WebRequestCycle subclass in the onBeginRequest method. Gerolf On Thu, Apr 17, 2008 at 10:12 AM, Artur W. [EMAIL PROTECTED] wrote: Hi! I need to log every request (session id, ip address, user id, url, response time etc) into db. The code is simply: RequestCycle requestCycle = RequestCycle.get(); HttpServletRequest servletRequest = ((WebRequest)requestCycle.getRequest()).getHttpServletRequest(); AdminSession adminSession = (AdminSession) requestCycle.getSession(); log.info(adminSession.getId() + + servletRequest.getRemoteAddr() + + adminSession.getWorkerId() + + servletRequest.getRequestURL() + + (System.currentTimeMillis() - requestCycle.getStartTime())); But I don't know where to put it. I tried to add it the the WicketFilter: public class MyWicketFilter extends WicketFilter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { super.doFilter(request, response, chain); RequestCycle requestCycle = RequestCycle.get(); // logging goes here } } But RequestCycle.get() returns null. I will appreciate any suggestions. Thanks, Artur -- View this message in context: http://www.nabble.com/Logging-every-request-into-db-tp16740900p16740900.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I use LazyLoad or something like it with a modal?
take a look at AjaxLazyLoadPanel. this might do the trick. Gerolf On Wed, Apr 16, 2008 at 4:52 PM, taygolf [EMAIL PROTECTED] wrote: Ok here is my issue. I have a modal that has a lot of information in it and it has to get back a large amount of data from the database and it is taking about 4 seconds to load because of all the data. I wish I was allowed to fliter the data more so there was not so much information but I do not get to make that decision. Anyway when you click on the button to open the modal it takes about 4 or 5 seconds for the modal window to open. I would like to have something like lazyload has come up and show that the application is working and loading the modal instead of the screen just sitting there. If it just sits there while it is trying to load the user will click the button multiple times thinking the application is broken. So can I Lazy load a modal window? Or is there a better approach to tellign the user to wait for 5 seconds for the modal window to open? Thanks T -- View this message in context: http://www.nabble.com/Can-I-use-LazyLoad-or-something-like-it-with-a-modal--tp16722524p16722524.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Override IE AutoComplete with wicket's AutoCompleteTextField
On Wed, Apr 16, 2008 at 11:12 PM, Ryan Sonnek [EMAIL PROTECTED] wrote: the wicketstuff-scriptaculous project adds an attribute autocomplete='off' to prevent browsers from adding their specific autocomplete suggestions. and so does the AutoCompleteTextField Gerolf On Wed, Apr 16, 2008 at 4:10 PM, ak [EMAIL PROTECTED] wrote: Hello, I have implemented wicket AutoCompleteBehavior on TextField. All seems to work fine until I stumbled upon this issue. Example when I type 'A', I see IE's auto complete overlapping my wicket implementation of autocomplete behaviour with previously recorded value(example 'Apple'). However, I expect the user to enter couple of words to kickin behind the scene's logic. But right now say if a user selects from IE's autocomplete then my code fails. Do you know if I can override IE's autocomplete from my code or any better way to solve this issue. I want the user to select only from the values shown using wicket's autocomplete. Your thoughts are much appreciated! Andy -- View this message in context: http://www.nabble.com/Override-IE-AutoComplete-with-wicket%27s-AutoCompleteTextField-tp16733561p16733561.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-Complete TextField Problem
it's fixed in trunk for 1.3.4 and 1.4M1 Gerolf On Tue, Apr 15, 2008 at 12:25 PM, Vatroslav [EMAIL PROTECTED] wrote: Hi, I've problem with AutoCompleteTextField with IE6 and Wicket 1.3.3.installed on Tomcat6 and/or Jetty6. Online example: http://www.wicketstuff.org/wicket13/ajax/autocomplete works perfectly. When I type letters, drop down list is refreshed and updated accordingly to typed text. I suppose it is built with older Wicket version. But, when I deploy wicket examples war to my local Tomcat6 or Jetty6 instance, problem arises. Only first key press is recognized, list with choices appears, but js error occurs: Line: 190 Char:1 Error: Type mismatch Code: 0 URL: http://localhost:8080/wicket-examples-1.3.3./ajax/autocomplete.0 Everything works fine with FireFox2. But, after deploying 1.3.2 examples, Auto-Complete TextField Example works in all browsers. Something is broken with bugfixing and changing of AutoCompleteTextField component in 1.3.3. release. Regards, Vatroslav -- View this message in context: http://www.nabble.com/Auto-Complete-TextField-Problem-tp16698982p16698982.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CompoundPropertyModel need to track changes
On Mon, Apr 14, 2008 at 1:05 PM, Maurice Marrink [EMAIL PROTECTED] wrote: Hmm, it should try to use bean methods before trying the field directly. you could try changing the wicket id of your formcomponent to the full method name, e.g. setLastname() if your property is lastname. If that does not work, it might indicate a problem with your getters and setters. it could also be that he only provided a getter or a setter and not both. in this case, the field is accessed directly. Gerolf An alternative way to intercept changes (only those coming through the compoundmodel) is to override CompoundPropertyModel#wrapOnInheritance(Component) and return a model similar to AttachedCompoundPropertyModel where you overwrite the setObject method to listen for changes. Unfortunately you cannot extend it because it is private so you have to copy paste it. Maurice On Mon, Apr 14, 2008 at 5:37 AM, Karen Schaper [EMAIL PROTECTED] wrote: Hi, I am using a CompoundPropertyModel. CompoundPropertyModel personModel = new CompoundPropertyModel( person ); Form_editForm= new EditPersonForm( editForm, personModel ) ; Upon submitting the form, I thought that the setter methods would be called on the person object. How is the person object updated? The code in the setter methods of person are not called. Am I missing something? I want to track changes in my object and I wanted to check for the change in the setter methods of the person object. Thanks for any help. It is greatly appreciated! Karen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DatePicker Simple Question
iirc, the default behavior is that you can click on the month, and then an advanced month/year selection will be displayed. if that's not the case, you need to override Datepicker#enableMonthYearSelection and return true. Gerolf On Sat, Apr 12, 2008 at 4:37 AM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Please, The default behavior of the current datepicker allows users to scroll month by month, how can datepicker be configured to scroll year by year? thanks
Re: Is there a Wicket spinner component?
the spinner in wicketstuff-minis should do the trick. Gerolf On Wed, Apr 9, 2008 at 2:00 PM, Martijn Lindhout [EMAIL PROTECTED] wrote: Something like this: http://www.eclipse.org/swt/R3_1/spinner.png -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: em tag in Link
in Application.init(): getMarkupSettings().setDefaultBeforeDisabledLink(); getMarkupSettings().setDefaultAfterDisabledLink(); Gerolf On Wed, Apr 9, 2008 at 5:32 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: Hi All, I was wondering if there's a way to get rid of the added em tag every time I disable the Link component? Thanks, Wen Tong -- The only constant in life is change. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: customize SignInPanel look and feel
or, you can really use roll your own. last time i used it (for a small project for my studies), it felt like it wasn't actually made with customization in mind. and iirc, it's in the wicket-auth-roles project, so it's basically an example on how to do it. Gerolf On Wed, Apr 9, 2008 at 10:48 PM, James Carman [EMAIL PROTECTED] wrote: extend it On Wed, Apr 9, 2008 at 4:46 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, How do I customize the markup for the stock SignInPanel? Thanks ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicketstuff-jmx-panel: can't find a repository
Hi Ivo, you can find the release built for the current/upcoming wicket release 1.3.3 at http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-jmx-panel/1.3.3/ let me know when you encounter any issues. Gerolf On Mon, Apr 7, 2008 at 9:26 AM, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi Gerolf, Great to have this available in a repository. We're using this now in a project and we're really satisfied. One problem though is that we're using maven:release to release our projects and it refuses to release with snapshot dependencies (as it should :)). Could we perhaps bother you to make a release of wicket-jmx-panel? It seems stable enough. Thanks in advance, Ivo van Dongen On Fri, Mar 7, 2008 at 4:00 AM, Gerolf Seitz [EMAIL PROTECTED] wrote: done, wicketstuff-jmx-panel is in the wicketstuff.org maven repository dependency groudIdorg.wicketstuff/groupId artifactIdwicketstuff-jmx-panel/artifactId version1.3-SNAPSHOT/version /dependency cheers, Gerolf On Wed, Mar 5, 2008 at 12:13 PM, Rommert de Bruijn [EMAIL PROTECTED] wrote: Hi, I'm setting up a small PoC web application with JMX, Spring Wicket. Among other things I'm using the JmxPanel component by Gerolf Seitz. which I checked out here: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jmx-panel/ The JmxPanel component works like a charm, so I'd like to add a dependency for the wicketstuff-jmx-panel artifact to my project. Unfortunately, I can't seem to find a repository that contains the wicketstuff-jmx-panel artifact at all. For now, I created a .jar from the svn checkout and added it to our local repository, but it would be preferable to use a public repository. Can anyone help me out? Thanks in advance, Rommert -- Rommert de Bruijn Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500
Re: DataPicker problem
you don't have joda-time in your classpath. Gerolf On Fri, Apr 4, 2008 at 9:55 AM, lienok [EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello, I am following book Enjoying web development with wicket, using Wicket 1.3.2. Everythink worked fine till I added form.add(quoteDate). Please check code and stack trace below and let me know any advice. Thank you public class GetQuoteSymbol extends WebPage { private Model model; private Model dateModel; public GetQuoteSymbol() { FeedbackPanel feedback = new FeedbackPanel(msgs); add(feedback); Form form = new Form(f) { protected void onSubmit() { String sym = (String) model.getObject(); Date date = (Date) dateModel.getObject(); int stockValue = (sym + date.toString()).hashCode() % 100; QuoteResult quoteResult = new QuoteResult(stockValue); setResponsePage(quoteResult); } }; model = new Model(); List symbols = new ArrayList(); symbols.add(MSFT); symbols.add(IBM); symbols.add(RHAT); DropDownChoice symbol = new DropDownChoice(sym, model, symbols); symbol.setRequired(true); form.add(symbol); dateModel = new Model(); TextField quoteDate = new TextField(quoteDate, dateModel, Date.class); quoteDate.setRequired(true); quoteDate.add(new DatePicker()); //HERE IS A PROBLEM form.add(quoteDate); add(form); } } stack trace: WicketMessage: Can't instantiate page using constructor public com.myapp.stockquote.GetQuoteSymbol() Root cause: java.lang.ClassNotFoundException: org.joda.time.DateTime at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.apache.wicket.extensions.yui.calendar.DatePicker.class$(DatePicker.java:86) at org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern(DatePicker.java:438) at org.apache.wicket.extensions.yui.calendar.DatePicker.checkComponentProvidesDateFormat(DatePicker.java:296) at org.apache.wicket.extensions.yui.calendar.DatePicker.bind(DatePicker.java:129) at org.apache.wicket.Component.add(Component.java:922) at com.myapp.stockquote.GetQuoteSymbol.init(GetQuoteSymbol.java:57) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at
Re: StackOverflowError using 1.3.2
i was able to reproduce it in a quickstart. see WICKET-1476 Gerolf On Wed, Apr 2, 2008 at 9:02 PM, Johan Compagner [EMAIL PROTECTED] wrote: if we have a quickstart for this we could look for the solution... On Wed, Apr 2, 2008 at 8:26 PM, André Souza [EMAIL PROTECTED] wrote: I have the exactly same problem. Someone found the solution? On Tue, Apr 1, 2008 at 6:09 PM, Johan Compagner [EMAIL PROTECTED] wrote: do you have a unit test or quickstart for this? johan On Tue, Apr 1, 2008 at 10:57 PM, Mark Lichtenberg [EMAIL PROTECTED] wrote: Hi, We've been experiencing StackOverflowErrors when our application is under a load of around 4 sessions, mostly clicks to load pages without necessarily waiting for the previous click to finish. I saw this was addressed with jira issue 1365, and was part of 1.3.2, which we are using. For good measure, we took out all instance variables referencing Page objects, which was mentioned in the jira issue, but this did not help either. We also tried the wicket nightly today, but got the same results. Seems to be due to page deserialization - a snippet of the exception is below. Any help would be greatly appreciated. 11:15:15,497 ERROR [[default]] Servlet.service() for servlet default threw exception java.lang.StackOverflowError at java.io.ObjectInputStream $PeekInputStream.read(ObjectInputStream.java:2213) at java.io.ObjectInputStream $PeekInputStream.readFully(ObjectInputStream.java:2226) at java.io.ObjectInputStream $BlockDataInputStream.readUTFBody(ObjectInputStream.java:2963) at java.io.ObjectInputStream $BlockDataInputStream.readUTF(ObjectInputStream.java:2764) at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1032) at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java :600) at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java: 789) at java.io.ObjectInputStream.readNonProxyDesc( ObjectInputStream.java: 1534) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java :1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java: 1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at java.util.HashSet.readObject(HashSet.java:278) at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeReadObject( ObjectStreamClass.java: 946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java: 1809) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java: 1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1305) at java.io.ObjectInputStream.defaultReadFields( ObjectInputStream.java: 1908) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java: 1832) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java: 1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at java.util.HashMap.readObject(HashMap.java:1067) at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeReadObject( ObjectStreamClass.java: 946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java: 1809) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java: 1719) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java: 1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.apache.wicket.util.lang.Objects.byteArrayToObject( Objects.java: 392) at org .apache .wicket .protocol .http .pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228) at org .apache .wicket .protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore
Re: convert open-close to open
what's the use case for doing that? Gerolf On Mon, Mar 31, 2008 at 4:32 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, How can I convert a tag that is of type open-close: input bla bla bla / to input bla bla /input ? The API says that I should not use the setTag(XmlTag) method. If I do I get all kind of exceptions. Second question: How will I close it? I do all the above in the onComponentTag method. Thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Re: convert open-close to open
yes, this is what happens to span wicket:id=myLabel/ all the time. also with wicket:message key=key/, ... Gerolf On Mon, Mar 31, 2008 at 9:04 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Is it even something wicket supports? Gerolf Seitz wrote: what's the use case for doing that? Gerolf On Mon, Mar 31, 2008 at 4:32 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, How can I convert a tag that is of type open-close: input bla bla bla / to input bla bla /input ? The API says that I should not use the setTag(XmlTag) method. If I do I get all kind of exceptions. Second question: How will I close it? I do all the above in the onComponentTag method. Thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: convert open-close to open
well, not wrt the blablabla thing, but it does change open-close tags to open-body-close. On Mon, Mar 31, 2008 at 9:12 PM, Johan Compagner [EMAIL PROTECTED] wrote: No, wicket doesnt alter html like that On 3/31/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Is it even something wicket supports? Gerolf Seitz wrote: what's the use case for doing that? Gerolf On Mon, Mar 31, 2008 at 4:32 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, How can I convert a tag that is of type open-close: input bla bla bla / to input bla bla /input ? The API says that I should not use the setTag(XmlTag) method. If I do I get all kind of exceptions. Second question: How will I close it? I do all the above in the onComponentTag method. Thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: creating dynamic text in web page
Or, if you need to parameterize a larger portion of javascript, you can use TextTemplates. (see DatePicker in wicket-datetime as an example) Gerolf On Fri, Mar 28, 2008 at 11:46 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Another option: add(new Label(js, script type=\text/javascript\alert('foo');/script).setEscapeModelStrings(false)); On 3/28/08, Joel Halbert [EMAIL PROTECTED] wrote: OK, I figured it out.. I can add javascript like this using add(new StringHeaderContributor(insert my javascript here));: public class MyPage extends WebPage { public MyPage(long sessionKey, String uniqueUsername) { String js = script type='text/javascript' + ScriptSessionListener.notifyNewSessionClient( + sessionKey + , ' + uniqueUsername + ');/script; add(new StringHeaderContributor(js)); } } (of course the tidier version would be just to write out the variables, and have the js fn static on the page, but same deal) Thx Joel -- From: Joel Halbert [EMAIL PROTECTED] Sent: Friday, March 28, 2008 9:22 AM To: users@wicket.apache.org Subject: creating dynamic text in web page Hi All, I would like to be able to insert text dynamically in a wicket web page. An example would be where the arguments for a JavaScript function need to by dynamic: For example if I have something like this in my web page: script type='text/javascript' MyJavascriptObject.callMethod( ${sessionKey}, '${uniqueUsername}'); /script I would like the values of ${sessionKey} and ${uniqueUsername} to be populated dynamically. Many Thanks, Joel Halbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using PropertyModel in abstract class
org.apache.wicket.WicketRuntimeException: No get method defined for class: class com.domain.Child expression: filed looks like you mispelled the property name in the propertymodel constructor? Gerolf
Re: Setting text content of component
you can also roll your own TextLink very easily: class textlink extends link { public textlink(id, model) { super(id, model); } protected void onComponentTagBody(...) { replaceComponentTagBody(..., getModelObjectAsString()); } } this way you don't need a label inside the link. Gerolf On Wed, Mar 26, 2008 at 4:01 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: I keep stumbling about components where I'm (afaik) forced to add child components just to set their text content. Common examples are ListView items and Links. I'd like to set the text content of a li or a element without adding another child component (to give it a wicket:id and add a Label). Any solution to that? Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding new Link() to an img tag = weird default behavior
that's because Link only adds the onclick event handler for non anchor tags and browser only do the cursor and status bar thing for anchor tags by default. you already fixed the cursor issue and you can write text to the status bar via window.status = foo, although this doesn't work in IE7 and only somehow in opera and konqueror. i suggest you wrap the image with an anchor tag and attach the Link component to that. Gerolf On Thu, Mar 27, 2008 at 7:15 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, Yesterday I tried adding a new Link() to an img tag. I noticed that when you hover over the image the cursor doesn't change and the status bar doesn't say anything. I bet 9 times out of 10 you wouldn't want this behavior. I already fixed the cursor problem with CSS, how do I make the status bar display the right thing on hover? BTW, should I file this under a request for improvement? Thanks, Dan
Re: Problem with DatePicker
this is fixed in 1.3.2 Gerolf On Wed, Mar 26, 2008 at 11:42 AM, Fabien D. [EMAIL PROTECTED] wrote: Hi, I try to use a DatePicker like this : TextField date_version = new TextField(date_version, model_date_version, Date.class); date_version.setRequired(true); date_version.add(new DatePicker()); this.form_ajoutinfgeneral.add(date_version); I have import : import org.apache.wicket.extensions.yui.calendar.DatePicker; I'm using these librairies : wicket-datetime-1.3.1.jar and wicket-extensions-1.3.1.jar When I try to display my page, I have a problem, which is reported in my log file : java.lang.NoClassDefFoundError at org.apache.wicket.extensions.yui.calendar.DatePicker.class$( DatePicker.java:86) at org.apache.wicket.extensions.yui.calendar.DatePicker.getDatePattern( DatePicker.java:438) at org.apache.wicket.extensions.yui.calendar.DatePicker.checkComponentProvidesDateFormat (DatePicker.java:296) at org.apache.wicket.extensions.yui.calendar.DatePicker.bind(DatePicker.java :129) at org.apache.wicket.Component.add(Component.java:922) at com.mycompany.projet.PanelAjInfGeneral.initPage(Unknown Source) . I don't understand what is my mistake. Thank you in advance for your help. -- View this message in context: http://www.nabble.com/Problem-with-DatePicker-tp16299775p16299775.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Links, getting values from form text field
SubmitLink seems useful in this case. Gerolf On Tue, Mar 25, 2008 at 2:03 AM, BretChampoux [EMAIL PROTECTED] wrote: I've got a log on screen, ie user name and password with a submit button. That part works fine. I want to have a link on the screen that can be clicked on to email a password hint to the email associated to the username in the username form field. The problem is that I can't seem to be able to figure out how to get the value of the form text field in the link's onClick method. Can anyone point me int he right direction? Thanks in advance for any assistance. -- View this message in context: http://www.nabble.com/Links%2C-getting-values-from-form-text-field-tp16266151p16266151.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multipart-form with nested ajaxform throws exception in 1.3.1
it's fixed for 1.3.3 see https://issues.apache.org/jira/browse/WICKET-1442 Gerolf On Wed, Mar 12, 2008 at 11:14 PM, albert.brand [EMAIL PROTECTED] wrote: Michael Sparer wrote: I have a multipart-enabled form, inside this form there is a nested form with ajaxsubmitbehavior. to submit the nested form I'm using an AjaxButton (as the normal button doesn't submit the form via ajax - contrary to its behaviour if not used as nested form) all releases including 1.3.0 supported the submitting of the innerform and sent all of the nested form's fields to the server and came back in a neat ajax response. In 1.3.1 however the Exception java.lang.IllegalStateException: ServletRequest does not contain multipart content gets thrown. That indicates that the surrounding multipart form was submitted instead of just the nested form (and as multipart and ajax aren't close friends the exception gets thrown) isn't that supposed to work or is it, again, a hidden feature I was using? :-) regards, Michael I've been bitten by this bug too. I haven't looked into the problem, perhaps it's an idea to open a ticket? -- View this message in context: http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-exception-in-1.3.1-tp15975693p16013787.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel setVisible() in Ajax call
if you set the panel to be invisible on first render, you also have to call panel.setOutputMarkupPlaceholderTag(true) so that a hidden placeholder is rendered, which gets replaced with the real panel once you set it to visible and add it to the ajaxrequestarget. Gerolf On Fri, Mar 21, 2008 at 10:54 AM, Stephan Koch [EMAIL PROTECTED] wrote: Hi all, I have a Page with a DropDown Component and a Panel. The Panel displays some stuff based on the model object of the DropDown. In the constructor of my page, I set panel.setVisible(false) to prevent the panel from being rendered while the model object of the DropDown is null because the user has not yet selected an option. Now I want the Panel to be rendered once a valid choice is selected by the user. I tried this: protected void onEvent(AjaxRequestTarget target) { log.debug(ddMonth onChange triggered.); if(month != null) { reportPanel.setVisible(true); reportPanel.updatePanel(getServiceManager(), getUser(), month); target.addComponent(reportPanel); } } The event is triggered, the panel is not rendered though. Is there a way to achieve this without reloading the entire page? If not, how would I trigger a page reload from the onEvent method? Thanks, Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of own message in FeedbackPanel
because it's getValue() - capital V Gerolf On Fri, Mar 21, 2008 at 11:49 AM, Fabien D. [EMAIL PROTECTED] wrote: O_o sorry for this mistake I try this : email.add(new IValidator() { public void validate(IValidatable v) { if ( !CDataVerification.validEmail( (String)v.getvalue() ) ) v.add(new ValidationError().addMessageKey(error)); } }); I'm not an expert in java too It's not compiling : it don't find the method getvalue()... -- View this message in context: http://www.nabble.com/Display-of-own-message-in-FeedbackPanel-tp16182720p16196588.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple wicket:child/ panels like behaviour
you can provide factory methods in your base page like protected abstract Component newHeader(String id, IModel model); in the constructor of base page do: add(newHeader(header, someModelOrNull)); and just override/implement the factory method in your concrete page classes. hth, Gerolf On Thu, Mar 20, 2008 at 9:25 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I've searched the web and I see there are a lot of hits for what I'm looking for but I cannot quite pinpoint the perfect solution (easiest) for this simple thing. What I need is to be able to extend a base page and put into some places some extra panels. I designed the places in the base page. For only one panel, I can use wicket:child tag. If I need more than one panel inserted, how do I do that? Thanks, Cristi Manole
Re: Multiple wicket:child/ panels like behaviour
i agree with you. i had to fight similar problems and came up with similar (ugly) work arounds. let's see how the post-1.4 solution works out ;) Gerolf On Thu, Mar 20, 2008 at 10:12 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Gerolf Seitz wrote: you can provide factory methods in your base page like protected abstract Component newHeader(String id, IModel model); in the constructor of base page do: add(newHeader(header, someModelOrNull)); and just override/implement the factory method in your concrete page classes. hth, Gerolf I'll be so happy when multiple child is implemented, because I really think this is an anti-pattern. Basically, in the constructor of the base page you call an overridable method, which is terrible. For example you have in your subclass: public class MySubClass extends MyBaseClass { // my fields public int answer = 42; public MySubClass(int suppliedAnswer) { // implicit (or explicity call to super) super(); // init class state and establish class invariants // this stuff could be really complicated! if (suppliedAnswer != -1) { answer = suppliedAnswer; } } @Override public Component getUniverseComponent(String id) { // create universe component using state of this class // the structure of this component could depend on this // the component could even depend on constructor // args that the base class knows nothing about (as // is the case now). if (answer == 42) { return new HHGTGPanel(id); } return new Label(id, String.valueOf(answer)); } } The problem is that getUniverseComponent gets called from the base class before the constructor of the subclass gets evaluated. :-( This means that the = 42 assignment has not been done yet, nor the override of the value with the value from the constructor arg. The (partial) workaround I've used (a special private init method and initialized flag) is just plain ugly (and partial, since you still can't use your constructor args). Regards, Sebastiaan On Thu, Mar 20, 2008 at 9:25 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I've searched the web and I see there are a lot of hits for what I'm looking for but I cannot quite pinpoint the perfect solution (easiest) for this simple thing. What I need is to be able to extend a base page and put into some places some extra panels. I designed the places in the base page. For only one panel, I can use wicket:child tag. If I need more than one panel inserted, how do I do that? Thanks, Cristi Manole
Re: Javadoc problem ?
these are just the javadocs for the wicket core project. you can find the classes for wicket-extensions here, in case you missed one of the classes in there: http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/apidocs/index.html more projects (datetime, spring, ...) will follow soon. Gerolf On Thu, Mar 20, 2008 at 4:35 PM, Eyal Golan [EMAIL PROTECTED] wrote: Has anyone noticed that there are many missing classes in http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/index.html Or am I missing something? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Re: [vote] Release 1.4 with only generics and stop support for 1.3
+1 On Mon, Mar 17, 2008 at 9:13 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: This thread is for voting only. Use the [discuss] thread for voicing your opinion or asking questions. This makes counting the votes much easier. The discussion on our development list makes it clear that a lot of folks are anxious for generified models. Most users if not all wish us to release a quick release which is 1.3 + generics. The consequence is that the core team will stop to support 1.3, and that everybody that wishes updates will have to migrate to 1.4, and upgrade to Java 5. Everybody is invited to vote! Please use [ ] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 [ ] -1, I need a supported version running on Java 1.4 Let your voices be heard! Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
Re: Amsterdam Community meeting 2008
On Tue, Mar 18, 2008 at 4:56 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Or a Wicket Antipatterns would be cool as well, i.e., how NOT to do things in Wicket and then show the right way to do them (standard example is not using a model which causes constructor time binding and people wondering why their page isn't updated). sounds a bit like Wicket Puzzlers ;) Gerolf
Re: Support for option disabled=disabled
afaik, it's not (easily) possible with DropDownChoice. Take a look at the Select, SelectOption, SelectOptions classes in wicket-extensions, as they give you more power over the single options. Gerolf On Mon, Mar 17, 2008 at 10:43 AM, Kaspar Fischer [EMAIL PROTECTED] wrote: Is there an easy way to disable items in a DropDownChoice? I'd like to output something like this: option value=12 disabled=disabledItem/option Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pretty DataView urls
the following works for me: // in your callback method PageParameters params = new PageParameters(); params.put(page, getPageNumber()); setResponsePage(MyPage.class, params); setRedirect(true); where MyPage.class would typically be the same page the component is on. to make it more generic, you could use getPage().getClass(). Gerolf On Mon, Mar 17, 2008 at 7:07 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, Is it possible to have pretty dataview urls when someone clicks on different pages of the navigator? Right now it says stuff like ::interface.7.1 or something. I'd prefer it to say something like /home?page=7
Re: Pretty DataView urls
yes, unfortunately, one would have to live with that. should've mentioned that ;) On Mon, Mar 17, 2008 at 7:30 PM, Matej Knopp [EMAIL PROTECTED] wrote: Creating new page version every time... -Matej On Mon, Mar 17, 2008 at 7:17 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: the following works for me: // in your callback method PageParameters params = new PageParameters(); params.put(page, getPageNumber()); setResponsePage(MyPage.class, params); setRedirect(true); where MyPage.class would typically be the same page the component is on. to make it more generic, you could use getPage().getClass(). Gerolf On Mon, Mar 17, 2008 at 7:07 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, Is it possible to have pretty dataview urls when someone clicks on different pages of the navigator? Right now it says stuff like ::interface.7.1or something. I'd prefer it to say something like /home?page=7 -- Resizable and reorderable grid components. http://www.inmethod.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateTime.setLabel() issue and a related (but general) setLabel() question
you can override newDateTextField(..) and call .setLabel() directly on the DateTextField in there. Gerolf On Wed, Mar 12, 2008 at 10:26 PM, Phil Grimm [EMAIL PROTECTED] wrote: Hey Guys, I'm building my first Wicket app and, so far, am really loving Wicket! I've built my first form and am stumped on a issue with the DateTime component. I call setLabel() on all the fields in my form and all the labels I provide appear in the validation error messages except one, the DateTime field. Here's the code HTML: tr tdMy Date:/td tdspan wicket:id=myDate/span/td /tr JAVA: form.add(new DateField(myDate).setLabel(new Model(My Date)); The problem is that the validation error message refers to the field as date and not My Date. Looking at the source, DateTime.java, I can see why. It appears the setLabel() is being applied to the FormComponentPanel, which DateTime extends and not the 'private final DateTextField dateField' within DateTime. I don't see a way to get at the private dateField to setLabel() on it. How should this be done? And a related setLabel() question Looking at my example code above, you can see that the label My Date is being maintained in both the HTML and the Java. It would be nice if I could just specify it in the Java and have Wicket apply it in the HTML. For example... HTML: tr tdspan wicket:id=myDate.label[wicket puts label here - with colon?]/span/td tdspan wicket:id=myDate/span/td /tr Is this possible now? Or is it a reasonable feature idea? Thanks! Phil
Re: Hide Wicket AJAX Debug window
this window only shows up when you start your wicket application in development mode. it won't show up in production mode. Gerolf On Wed, Mar 12, 2008 at 11:14 PM, hjuturu [EMAIL PROTECTED] wrote: Hi All i have a label on my webpage on which i do a in line edit using AjaxEditableLabel. I have included wicket-event.js and wicket-ajax.js javascripts in my page. When i start editing the label the wicket ajax debug window appears on the lower right corner. how can i hide that window. Thanks Haritha -- View this message in context: http://www.nabble.com/Hide-%22Wicket-AJAX-Debug%22-window-tp16013820p16013820.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i Customize the style of Feedback Messages ?
My goal is to show an image icon next to each erroneous input field :D see FormComponentFeedbackBorder or FormComponentFeedbackIndicator Gerolf
Re: How can i Customize the style of Feedback Messages ?
The things is that if there is an error, a red * is showed, not the image file I want... what things am I doing wrong? subclass FormComponentFeedbackIndicator and provide your own markup: MyFCFI.java: class MyFCFI extends FormComponentFeedbackIndicator { ... } MyFcFI.html: wicket:panelimg src=error.png//wicket:panel Gerolf Thanks again to everybody -Mensaje original- De: Gerolf Seitz [mailto:[EMAIL PROTECTED] Enviado el: martes, 11 de marzo de 2008 12:10 Para: users@wicket.apache.org Asunto: Re: How can i Customize the style of Feedback Messages ? My goal is to show an image icon next to each erroneous input field :D see FormComponentFeedbackBorder or FormComponentFeedbackIndicator Gerolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i Customize the style of Feedback Messages ?
you're welcome. Gerolf On Tue, Mar 11, 2008 at 12:44 PM, Alonso Sanchez, Daniel [EMAIL PROTECTED] wrote: Fantastic! Sorry for disturbing :P Thanks again -Mensaje original- De: Gerolf Seitz [mailto:[EMAIL PROTECTED] Enviado el: martes, 11 de marzo de 2008 12:39 Para: users@wicket.apache.org Asunto: Re: How can i Customize the style of Feedback Messages ? The things is that if there is an error, a red * is showed, not the image file I want... what things am I doing wrong? subclass FormComponentFeedbackIndicator and provide your own markup: MyFCFI.java: class MyFCFI extends FormComponentFeedbackIndicator { ... } MyFcFI.html: wicket:panelimg src=error.png//wicket:panel Gerolf Thanks again to everybody -Mensaje original- De: Gerolf Seitz [mailto:[EMAIL PROTECTED] Enviado el: martes, 11 de marzo de 2008 12:10 Para: users@wicket.apache.org Asunto: Re: How can i Customize the style of Feedback Messages ? My goal is to show an image icon next to each erroneous input field :D see FormComponentFeedbackBorder or FormComponentFeedbackIndicator Gerolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable ajaxbutton until process is done
override getAjaxCallDecorator (or something like this) and return a new IAjaxCallDecorator which appends javascript like this.disabled=true in decorateScript() and maybe activates the button with js returned in decorateSuccessScript() and/or decorateFailureScript. Gerolf On Tue, Mar 11, 2008 at 1:53 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I have IndicatingAjaxButton that overloads the onSubmit. When user clicks everything works great but I need to disable the button immediately after the user has click the button so that it can't happen twice. I've tried with this.setEnabled(false); target.addComponent(this); in the onSubmit but it happens to late. How can I disable the input type button? -- View this message in context: http://www.nabble.com/Disable-ajaxbutton-until-process-is-done-tp15976490p15976490.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default Focus Behavior?
the behavior would have to be temporary. On Tue, Mar 11, 2008 at 3:14 PM, Johan Compagner [EMAIL PROTECTED] wrote: and a behavior is really the wrong thing Because who says if you render the page again that it has to again set the focus on that one? MyPage() { textField1.add(new FocuOnLoadBehavior()); textField2.add(new FocuOnLoadBehavior()); textField3.add(new FocuOnLoadBehavior()); Form form = new Form() { onSubmit() { // validate fails on textfield4 so transfer focus to that one like this:?? textField4.add(new FocuOnLoadBehavior()); } } what happens now? On Tue, Mar 11, 2008 at 3:12 PM, Johan Compagner [EMAIL PROTECTED] wrote: MyPage() { textField1.add(new FocuOnLoadBehavior()); textField2.add(new FocuOnLoadBehavior()); textField3.add(new FocuOnLoadBehavior()); } which fields gets the focus? On Tue, Mar 11, 2008 at 2:49 PM, James Carman [EMAIL PROTECTED] wrote: On 3/11/08, Johan Compagner [EMAIL PROTECTED] wrote: you do WebPage.focusComponent(textField) I mean, in what class? Your page class? In a component class? I'm just trying to understand what the difference is between doing WebPage.focusComponent(textField) or textField.add(new FocuOnLoadBehavior())? If it's the same code that would be calling either one, it's just a matter of *how* it's being set up. It's not a matter of responsibility going to the correct place. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default Focus Behavior?
how about boolean WebPage#isAutoFocusEnabled and the possibility to provide several IFocusStrategy instances with different priority? this would allow to eg only set the focus on the first formcomponent of the first form if no other formcomponent has an error... On Tue, Mar 11, 2008 at 3:36 PM, James Carman [EMAIL PROTECTED] wrote: On 3/11/08, Johan Compagner [EMAIL PROTECTED] wrote: yes so it is not the last one you ask to have focus on Very confusing for an average user thats why there should be a single point just like AjaxRequestTarget.focusComponent() works. Ok, you've sold me. So, is this something that belongs in core? Shouldn't the core have facilities for managing component focus? The Ajax folks shouldn't be the only ones who get this luxury. :) Perhaps an IFocusManager interface? Would that go on the IRequestCycle (since you can only focus one component per request) or on the Page? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable ajaxbutton until process is done
instead of referencing the id 'create' hardcoded, rather use getMarkupId(). Gerolf On Tue, Mar 11, 2008 at 9:11 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Thanks! I got it to work now. Is it really a good idé to access html like this in javacode? @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new IAjaxCallDecorator() { private static final long serialVersionUID = 1L; public CharSequence decorateScript(CharSequence script) { return document.getElementById('create').disabled=true;+script; } public CharSequence decorateOnFailureScript(CharSequence script) { return script+ document.getElementById('create').disabled=false;; } public CharSequence decorateOnSuccessScript(CharSequence script) { return script+ document.getElementById('create').disabled=false;; } }; } -- View this message in context: http://www.nabble.com/Disable-ajaxbutton-until-process-is-done-tp15976490p15988543.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic Forms
see Button#setDefaultFormProcessing(boolean), which skips the form processing. Gerolf On Tue, Mar 11, 2008 at 10:09 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I found this: http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html Problem with it, for me, is that it fails to mention adding new fields via javascript. As long as I add text fields in the same pattern as the list would add it, will it accept the input? I'm concerned that the add button will trigger validation. In my case (and probably most cases), the page does not have to be valid to add a new text field. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 1:34 PM To: users@wicket.apache.org Subject: Dynamic Forms I have a form with a text field on it. Somewhere on the form there is also a + symbol. When you click on it, a new text field appears. I know that this has been asked a bunch of times, but I can only find emails where people say, This has been asked a bunch of times when I search the mailing list. Also, most say that a ListView and panels are involved but they don't go into detail. Can anyone elaborate on how to do this? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confine feedback messages to a panel
Construct the feedbackpanels with and IFeedbackMessageFilter. Gerolf On Mon, Mar 10, 2008 at 12:22 PM, atul singh [EMAIL PROTECTED] wrote: hi, I have an ajax checkbox, which when checked, i show a feedback at the top of the panel. Due to this event another panel on the same page is repainted and made visible. The problem is I see the feedback message in the feedback component present in the other panel as well. I feel this is because the feedback messages are shared in the session?? I thought I will be able to google out the solution, but could not find anything...Any suggestion about this problem ??
Re: wicket-datetime
off the top of my head, i'd say we could skip the localization part for Locale.ENGLISH (and the like), as it's the default language in YUI. couple of YUI releases, we switched to using the YUILoader to dynamically load the needed .js files. and now that you've mentioned it, it may not be an ideal solution anyway, since we have to reuse the same YUILoader instance for all components (only datepickers in this case) on a page for the dependency resolution to work. maybe we should switch back to how it was before (good old header contributions). any thoughts? gerolf On Thu, Mar 6, 2008 at 6:52 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: i have no idea how much of that javascript can be factored out and how much of it is requried to init each instance of the yui calendar. (didnt write that one). perhaps gerolf or eelco wouldnt mind pipinig in... i didnt see any license headers being dumped into html though. personally ive used this one [1] in the past and liked it more then the yui thing... http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-calendar/ -igor On Thu, Mar 6, 2008 at 1:42 AM, Ned Collyer [EMAIL PROTECTED] wrote: Hi Igor, The picker works fine - its the implementation I'm concerned about. If you have 2 instances, then all the javascript exists twice. All the translations exist twice. The demo does not show 2 date pickers and you can clearly see the dependance on initdateTextField2 being pasted into the middle of the script area. eg, say you need to specify a date range - or multiple date ranges for something like a search input, or you have multiple panels with date pickers. Is this purely to satisfy the requirement of the example? -ie, not suitable for anything more than date of birth checking and 1 instance per page. igor.vaynberg wrote: it seems to be working just fine here http://wicketstuff.org/wicket13/dates/ -igor -- View this message in context: http://www.nabble.com/wicket-datetime-tp15866334p15869748.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicketstuff-jmx-panel: can't find a repository
done, wicketstuff-jmx-panel is in the wicketstuff.org maven repository dependency groudIdorg.wicketstuff/groupId artifactIdwicketstuff-jmx-panel/artifactId version1.3-SNAPSHOT/version /dependency cheers, Gerolf On Wed, Mar 5, 2008 at 12:13 PM, Rommert de Bruijn [EMAIL PROTECTED] wrote: Hi, I'm setting up a small PoC web application with JMX, Spring Wicket. Among other things I'm using the JmxPanel component by Gerolf Seitz. which I checked out here: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jmx-panel/ The JmxPanel component works like a charm, so I'd like to add a dependency for the wicketstuff-jmx-panel artifact to my project. Unfortunately, I can't seem to find a repository that contains the wicketstuff-jmx-panel artifact at all. For now, I created a .jar from the svn checkout and added it to our local repository, but it would be preferable to use a public repository. Can anyone help me out? Thanks in advance, Rommert -- Rommert de Bruijn Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500