Checkboxes and defaultdatatable
Hello, can anybody say, which is the most hazzle-free way to do default datatable with multiple selectboxes? I created FilterForm with DefaultDatatable. In that table I have a checkbox column to select items. I followed the PhoneBook example but now I it is acting weirdly and I dont understand, what is the problem. I added submit button and when I click it, the selected items are not added to the list like in phonebook example. But when I select something from the filter-row selectbox, the form is automatically submitted and also items with checked selectboxes are added to my list... What may I have missing here? Sigmar
Re: Job opportunities (Netherlands)?
The grandparent has a point: having a jobs forum/list might be helpful as not many folks are eager to send their job postings to the user list. Not having a jobs related list might hinder the publicity for companies having and engineers seeking job opportunities. The ASF has a jobs list, but it is not archived (probably don't want spam on it, or have it be used as a billboard). Currently the ham to this list regarding jobs is really low, so I don't see a urgent need for creating a new list (which probably won't be archived), though I might be persuaded to do so. Martijn On Tue, Apr 13, 2010 at 8:54 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Have you checked the power cable is plugged in, Sir? I like to see this forum as much much more than just an improbably user-friendly, efficient and free 365*7*24 technical support service that you could not buy for love nor money anywhere else I've been. Some people do appreciate having a single place where they can find out about and stay on top of all things related to Wicket; ideas, products, tips, problems, solutions, requests, gripes, links to articles, controversial RFEs that want to pollute the core with 100% inessential paraphernalia, real world experiences, jobs, events, services, useful integrations ... the more (with at least a modicum of substance/interest for at least a few others here) the merrier. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 April 2010 13:35, Josh Kamau joshnet2...@gmail.com wrote: May be we need a forum for wicket jobs... On Tue, Apr 13, 2010 at 3:25 PM, Reinout van Schouwen rein...@gmail.comwrote: Hi everyone, In a few months' time my current contract will end. I am looking for a job where I can use my current Wicket skills and perhaps learn some more. :) Preferably located somewhere in the Rotterdam / Randstad region. If you know of an organisation with opportunities for a Wicket developer, please let me know. More about me on: http://nl.linkedin.com/in/reinoutvanschouwen regards, -- Reinout van Schouwen - 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.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket And GAE
On Tue, Apr 13, 2010 at 6:12 PM, marc fawzi marc.fa...@gmail.com wrote: Is there an IRC channel for Wicket users or is this the best place for newbies like me to post questions and get help? Both. ##wicket on freenode.net is the official wicket IRC channel, and you're welcome to ask and answer here :) Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
MarkupComponentBorder and deprecation
Hi, quick question: since IComponentBorder and Component.setComponentBorder are deprecated, how should I use MarkupComponentBorder - or shouldn't I use that at all? You can't attach a markup file to a behavior, right? Antoine
Re: AW: Fading Content Updates Into a Ajax Refreshing ListView
Thanks igor On Tue, Apr 13, 2010 at 3:08 PM, DaHe danielavalero...@gmail.com wrote: That was very very hepfull !!! Thanks! =) igor.vaynberg wrote: see here http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ this will get you most of the way there, then just add some js effects -igor On Mon, Apr 12, 2010 at 3:44 PM, DaHe danielavalero...@gmail.com wrote: Hello!! I tried this suggestion on my app. I have a DataView made with AjaxPaginNavigator, onClick I call a JavaScript, this toggle a HighLight the row. When I pass to next page, my JS does not work. I wrote this code: AjaxPagingNavigator pager = new AjaxPagingNavigator(navigator, dataView) { @Override protected void onAjaxEvent(AjaxRequestTarget target) { target.addComponent(dataContainer); target.appendJavascript(dataContainer.getMarkupId() + /js/jquery-1.3.2.min.js); target.appendJavascript(dataContainer.getMarkupId() + /js/ToggleHighLigh.js); } }; But it does not work. Do am I understanding wrong your suggestion? Stefan Lindner wrote: Yes, this can be done with javascript. First of all you must decide which javascript library you want to use (scriptaculous/jQuery/etc.) Then you need to load it in your head section (use some HeaderContributor class for this). Now when you repaint yout list items with target.addComponent(item); you may alo append some custom javascript code like this target.prependJavascript(item.getMarkupId() + ...fadeout/hide/etc.); target.addComponent(item); target.appendJavascript(item.getMarkupId() + ...fadein/show/etc.); Perhaps you need to set the items visibility to (style=display:none) and then in the appendHJavascript delete the display:none. Stefan -Ursprüngliche Nachricht- Von: Ayodeji Aladejebi [mailto:aladej...@gmail.com] Gesendet: Mittwoch, 31. März 2010 00:32 An: users@wicket.apache.org Betreff: Fading Content Updates Into a Ajax Refreshing ListView I am trying to auto refresh a list but also allow the new list updates to fade in one-by-one similar to these: http://foursquare.com/ I guess its a javascript affair but can I get some assistance as to the approach to use in wicket thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Fading-Content-Updates-Into-a-Ajax-Refreshing-ListView-tp28089381p28219197.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Fading-Content-Updates-Into-a-Ajax-Refreshing-ListView-tp28089381p28230764.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 -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 481 7 156 Mobile: +234 803 589 1780 Email: d...@dabarobjects.com Web: www.dabarobjects.com
DropDownList
Hi team; Please tell me , how do i change the Choose One text on the drop down list to something else? regards; Josh
Re: DropDownList
http://lmgtfy.com/?q=wicket+change+choose+one+text 2010-04-14 14:00 keltezéssel, Josh Kamau írta: Hi team; Please tell me , how do i change the Choose One text on the drop down list to something else? regards; Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownList
Override getDefaultChoice() as in the following code:- @Override protected CharSequence getDefaultChoice(Object selected) { return option value=\\your header/option; } On Wed, Apr 14, 2010 at 3:00 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi team; Please tell me , how do i change the Choose One text on the drop down list to something else? regards; Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownList
Thanks robert, major.. It worked. regards Josh 2010/4/14 Major Péter majorpe...@sch.bme.hu http://lmgtfy.com/?q=wicket+change+choose+one+text 2010-04-14 14:00 keltezéssel, Josh Kamau írta: Hi team; Please tell me , how do i change the Choose One text on the drop down list to something else? regards; Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket And GAE
Per #1, the GAE people highly discourage pinging to keep the instance alive. Also, I tried it for a bit anyways, and it didn't help. I get instance restarts in the MIDDLE of page loads (hint hint: I could use help on my other post!). The thing to realize with GAE is that you need to keep everything out of your Application init(). It takes some effort, but you can get pretty good Wicket apps running on GAE. It's certainly a lot harder, though, than running it on your own. Jake marc fawzi wrote: Hey guys I'm new to Wicket I've made two discoveries with respect to GAE and Wicket: 1. I figured out how to keep my GAE app instance hot at all times (well, at least for 99.9% of the time.. the GAE still produces transient errors every now and then) -- It's really simple: just have a script that launches a new task every 12 seconds and set the task url to a url that is routed to/handled by the script itself then when the script runs again (in this way) it will do two things: 1) urlfetch a url that is handled by the app you wish to keep hot (which is on another *.appspot.com url) and 2) starts schedule another task in 12 seconds. Infinite task loop. Google does kill the task loop eventually so then you need a cron job to run every 1 hour to restart the script :) and that's it. 2. Someone (srfarley) is working on a version of Wicket for GAE: This project provides a template to help you get started with building a Wicket http://wicket.apache.org/ application for Google App Enginehttp://code.google.com/appengine/. It is a re-implementation of the Guestbook application described by the App Engine tutorial http://code.google.com/appengine/docs/java/gettingstarted/. Whereas the tutorial uses raw servlets and JSP to demonstrate a some of the basic features of App Engine, this project uses Wicket as the web framework. In addition, the project defines classes for handing persistence using JDOhttp://code.google.com/appengine/docs/java/datastore/, and uses Google Guice http://code.google.com/p/google-guice/ to inject instances of these classes into the Wicket pages for interacting with the App Engine datastore. For unit testing, the project contains base classes that set up the App Engine development environment so you can write tests against the full stack, including those that interact directly with the Wicket pages. The testing framework is TestNG http://testng.org/doc/index.html, but it is possible to convert them to JUnit tests with some work. http://code.google.com/p/wicket-gae-template/ Given that I've never used Wicket (I looked at a couple examples so far) I'm hoping that we can help each other as we attempt to get good outcome for our Wicket+GAE implementations To make things more challenging, I'm using Scala, which I've never run on GAE before and I'm also new to it :) Is there an IRC channel for Wicket users or is this the best place for newbies like me to post questions and get help? Thanks, Marc On Tue, Apr 13, 2010 at 6:20 AM, jbrookover jbrooko...@cast.org wrote: I'm pretty committed to a project using Wicket on GAE. I haven't encountered any deserialization issues that people have been bringing up, which makes me worry a bit since I've encountered (and dealt with) a slew of other issues :) Regarding the HttpSessionStore, I discovered a bad coding practice of mine when every single session entry in the datastore was 500KB+. Once I resolved that issue, using more transient fields and detachable models, I'm relatively happy with the results. GAE, by default, uses the MemCache to implement this feature so it should be relatively speedy. It's no different from any other application storing data in the javax.servlet.http.HttpSession. My only lingering problem (another thread here) is that GAE can trash your application instance at any point. If you are relying on SharedResources, those can go away - even in the middle of an active page load, potentially breaking some links. Currently looking for a way around that :) Jake Richard Nichols-3 wrote: Biggest problem, and IMO a show stopper, is the Serialization issues. Since Wicket serializes session data (pagemap etc) you have to enable the GAE session-store to get wicket working correctly on GAE. GAE clusters sessions by writing them to the GAE data store to spread the session across the cluster - and writes are *slow*. Worse though, if you create an incompatible change to a serialized page/component/model, when that user returns to your application, GAE will quietly fail and the user will get a blank page. Checking the GAE error log reveals a deserialization error in the core GAE engine. This is because the session reserialization in GAE is handled at the GAE/Jetty level and any error in reconsitution of the error currently breaks GAE completely. Google has acknowledged this problem, but for most
Wicket Wiki
Any ideas on when the Wicket Wiki will be back up? http://cwiki.apache.org/WICKET Thanks.
attaching a border to a component instead of vice versa - how?
Hi, is it possible to somehow attach a border to a component? I.e. currently afaik you have to do this in markup when using a border: div wicket:id=border span wicket:id=component/ /div and in the code something like: add(new Border(border) .add(new Component(component)) Instead I'd just want to specify span wicket:id=component/ and in the code add(new Component(component).add(new Border()); Since I want to specify markup in a separate file, behaviors don't cut it; and MarkupComponentBorder cannot handle any wicket components inside its markup, so that's not an option either. Any thoughts? Antoine
Re: Wicket And GAE
Per #1, the GAE people highly discourage pinging to keep the instance alive. Also, I tried it for a bit anyways, and it didn't help. I get instance restarts in the MIDDLE of page loads (hint hint: I could use help on my other post!). The thing to realize with GAE is that you need to keep everything out of your Application init(). It works perfectly for me. It's not so much pinging since you're not pinging a port. It's actually getting the servlets to stay loaded and the trick is to generate *enough cpu usage* not just *enough traffic* (my JVM stays hot for about 2% of the cpu daily quota). For example, loading a very simple page once every 10 seconds may not keep your JVM hot. Loading a more complex page once every 10 seconds will keep it hot. Also, you need to give the GAE some time to adjust to the new cpu load before it stops unloading your servlets. I've got the graphs to prove it :) Anyway, I don't really care what the GAE people say. They have a problem to solve, especially for the heavier frameworks like Grails. On Wed, Apr 14, 2010 at 6:07 AM, jbrookover jbrooko...@cast.org wrote: Per #1, the GAE people highly discourage pinging to keep the instance alive. Also, I tried it for a bit anyways, and it didn't help. I get instance restarts in the MIDDLE of page loads (hint hint: I could use help on my other post!). The thing to realize with GAE is that you need to keep everything out of your Application init(). It takes some effort, but you can get pretty good Wicket apps running on GAE. It's certainly a lot harder, though, than running it on your own. Jake marc fawzi wrote: Hey guys I'm new to Wicket I've made two discoveries with respect to GAE and Wicket: 1. I figured out how to keep my GAE app instance hot at all times (well, at least for 99.9% of the time.. the GAE still produces transient errors every now and then) -- It's really simple: just have a script that launches a new task every 12 seconds and set the task url to a url that is routed to/handled by the script itself then when the script runs again (in this way) it will do two things: 1) urlfetch a url that is handled by the app you wish to keep hot (which is on another *.appspot.com url) and 2) starts schedule another task in 12 seconds. Infinite task loop. Google does kill the task loop eventually so then you need a cron job to run every 1 hour to restart the script :) and that's it. 2. Someone (srfarley) is working on a version of Wicket for GAE: This project provides a template to help you get started with building a Wicket http://wicket.apache.org/ application for Google App Enginehttp://code.google.com/appengine/. It is a re-implementation of the Guestbook application described by the App Engine tutorial http://code.google.com/appengine/docs/java/gettingstarted/. Whereas the tutorial uses raw servlets and JSP to demonstrate a some of the basic features of App Engine, this project uses Wicket as the web framework. In addition, the project defines classes for handing persistence using JDOhttp://code.google.com/appengine/docs/java/datastore/, and uses Google Guice http://code.google.com/p/google-guice/ to inject instances of these classes into the Wicket pages for interacting with the App Engine datastore. For unit testing, the project contains base classes that set up the App Engine development environment so you can write tests against the full stack, including those that interact directly with the Wicket pages. The testing framework is TestNG http://testng.org/doc/index.html, but it is possible to convert them to JUnit tests with some work. http://code.google.com/p/wicket-gae-template/ Given that I've never used Wicket (I looked at a couple examples so far) I'm hoping that we can help each other as we attempt to get good outcome for our Wicket+GAE implementations To make things more challenging, I'm using Scala, which I've never run on GAE before and I'm also new to it :) Is there an IRC channel for Wicket users or is this the best place for newbies like me to post questions and get help? Thanks, Marc On Tue, Apr 13, 2010 at 6:20 AM, jbrookover jbrooko...@cast.org wrote: I'm pretty committed to a project using Wicket on GAE. I haven't encountered any deserialization issues that people have been bringing up, which makes me worry a bit since I've encountered (and dealt with) a slew of other issues :) Regarding the HttpSessionStore, I discovered a bad coding practice of mine when every single session entry in the datastore was 500KB+. Once I resolved that issue, using more transient fields and detachable models, I'm relatively happy with the results. GAE, by default, uses the MemCache to implement this feature so it should be relatively speedy. It's no different from any other application storing data in the
Senior Java Developer Role, £300-500 a day, Bristol!
Hi guys, Apologies in advance to anyone I have already contacted with regards to this role or if it has no relevance to you. My client are urgently seeking a Senior Java Developer with excellent Wicket knowledge to join their team on a 3 month contract in Bristol, UK. They will pay the required rates to secure the successful candidate if he/she is found.. There are interview slots waiting to be filled, and the start date is ASAP. Please contact me if this role is of interest to you. If you know of anyone who fits the bill, please forward this e-mail to them- I do pay a referral fee for successfully placed candidates. Regards, Matthew Williams Recruitment Consultant 01179227000 matthewwilli...@peoplesource.co.uk http://www.peoplesource.co.uk/ cid:image001.jpg@01C9E5C4.98BE7860 2009 Fast Track 100 logo Buying Solutions suppliers logo colour 72dpi cid:093515311@23112009-15BA Approved Buying Solutions Supplier to NHS and Public Sector One of the UKs Fastest Growing companies in 2008 and 2009. People Source Consulting Ltd, 30 Queen Charlotte Street, Bristol, BS1 4HJ. Telephone 0117 922 7000, Fax 0117 925 9700 http://www.peoplesource.co.uk/ www.peoplesource.co.uk http://www.peoplesource.co.uk/ Registered in England and Wales 4389799, Vat registered 793455295
Newbie Question about populating form values
I'm a new Wicket using trying to figure out how to populate a form's initial value with data from a bean (that is in the session already). I've actually got it working, but I don't think I'm doing the best way. public final class EmployeeMain extends BasePage { public EmployeeMain() { super (); Form employeeForm=new Form(employeeContactForm); Contact contact=getEmployeeSession().getEmployee().getEmpInfo(); employeeForm.setModel(new CompoundPropertyModel(contact)); add(new TextField(firstName,new Model(contact.getFirstName(; add(new TextField(lastName)); } My issue is with this line: add(new TextField(firstName,new Model(contact.getFirstName(; Should I have to set the model even though I'm binding the form to a bean has this property? What is the correct way to handle setting the initial form value from a bean? Thanks, David Keep it Green! To help protect the environment, please only print this email if necessary. Printing email can cost more than you think. Learn more on our website: http://www.hermitagelighting.com/printing_email.php The information transmitted in this email is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please immediately notify us by reply email to the sender. You must destroy the original material and its contents from any computer. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Type Inference for Wicket 1.4
I am looking to migrate from Wicket 1.3 and Wicket 1.4 and I really like the type-safe goodies but I do not like its verbosity. I was thinking of writing a patch that provides factories to improve the brevity by type inference of the generic invariant. This is an example of my idea: ModelMySuperLongNameForASimpleFooObject model = Model.newModel(); public static T ModelT newModel() { return new ModelT(); } Feedback welcomed. :-) -- Best, James. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: MarkupComponentBorder and deprecation
no, you cant attach markup to behavior but you can create an equivalent of MarkupComponentBorder using a behavior. -igor On Wed, Apr 14, 2010 at 1:40 AM, Antoine van Wel antoine.van@gmail.com wrote: Hi, quick question: since IComponentBorder and Component.setComponentBorder are deprecated, how should I use MarkupComponentBorder - or shouldn't I use that at all? You can't attach a markup file to a behavior, right? Antoine - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Type Inference for Wicket 1.4
you are going to have one factory method for each constructor, its going to be a pita to maintain. not something we will want in core. -igor On Wed, Apr 14, 2010 at 8:51 AM, James Perry james.austin.pe...@gmail.com wrote: I am looking to migrate from Wicket 1.3 and Wicket 1.4 and I really like the type-safe goodies but I do not like its verbosity. I was thinking of writing a patch that provides factories to improve the brevity by type inference of the generic invariant. This is an example of my idea: ModelMySuperLongNameForASimpleFooObject model = Model.newModel(); public static T ModelT newModel() { return new ModelT(); } Feedback welcomed. :-) -- Best, James. - 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: Newbie Question about populating form values
If you're using a CPM there's no need to explicitly set models for child components. Also think about what you want to happen on page reload. Generally I'd imagine you want current data, so set CPM's object on Page.onBeforeRender(): public class EmployeeMain extends BasePage{ final private FormContact employeeForm; public EmployeeMain() { //super(); //no need - call implied employeeForm = new FormContact(employeeContactForm, new CompoundpropertyModel(null)); //we'll set model object @ page render time add(employeeForm); employeeForm.add(new TextFieldString(firstName)); //assuming existence of String contact.getFirstName() method employeeForm.add(new TextFieldString(lastName)); } @Override public void onBeforeRender() { employeeForm.setDefaultModelObject(getEmployeeSession().getEmployee().getEmpInfo()); //get up-to-date Contact and set as CPM's object super.onBeforeRender(); //have to call to allow page children to render themselves } that's it. Note that if you set CPM's object in page constructor, then on page refresh, Contact won't be updated (because constructor won't run, but onBeforeRender() will). On Wed, Apr 14, 2010 at 8:39 AM, David Hamilton dhamil...@hermitagelighting.com wrote: I'm a new Wicket using trying to figure out how to populate a form's initial value with data from a bean (that is in the session already). I've actually got it working, but I don't think I'm doing the best way. public final class EmployeeMain extends BasePage { public EmployeeMain() { super (); Form employeeForm=new Form(employeeContactForm); Contact contact=getEmployeeSession().getEmployee().getEmpInfo(); employeeForm.setModel(new CompoundPropertyModel(contact)); add(new TextField(firstName,new Model(contact.getFirstName(; add(new TextField(lastName)); } My issue is with this line: add(new TextField(firstName,new Model(contact.getFirstName(; Should I have to set the model even though I'm binding the form to a bean has this property? What is the correct way to handle setting the initial form value from a bean? Thanks, David Keep it Green! To help protect the environment, please only print this email if necessary. Printing email can cost more than you think. Learn more on our website: http://www.hermitagelighting.com/printing_email.php The information transmitted in this email is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please immediately notify us by reply email to the sender. You must destroy the original material and its contents from any computer. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Newbie Question about populating form values
Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need to explicitly set models for child components. Also think about what you want to happen on page reload. Generally I'd imagine you want current data, so set CPM's object on Page.onBeforeRender(): public class EmployeeMain extends BasePage{ final private FormContact employeeForm; public EmployeeMain() { //super(); //no need - call implied employeeForm = new FormContact(employeeContactForm, new CompoundpropertyModel(null)); //we'll set model object @ page render time add(employeeForm); employeeForm.add(new TextFieldString(firstName)); //assuming existence of String contact.getFirstName() method employeeForm.add(new TextFieldString(lastName)); } @Override public void onBeforeRender() { employeeForm.setDefaultModelObject(getEmployeeSession().getEmployee().getEmpInfo()); //get up-to-date Contact and set as CPM's object super.onBeforeRender(); //have to call to allow page children to render themselves } that's it. Note that if you set CPM's object in page constructor, then on page refresh, Contact won't be updated (because constructor won't run, but onBeforeRender() will). On Wed, Apr 14, 2010 at 8:39 AM, David Hamilton dhamil...@hermitagelighting.com wrote: I'm a new Wicket using trying to figure out how to populate a form's initial value with data from a bean (that is in the session already). I've actually got it working, but I don't think I'm doing the best way. public final class EmployeeMain extends BasePage { public EmployeeMain() { super (); Form employeeForm=new Form(employeeContactForm); Contact contact=getEmployeeSession().getEmployee().getEmpInfo(); employeeForm.setModel(new CompoundPropertyModel(contact)); add(new TextField(firstName,new Model(contact.getFirstName(; add(new TextField(lastName)); } My issue is with this line: add(new TextField(firstName,new Model(contact.getFirstName(; Should I have to set the model even though I'm binding the form to a bean has this property? What is the correct way to handle setting the initial form value from a bean? Thanks, David Keep it Green! To help protect the environment, please only print this email if necessary. Printing email can cost more than you think. Learn more on our website: http://www.hermitagelighting.com/printing_email.php The information transmitted in this email is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please immediately notify us by reply email to the sender. You must destroy the original material and its contents from any computer. - 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: Question on close button of modal windows
Could somebody please help me with this question? I think that this is very important bug-o-feature Konstantin Stepanyuk wrote: Hi all, Thanks for your great product! I have a question (or feature request) regarding the close button. There is default closing button ('X') on each Wicket modal window. It works perfectly, but also it interacts with server. Is it possible to disable this interaction and make the button client-side only? If not, is it possible to fix this behaviour in Wicket? Thanks! -- best regards, Konstantin Stepanyuk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to pass object as parameter to popup window
The data you want to show on the page is transient, so it isn't really bookmarkable. Use a regular Link and give the page class a constructor that takes your DTO. Mathias Nilsson wrote: Session or pageParameters - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
MixedParamUrlCodingStrategy parameters encoding/decoding
Hi All, While browsing wicket MixedParamUrlCodingStrategy class sources I found that parameter encoding is done using 2 encoders: path query encoders, while during decoding stage only 1 decoder is used (path). Just wondering if this is a bug or not? -- Mikhail Fursov
Re: Question on close button of modal windows
You could do it with JQuery directly, or implement WiQuery dialog. 2010/4/14 Konstantin Stepanyuk cons...@unipro.ru Could somebody please help me with this question? I think that this is very important bug-o-feature Konstantin Stepanyuk wrote: Hi all, Thanks for your great product! I have a question (or feature request) regarding the close button. There is default closing button ('X') on each Wicket modal window. It works perfectly, but also it interacts with server. Is it possible to disable this interaction and make the button client-side only? If not, is it possible to fix this behaviour in Wicket? Thanks! -- best regards, Konstantin Stepanyuk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- | Daniela Valero No hay vientos favorables para quien no sabe a donde quiere ir!
Re: Newbie Question about populating form values
Yeah, guess you could do that too, but then you'd have to wrap one model into another (since LDM does not do property matching like CPM) + you've to extend LDM. On Wed, Apr 14, 2010 at 9:24 AM, James Carman jcar...@carmanconsulting.comwrote: Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need to explicitly set models for child components. Also think about what you want to happen on page reload. Generally I'd imagine you want current data, so set CPM's object on Page.onBeforeRender(): public class EmployeeMain extends BasePage{ final private FormContact employeeForm; public EmployeeMain() { //super(); //no need - call implied employeeForm = new FormContact(employeeContactForm, new CompoundpropertyModel(null)); //we'll set model object @ page render time add(employeeForm); employeeForm.add(new TextFieldString(firstName)); //assuming existence of String contact.getFirstName() method employeeForm.add(new TextFieldString(lastName)); } @Override public void onBeforeRender() { employeeForm.setDefaultModelObject(getEmployeeSession().getEmployee().getEmpInfo()); //get up-to-date Contact and set as CPM's object super.onBeforeRender(); //have to call to allow page children to render themselves } that's it. Note that if you set CPM's object in page constructor, then on page refresh, Contact won't be updated (because constructor won't run, but onBeforeRender() will). On Wed, Apr 14, 2010 at 8:39 AM, David Hamilton dhamil...@hermitagelighting.com wrote: I'm a new Wicket using trying to figure out how to populate a form's initial value with data from a bean (that is in the session already). I've actually got it working, but I don't think I'm doing the best way. public final class EmployeeMain extends BasePage { public EmployeeMain() { super (); Form employeeForm=new Form(employeeContactForm); Contact contact=getEmployeeSession().getEmployee().getEmpInfo(); employeeForm.setModel(new CompoundPropertyModel(contact)); add(new TextField(firstName,new Model(contact.getFirstName(; add(new TextField(lastName)); } My issue is with this line: add(new TextField(firstName,new Model(contact.getFirstName(; Should I have to set the model even though I'm binding the form to a bean has this property? What is the correct way to handle setting the initial form value from a bean? Thanks, David Keep it Green! To help protect the environment, please only print this email if necessary. Printing email can cost more than you think. Learn more on our website: http://www.hermitagelighting.com/printing_email.php The information transmitted in this email is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please immediately notify us by reply email to the sender. You must destroy the original material and its contents from any computer. - 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: Job opportunities (Netherlands)?
If people want to, they can just join the Apache Wicket list on linkedin.com , theres over 600 members in that group.. Although it might not be as big as the Apche Wicket forum, it can't be more direct as linkedin are for jobs :) I personally like the list to be about anything wicket including jobs, chatter etc. Although I do see the threat if every second post were off-topic regards Nino 2010/4/14 Martijn Dashorst martijn.dasho...@gmail.com: The grandparent has a point: having a jobs forum/list might be helpful as not many folks are eager to send their job postings to the user list. Not having a jobs related list might hinder the publicity for companies having and engineers seeking job opportunities. The ASF has a jobs list, but it is not archived (probably don't want spam on it, or have it be used as a billboard). Currently the ham to this list regarding jobs is really low, so I don't see a urgent need for creating a new list (which probably won't be archived), though I might be persuaded to do so. Martijn On Tue, Apr 13, 2010 at 8:54 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Have you checked the power cable is plugged in, Sir? I like to see this forum as much much more than just an improbably user-friendly, efficient and free 365*7*24 technical support service that you could not buy for love nor money anywhere else I've been. Some people do appreciate having a single place where they can find out about and stay on top of all things related to Wicket; ideas, products, tips, problems, solutions, requests, gripes, links to articles, controversial RFEs that want to pollute the core with 100% inessential paraphernalia, real world experiences, jobs, events, services, useful integrations ... the more (with at least a modicum of substance/interest for at least a few others here) the merrier. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 April 2010 13:35, Josh Kamau joshnet2...@gmail.com wrote: May be we need a forum for wicket jobs... On Tue, Apr 13, 2010 at 3:25 PM, Reinout van Schouwen rein...@gmail.comwrote: Hi everyone, In a few months' time my current contract will end. I am looking for a job where I can use my current Wicket skills and perhaps learn some more. :) Preferably located somewhere in the Rotterdam / Randstad region. If you know of an organisation with opportunities for a Wicket developer, please let me know. More about me on: http://nl.linkedin.com/in/reinoutvanschouwen regards, -- Reinout van Schouwen - 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.4 - 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: Newbie Question about populating form values
That's one of the key concepts of Wicket models. On Wed, Apr 14, 2010 at 2:04 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Yeah, guess you could do that too, but then you'd have to wrap one model into another (since LDM does not do property matching like CPM) + you've to extend LDM. On Wed, Apr 14, 2010 at 9:24 AM, James Carman jcar...@carmanconsulting.comwrote: Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need to explicitly set models for child components. Also think about what you want to happen on page reload. Generally I'd imagine you want current data, so set CPM's object on Page.onBeforeRender(): public class EmployeeMain extends BasePage{ final private FormContact employeeForm; public EmployeeMain() { //super(); //no need - call implied employeeForm = new FormContact(employeeContactForm, new CompoundpropertyModel(null)); //we'll set model object @ page render time add(employeeForm); employeeForm.add(new TextFieldString(firstName)); //assuming existence of String contact.getFirstName() method employeeForm.add(new TextFieldString(lastName)); } @Override public void onBeforeRender() { employeeForm.setDefaultModelObject(getEmployeeSession().getEmployee().getEmpInfo()); //get up-to-date Contact and set as CPM's object super.onBeforeRender(); //have to call to allow page children to render themselves } that's it. Note that if you set CPM's object in page constructor, then on page refresh, Contact won't be updated (because constructor won't run, but onBeforeRender() will). On Wed, Apr 14, 2010 at 8:39 AM, David Hamilton dhamil...@hermitagelighting.com wrote: I'm a new Wicket using trying to figure out how to populate a form's initial value with data from a bean (that is in the session already). I've actually got it working, but I don't think I'm doing the best way. public final class EmployeeMain extends BasePage { public EmployeeMain() { super (); Form employeeForm=new Form(employeeContactForm); Contact contact=getEmployeeSession().getEmployee().getEmpInfo(); employeeForm.setModel(new CompoundPropertyModel(contact)); add(new TextField(firstName,new Model(contact.getFirstName(; add(new TextField(lastName)); } My issue is with this line: add(new TextField(firstName,new Model(contact.getFirstName(; Should I have to set the model even though I'm binding the form to a bean has this property? What is the correct way to handle setting the initial form value from a bean? Thanks, David Keep it Green! To help protect the environment, please only print this email if necessary. Printing email can cost more than you think. Learn more on our website: http://www.hermitagelighting.com/printing_email.php The information transmitted in this email is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please immediately notify us by reply email to the sender. You must destroy the original material and its contents from any computer. - 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: Senior Java Developer Role, £300-500 a day, Bri stol!
Hi, the position seems interesting enough, attached is my CV. I am currently located in the Caribbean, but am willing to move. On Wed, Apr 14, 2010 at 11:29 AM, Matt Williams matthewwilli...@peoplesource.co.uk wrote: Hi guys, Apologies in advance to anyone I have already contacted with regards to this role or if it has no relevance to you. My client are urgently seeking a Senior Java Developer with excellent Wicket knowledge to join their team on a 3 month contract in Bristol, UK. They will pay the required rates to secure the successful candidate if he/she is found.. There are interview slots waiting to be filled, and the start date is ASAP. Please contact me if this role is of interest to you. If you know of anyone who fits the bill, please forward this e-mail to them- I do pay a referral fee for successfully placed candidates. Regards, Matthew Williams Recruitment Consultant 01179227000 matthewwilli...@peoplesource.co.uk [image: cid:image001.jpg@01C9E5C4.98BE7860]http://www.peoplesource.co.uk/ [image: 2009 Fast Track 100 logo] [image: Buying Solutions suppliers logo colour 72dpi] [image: cid:093515311@23112009-15BA] *Approved Buying Solutions Supplier to NHS and Public Sector* *One of the UK’s Fastest Growing companies in 2008 and 2009.* People Source Consulting Ltd, 30 Queen Charlotte Street, Bristol, BS1 4HJ. Telephone 0117 922 7000, Fax 0117 925 9700 www.peoplesource.co.uk R http://www.peoplesource.co.uk/egistered in England and Wales 4389799, Vat registered 793455295 -- Rodolfo Hansen CTO, KindleIT Software Development Email: rhan...@kitsd.com Mobile: +1 (809) 860-6669 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
change the resources folder location
Hi everybody Is there a way to load JS resources from another location using the ResourseReference or its childs? ie: WebContent/views/js/ ? -- | Daniela Valero No hay vientos favorables para quien no sabe a donde quiere ir!
Re: http://cwiki.apache.org/WICKET is down
I wasn't able to access the wiki pages since sunday. I had to look at google cached pages instead On Apr 15, 2010 8:27 AM, Carl Sziebert car...@gmail.com wrote: Any updates on when the reference site will be available again? On Sat, Apr 10, 2010 at 11:02 AM, Brian Topping topp...@codehaus.org wrote: Yes, I saw that to...
Re: http://cwiki.apache.org/WICKET is down
Yeah, same here. Google cache helped me out too :) Sigmar On Thu, Apr 15, 2010 at 2:45 AM, l yeung lenming.ye...@gmail.com wrote: I wasn't able to access the wiki pages since sunday. I had to look at google cached pages instead On Apr 15, 2010 8:27 AM, Carl Sziebert car...@gmail.com wrote: Any updates on when the reference site will be available again? On Sat, Apr 10, 2010 at 11:02 AM, Brian Topping topp...@codehaus.org wrote: Yes, I saw that to...