Re: [Wicket-user] LoadableDetachableModels and Trees
What do you want to use the model for? Is it possible to use LDMs and *Trees*? Here's a question i'd like reopened. I'm using a Tree to show a directory structure, the user selects folders to upload files into. It should be updated every submit. Is there a best practice for using a Tree with a LoadableDetachableModel? I now have a Tree that is updated on every mouseClick (in a node) and this seems a little too much. I would like to see a behaviour similar to ListView. Has anyone tried something like this? ciao, Ivana -- Ivana Cace Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form clearInput
On 7/31/07, 桂林 [EMAIL PROTECTED] wrote: when i submit a form with data,it ok,then i want to clear the form data from the form with the form method clearInput() .but it does not work, why? Try setting a new (clear) model instead. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Updates within Panels in datatable
Hi Igor: I cannot use the AjaxSubmitButton because I need to change the button's model dynamically and this functionality is broken in Wicket 1.2 and I can’t use the 1.3 beta because my company doesn’t want to use beta software for a production release. I ended up using a regular Button and then updating the table using an AJAX Target in the buttons onSubmit method. Please do let me know if you have a better suggestion for what I can do here. I tried ReuseIfModelsEqualStrategy strategy = new ReuseIfModelsEqualStrategy(); table.setItemReuseStrategy(strategy); but this did not help. Do I need to create a custom strategy? If so what should I do in it? igor.vaynberg wrote: On 7/31/07, salmas [EMAIL PROTECTED] wrote: - Even though I do nothing in onSubmit (which I know does get called) the table is reloaded (button.getRequest() shows the request for the page to reload). I'd like to stop the auto redraw and do an AJAX update from within onSubmit instead, I am not sure how to stop the table reload when the button is clicked. use ajax submit button - from within onSubmit() in panel2 the textfield and the radio button in panel1 show their original values and not the values that I typed in prior to pressing the button. The widgets have PropertyModels. To load the panels I overrode public void populateItem(Item item, String componentId, IModel model) in the table columns and then added the panels where appropriate. What can I do to update the data in panel1 when the button in Panel2 is clicked? see datatable.setitemreusestrategy(...) -igor -- View this message in context: http://www.nabble.com/Updates-within-Panels-in-datatable-tf4196594.html#a11935400 Sent from the Wicket - User (OLD) mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Updates-within-Panels-in-datatable-tf4196594.html#a11951843 Sent from the Wicket - User (OLD) mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Updates within Panels in datatable
On 8/1/07, salmas [EMAIL PROTECTED] wrote: Hi Igor: I cannot use the AjaxSubmitButton because I need to change the button's model dynamically and this functionality is broken in Wicket 1.2 and I can't use the 1.3 beta because my company doesn't want to use beta software for a production release. I ended up using a regular Button and then updating the table using an AJAX Target in the buttons onSubmit method. Please do let me know if you have a better suggestion for what I can do here. nothing other then upgrade to 1.3 I tried ReuseIfModelsEqualStrategy strategy = new ReuseIfModelsEqualStrategy(); table.setItemReuseStrategy(strategy); but this did not help. Do I need to create a custom strategy? If so what should I do in it? no, you need to override equals and hashcode on whatever model is returned by idataprovider -igor igor.vaynberg wrote: On 7/31/07, salmas [EMAIL PROTECTED] wrote: - Even though I do nothing in onSubmit (which I know does get called) the table is reloaded (button.getRequest() shows the request for the page to reload). I'd like to stop the auto redraw and do an AJAX update from within onSubmit instead, I am not sure how to stop the table reload when the button is clicked. use ajax submit button - from within onSubmit() in panel2 the textfield and the radio button in panel1 show their original values and not the values that I typed in prior to pressing the button. The widgets have PropertyModels. To load the panels I overrode public void populateItem(Item item, String componentId, IModel model) in the table columns and then added the panels where appropriate. What can I do to update the data in panel1 when the button in Panel2 is clicked? see datatable.setitemreusestrategy(...) -igor -- View this message in context: http://www.nabble.com/Updates-within-Panels-in-datatable-tf4196594.html#a11935400 Sent from the Wicket - User (OLD) mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Updates-within-Panels-in-datatable-tf4196594.html#a11951843 Sent from the Wicket - User (OLD) mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org
Re: [Wicket-user] DropDown within ModalWindow does not work in Camino
Works fine for me. Btw, the modal windows example in wicket-examples/ajax has a dropdown in it (the AM/PM field of the first modal window). Eelco On 7/31/07, Michael Day [EMAIL PROTECTED] wrote: DropDown within ModalWindow does not work in Camino. It displays, but nothing happens when I click it to expand. Has anybody else experienced this? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDown within ModalWindow does not work in Camino
That one works, but it's a page. Maybe that's why? I'm using a panel. On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote: Works fine for me. Btw, the modal windows example in wicket-examples/ajax has a dropdown in it (the AM/PM field of the first modal window). Eelco On 7/31/07, Michael Day [EMAIL PROTECTED] wrote: DropDown within ModalWindow does not work in Camino. It displays, but nothing happens when I click it to expand. Has anybody else experienced this? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DropDown within ModalWindow does not work in Camino
It's weird, what version of wicket are you testing it with? -Matej On 8/2/07, Michael Day [EMAIL PROTECTED] wrote: That one works, but it's a page. Maybe that's why? I'm using a panel. On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote: Works fine for me. Btw, the modal windows example in wicket-examples/ajax has a dropdown in it (the AM/PM field of the first modal window). Eelco On 7/31/07, Michael Day [EMAIL PROTECTED] wrote: DropDown within ModalWindow does not work in Camino. It displays, but nothing happens when I click it to expand. Has anybody else experienced this? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Handling exceptions
On 7/26/07, Federico Fanton [EMAIL PROTECTED] wrote: Hi everyone! I was wondering if there's a best practice for handling exceptions in a Wicket application.. I'm implementing an IDataProvider for a DataView, and I see that this interface doesn't throw any exception, so I'd guess that if something happens inside - say - iterator() that throws an exception, it should be wrapped inside a RuntimeWicketException... Am I right? I tried the wiki, Google and Pro Wicket but couldn't find an answer.. ^^;; Many thanks in advance For maximum flexibility, provide a custom request cycle and override onRuntimeException. Wicket 1.3 only though. For Wicket 1.2 you either have to do with setting an error page that is useful for you, or provide a custom request processor implementation (which is quite an ugly thing to do in 1.2, but possible). Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to append an # anchor to an href?
I want a hyperlink to take me to a particular section of another page. If I was doing static HTML, the link would be something like a href=aPage#sectionName. I can't figure out how to do this with wicket... Here's my code: add( new Link(up) { public void onClick() { setResponsePage( new List() ); } } ); I see the setAnchor() method on Link, but that looks like it's more for linking to a component on the same page. In this case, I want to link to a certain spot on a page that has not been instantiated at the time the first page is rendered. I guess what I'm really looking for is something like aLink.setAnchorName(sectionName); --Jesse Barnum, President, 360Works http://www.360works.com (770) 234-9293 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PasswordTextField encryption - integrating Jasypt
About this topic, I am the founder of a project called Jasypt (Java Simplified Encryption) [http://www.jasypt.org], which is aimed at easily adding robust encryption capabilities to java applications, be it password digesting or two-way text, binary, or number encryption (based on any JCE provider). I am still relatively new to wicket (although I really, really like what I am learning :-)), and I am interested in developing some kind of wicket - jasypt integration so that wicket applications can easily benefit from jasypt-based password encryption with little effort. This could be easily done by creating a wrapper for jasypt's PasswordEncryptor or StringDigester implementations, and make the wrapper itself implement wicket's ICrypt interface. Jasypt already performs Base64 encoding out of the box as required by Wicket 1.2. I would be happy to develop this integration for the next version of jasypt, unless you prefer to integrate jasypt directly into the ICrypt infrastructure of wicket (by providing something like a StrongCrypt implementation based on a digest algorithm stronger than PBEWithMD5AndDES), which would also be alright for me. What do you think? Either way could work. It's good we have compatible licenses to start with. For the rest... having it as an add-on for jasypt is cool, but you can also start a wicket-stuff project for this. Whatever works best for you. And don't forget to advertise on the WIKI :) Did you already have any plans for improving this encryption infrastructure for Wicket 2.0? Not really atm, but suggestions are always welcome. Cheers, Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about multiple AjaxSubmitLinks in one form
Suppose that I have one form which has two parts: each part has an AjaxSubmitLink and some other input components(such as TextField, CheckBox,...): [code] public class MyPage extends WebPage { public MyPage() { Form form = new Form(...); add(form); //Part1 AjaxSubmitLink link1 = new AjaxSubmitLink(...) TextField comp11 = new TextField(...) CheckBox comp12 = new CheckBox(...) ListChoice comp1n = new ListChoice(...) form.add(link1); form.add(comp11); form.add(comp12); form.add(comp1n); //Part2 AjaxSubmitLink link2 = new AjaxSubmitLink(...) TextField comp21 = new TextField(...) CheckBox comp22 = new CheckBox(...) ListChoice comp2n = new ListChoice(...) form.add(link2); form.add(comp21); form.add(comp22); form.add(comp2n); } } [/code] MyQuestion: when I click (AjaxSubmitLink link1) of Part1, I want to prevent Part2 to submit their data( and their backend Model object). What can I do ? I can imagine multiple ways to do this, but the most robust way is probably to just accept submissions but make your model(s) smart enough to make the distinction. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] menu or Drop Down w/ arbitrary HTML content?
(Trying not to let my preconceived notions about old school HttpRequest/Response style apps and/or hand coded DHTML javascript cloud my thinking, but it's not easy...) Sometimes I find myself longing for a more comprehensive wicket cookbook; wicket-examples starts to go down that road, but isn't as comprehensive as I hoped. There might be a CSS aspect to this question as well: I'm trying to make a kind of menu panel that is usually hidden, but contains arbitrary HTML (at least captions and checkboxes) and that shows updirectly underneath a label. The panel would appear over any HTML content beneath it, positioned under the label that the user clicked on. I've been browsing the usual suspects of wicket examples, I might not be looking for the right keywords; Popups are usually the moral equivalent of a href= target=_new, Dropdowns usually refer to HTML select-boxish things, and ModalWindow is close, but I actually want clicking elsewhere to dismiss the dialog. I think the best thing you can do is first find a good example and/ or Javascript CSS library that does this, and then see how you can wrap that as a Wicket example. Also, what happened to http://www.wicket-library.com/ ? http://wicketstuff.org/wicket13/ Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Logging session contents
Hi all, how can I debug what is being stored into the session? Sometimes there are classes that are Serializable by other reasons than wicket session keeping and are silently serialized into the session. For non-serializable classes I get an exception when logging is at DEBUG level, but I would like to know about every instance that is being stored into the session for a given page. Thank you in advace. Cheers, Carlos If you're using Wicket 1.3, start by looking at a custom session store implementation (ISessionStore). Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user