London Apache Wicket Training, January 30-31
Our next scheduled/public London Apache Wicket Training [1] course is confirmed for January 30-31, 2012. Check availability and book online [2]. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://jweekend.com/dev/JW703 [2] http://jweekend.com/dev/BookingPage - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket.Ajax.registerPre/PostCallHandler filtering
Allen, Is this what yo uneed? http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-code/#more-302 Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 29 December 2011 16:28, Allen Gilbert allen.gilb...@doane.edu wrote: Ernesto, Interesting...I've only used IAjaxIndicatorAware to display a loading gif, but it might solve this problem if I can get it to nicely show and hide a div that a) blocks the user from interacting with my panel and b) shows a loading indicator. I'll try it out. Thanks! -Allen On Thu, Dec 29, 2011 at 3:40 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Allen, Isn't it possible to make the panel implement IAjaxIndicatorAware? Regards, Ernesto On Wed, Dec 28, 2011 at 11:41 PM, Allen Gilbert allen.gilb...@doane.edu wrote: Hello, I have a Panel containing many child components that perform various ajax actions. Whenever an ajax request is initiated from the panel or any of its children, I'd like to show an indicator on the panel and block user interaction with it. However, I don't want the indicator to be shown for ajax requests initiated by other components on the page. Is there a way to access the context of an ajax request in a javascript pre- or post-ajax call handler in order to determine what component is initiating the request? Looking at wicket-ajax.js, there doesn't seem to be. Alternatively, is there a way to decorate all ajax request javascript for a panel's child components? I'd like to avoid having to modify every ajax behavior of the Panel's child components in order to show the activity indicator on the panel. -Allen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
maven dependency at http://wicket.apache.org/start/download.html
at http://wicket.apache.org/start/download.html should the artifactId not be wicket-core for 1.5.x? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
London Apache Wicket Training, December 15-16
Our next scheduled/public London Apache Wicket Training [1] course is scheduled for December 15-16, 2011. Check availability and book online [2]. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://jweekend.com/dev/JW703 [2] http://jweekend.com/dev/BookingPage - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
London Apache Wicket Training
Our next scheduled/public London Apache Wicket Training [1] classes are scheduled for September 21-22, 2011 and October 11-12, 2011 There are still places on the October course. Check availability and book online [2] if you are interested. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://jweekend.com/dev/JW703 [2] http://jweekend.com/dev/BookingPage - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Apache Wicket Cookbook Published!
Looks as good as any PDF on the Kindle. I've been looking forward to this, thanks Igor! Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 25 March 2011 20:47, Igor Vaynberg igor.vaynb...@gmail.com wrote: there are some graphics, but most of them are small and should look ok in a reader. i havent tried it in my kindle yet. -igor On Fri, Mar 25, 2011 at 1:00 PM, Pierre Goupil goupilpie...@gmail.com wrote: Excellent! I'll buy it in a week max! Are there a lot of complex graphics or is it suitable to read it in a BW e-book reader in pdf format? Actually, I think I'll buy both format but you know... Regards, Pierre On Fri, Mar 25, 2011 at 6:52 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Congrats. I trust Igor -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, March 25, 2011 1:44 PM To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org Subject: Apache Wicket Cookbook Published! For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and
Re: Integrating jquery scripts with wicket
... a lot of people say they are having a good experience with wiQuery [1]. See if it works for you. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://code.google.com/p/wiquery/ On 3 March 2011 11:59, tech7 techlove...@gmail.com wrote: Can anyone explain how can i integrate(runnable) my jquery scripts in my wicket project? I will be thankful. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-jquery-scripts-with-wicket-tp3332998p200.html Sent from the Users forum 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: Custom IUnauthorizedComponentInstantiationListener
Juraj, ... public boolean isActionAuthorized(Component component, Action action) { return action != Component.RENDER || shouldRender(component); } private boolean shouldRender(Component component){ // your logic to check if the current user should see component } ... This is a terse and basic implementation to make the technique clear; you should get the idea and be able to extend it to fulfil your specific requirements.. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 14 January 2011 10:04, Duro develma...@yahoo.com wrote: hi, could u describe the proposed solution more deeply please. Idon't know, what more i should do with my iauthorizationstrategy , it has only 2 boolean methods and i don't see anything, i could improve there. Btw i use RoleAuthorizationStrategy, which is a CompoundAuthorizationStrategy. thanks, Juraj if you want to hide unauthorized components you should use iauthorizationstrategy and veto component's RENDER action -igor On Wed, Jan 5, 2011 at 1:42 AM, Durodevelma...@yahoo.com wrote: Hi, i am trying to customize the behavior, when in a page a component is found, that the current user is not authorized to while he is authorized to the page. This by default throws an exception and i want to change it so, that the component is simply not displayed. So i did this: in my web application, that is subclass of AuthenticatedWebApplication i have this init() method: @Override protected void init() { super.init(); // we customize the default behavior, when there is an component in page, that // this user can't access. Default is an exception thrown, we just set the // component not visible getSecuritySettings().setUnauthorizedComponentInstantiationListener( new IUnauthorizedComponentInstantiationListener() { @Override public void onUnauthorizedInstantiation(Component component) { if (component instanceof Page) { onUnauthorizedPage((Page) component); } else { component.detach(); } } }); } as i can see, if the unauthorized object is a page, than i call onUnauthorizedPage((Page) component) which redirects to login page, else i destroy the component. What comes out as result is that the user after accessing protected page is redirected to login page, logs in and is authentificated but than somehow the session is destroyed and new is created for some reason which results in loosing the authentication and login page is displayed again. So the user actually can't log in and always ends only in the login page. thanks for help in advance, Juraj __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.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 __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Question about the Page state
Dmitry, Martin, Just be aware that when Dima (yes, another Dmitry), wrote that series [1], we may have still been on 1.2.6 or maybe 1.3 as it must be at least 2.5 years ago that he was working with us (and Wicket), so unless they have been reviewed recently, I am not sure if these sequence diagrams need to be updated, especially if you are planning on learning at Wicket 1.5. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html https://cwiki.apache.org/WICKET/request-targets.html and some of the other linked articles On 28 December 2010 21:01, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Thank you! I am quite happy with it :) Bye On 28 December 2010 21:34, Martin Grigorov mgrigo...@apache.org wrote: Hi Dmitri, I suggest you to take a look at these two pages: https://cwiki.apache.org/WICKET/page-maps.html https://cwiki.apache.org/WICKET/page-maps.html https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html https://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html martin-g On Tue, Dec 28, 2010 at 9:27 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody, The question isn't really simple :) So, the official documentation says ( http://wicket.apache.org/apidocs/1.4/org/apache/wicket/RequestCycle.html ): 1) A page that does not yet exist in a user Session may be encoded as a URL that references the not-yet-created page by class name. /[Application]?bookmarkablePage=[classname][param]=[value] [...] 2) Stateful pages (that have already been requested by a user) will be present in the user's Session and can be referenced securely with a session-relative number: /[Application]?wicket:interface=[pageMapName]:[pageId]: ... Does it actually mean, that in the second situation the page isn't bookmarkable? But my question is: where is the state of the page stored? In the Session? In the pageMap? Where is the pageMap stored and when is it created? I hope somebody could help me :) Thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Taking a moment ...
This is an appropriate moment to explicitly say a sincere thanks and reiterate my respect and gratitude to everyone that has contributed to Wicket, all the useful satellite projects, and to this forum, the quality and value of which I have not witnessed on any other medium, free or paid-for! In 2011 we are looking forward to formally moving up to Wicket 1.5, more wide-spread and imaginative use of Brix to help it also evolve to meet its potential, and who knows, maybe even more people building interesting apps on Wicket and Scala! I wish you a merry Xmas and a 2011 full of good health, happiness and enjoyable projects. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Training - London, Munich, Bangalore, Amsterdam, Brussels
Public Wicket courses for autumn/winter 2010 are scheduled as follows: London [1]: Jan8-9(Sat-Sun), Jan10-11(Mon-Tue), Feb5-6(Sat-Sun), Feb7-8(Mon-Tue) Munich [1][2]: Nov11-12(Thu-Fri), Q1 TBD Amsterdam [1][3]: Nov11-12(Thu-Fri), Q1/Q2 TBD Bangalore [1]: Q1/Q2 TBD Brussels [3] Q1/Q2 TBD Please contact us [4] for any on-site/special content/date requirements. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://jweekend.com/dev/BookingPage [2] http://comsysto.com/ [3] http://www.jteam.nl/training/apache-wicket-training.html [4] http://jweekend.com/dev/ContactUs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [JOB] Developer with exceptional OO, Java, Wicket skills. Scala a plus.
Ernesto, ... nothing is impossible. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 4 October 2010 10:55, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Cemal, Are you willing/able to consider applications from people living in other European countries which cannot move to England:-( Kind regards, Ernesto On Mon, Oct 4, 2010 at 11:28 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: We are looking for one, possibly two more very talented developers to join jWeekend's team. You will have exceptionally strong OO, Java and Wicket skills, and already be deeply into, or have a strong desire to become highly proficient in Scala. You already enjoy writing clean JavaScript, XHTML and CSS. You see the value of and enjoy writing sensible tests and are experienced enough to know no work is complete until you have thoroughly tested it. You are also the type that loves to discuss ideas, concepts and share knowledge, but can concentrate well and work efficiently alone too. Frameworks you already use, or are keen to master, include Spring/Guice/JPA2 and possibly GWT/SmartGWT. Our current projects include architecting, designing and building scalable event driven infra-structure, plenty of knowledge transfer, some Drools, and, naturally, state of the art web-application development. Creating Scala DSLs looks like becoming increasingly relevant to us. Some of our work is confidential/sensitive, so integrity and good-judgement is essential. You will generally be contributing on multiple jWeekend projects at a time, both internally (RD or product development) and for our small number of close clients in a variety of industries, where you will be confident to pick up and be productive with their applications/code and new frameworks/technologies we need to use without fuss. You will be encouraged, and even given work time, to contribute to open source projects we support like wiQuery, and to (at least) test and provide patches for Wicket 1.5. It is not required, but if you would like to, you could be given the opportunity to work on course material and even deliver training if you consistently demonstrate the essential qualities. Although you may be able to work from home when appropriate, you will also be happy to be on client-site (suit and tie) whenever it's required, even for longer assignments, or at our office, so, it is our preference that you are living in London. For an exceptional developer that demonstrates the ability to comfortably and efficiently communicate with the the rest of the team and demonstrates excellent integrity, we may reevaluate this. A visa to work in UK (preferably anywhere in Europe) may be essential, and it would be a bonus if you can work in the USA too. If you are coming from abroad to work with us we will help you settle in London. You most likely have at least 3 years solid experience with all aspects of core Java on professional quality projects, to supplement your excellent bachelors or masters degree. You can expect a GBP30k-GBP55k package (comprised of a fixed basic and revenue sharing, with negotiable format) in your first year with us if you are based in London, or, the equivalent remuneration for such a role/your experience in your locality if you are not in London. In exceptional circumstances, we can review initial terms after as little as 6 months. If you are not the type to study books like Effective Java, or JavaScript, the Good Parts and try out new technologies just for fun, or to master Scala by reading Odersky and, importantly, writing lots of code (which you can also keep well organised and documented so others can learn from it later), then you're probably not going to be a perfect match. We operate in a sometimes demanding environment, with knowledgeable, confident and sometimes forthright clients and colleagues, so shrinking violets could find it tough too. Please contact me [1] including bullets highlighting your experience/skills/passions and have a CV ready for when we get back to you because we can arrange interviews as early as this week. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://jweekend.com/dev/ContactUsBody/ - 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
[JOB] Developer with exceptional OO, Java, Wicket skills. Scala a plus.
We are looking for one, possibly two more very talented developers to join jWeekend's team. You will have exceptionally strong OO, Java and Wicket skills, and already be deeply into, or have a strong desire to become highly proficient in Scala. You already enjoy writing clean JavaScript, XHTML and CSS. You see the value of and enjoy writing sensible tests and are experienced enough to know no work is complete until you have thoroughly tested it. You are also the type that loves to discuss ideas, concepts and share knowledge, but can concentrate well and work efficiently alone too. Frameworks you already use, or are keen to master, include Spring/Guice/JPA2 and possibly GWT/SmartGWT. Our current projects include architecting, designing and building scalable event driven infra-structure, plenty of knowledge transfer, some Drools, and, naturally, state of the art web-application development. Creating Scala DSLs looks like becoming increasingly relevant to us. Some of our work is confidential/sensitive, so integrity and good-judgement is essential. You will generally be contributing on multiple jWeekend projects at a time, both internally (RD or product development) and for our small number of close clients in a variety of industries, where you will be confident to pick up and be productive with their applications/code and new frameworks/technologies we need to use without fuss. You will be encouraged, and even given work time, to contribute to open source projects we support like wiQuery, and to (at least) test and provide patches for Wicket 1.5. It is not required, but if you would like to, you could be given the opportunity to work on course material and even deliver training if you consistently demonstrate the essential qualities. Although you may be able to work from home when appropriate, you will also be happy to be on client-site (suit and tie) whenever it's required, even for longer assignments, or at our office, so, it is our preference that you are living in London. For an exceptional developer that demonstrates the ability to comfortably and efficiently communicate with the the rest of the team and demonstrates excellent integrity, we may reevaluate this. A visa to work in UK (preferably anywhere in Europe) may be essential, and it would be a bonus if you can work in the USA too. If you are coming from abroad to work with us we will help you settle in London. You most likely have at least 3 years solid experience with all aspects of core Java on professional quality projects, to supplement your excellent bachelors or masters degree. You can expect a GBP30k-GBP55k package (comprised of a fixed basic and revenue sharing, with negotiable format) in your first year with us if you are based in London, or, the equivalent remuneration for such a role/your experience in your locality if you are not in London. In exceptional circumstances, we can review initial terms after as little as 6 months. If you are not the type to study books like Effective Java, or JavaScript, the Good Parts and try out new technologies just for fun, or to master Scala by reading Odersky and, importantly, writing lots of code (which you can also keep well organised and documented so others can learn from it later), then you're probably not going to be a perfect match. We operate in a sometimes demanding environment, with knowledgeable, confident and sometimes forthright clients and colleagues, so shrinking violets could find it tough too. Please contact me [1] including bullets highlighting your experience/skills/passions and have a CV ready for when we get back to you because we can arrange interviews as early as this week. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://jweekend.com/dev/ContactUsBody/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.4.12 Ajax problems
Wayne, Can you create a simple QuickStart we can look at? If this problem really is related to the new Wicket release, the sooner that can be demonstrated the better. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 1 October 2010 17:30, Wayne Pope waynemailingli...@googlemail.com wrote: Hi, I just tried migrating our app from 1.4.8 to 1.4.12. However I'm having a lot of trouble with ajax submits now. I cannot get anything to work. I'm getting various problems depending on the browser. Such errors as: stack overflow in line 433 (IE7) Wicket.WUPB.Def is null or not an object (line 554) (IE7) Wicket.WUPB is undefined (Firefox). It must be something we're not doing or missing. Anyone got an ideas before I go spend a day or 2 trying to figure this out. thanks for any tips. - 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: bigdecimal validation
Yes, slightly more elegant than my 2 offerings! Thanks Igor . And as you say, the answer was in the Javadoc [1] all the time - I just didn't look because I didn't think it would be for something like this. So the moral of the story is ... the Wicket Javadoc is quite good, constantly improving and always worth a quick read if you think your solution to a apparently common problem is too convoluted. Wicket usually makes everyday stuff as easy as possible! Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] * ConversionError have a more specific variant of key.classname where classname is the type * that we failed to convert to. Classname is not full qualified, so only the actual name of the On 18 September 2010 01:19, Igor Vaynberg igor.vaynb...@gmail.com wrote: IConverter.BigDecimal= -igor On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: See IConverter='${input}' is not a valid ${type}. in Application.properties in the Wicket jar (in /org/apache/wicket). Make a similar properties file for your own application, and in the same package as your application class with your own IConverter property. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 17 September 2010 22:21, fachhoch fachh...@gmail.com wrote: input text of type bigdecimal validates user entered value to check if it is bigdecimal and it gives error message 'xxx' is not a valid bigddecimal, can I customize this message -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html Sent from the Users forum 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bigdecimal validation
James, We have just never before had to do this for specific type conversions (as opposed to for validation message which we specify and internationalize on almost every system we build), and I solved fachoch's problem by looking through the Wicket source code first rather than at its Javadoc (should be the other way round!), when in this case it turns out the Javadoc would have given me the most elegant answer. I actually think that this Javadoc is in the right place (on the FormComponent class) but still not the first place someone might think to look - where else do you think it could be that would make it more easily accessible/findable? Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 18 September 2010 01:42, James Carman ja...@carmanconsulting.com wrote: Isn't this stuff documented somewhere? This has always been one of those areas of Wicket where I feel completely lost every time I have to do some customization. Cemal does Wicket training and he didn't know this stuff! I don't mind helping put together a wiki, but I don't understand it enough to know where to begin. :) On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: IConverter.BigDecimal= -igor On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: See IConverter='${input}' is not a valid ${type}. in Application.properties in the Wicket jar (in /org/apache/wicket). Make a similar properties file for your own application, and in the same package as your application class with your own IConverter property. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 17 September 2010 22:21, fachhoch fachh...@gmail.com wrote: input text of type bigdecimal validates user entered value to check if it is bigdecimal and it gives error message 'xxx' is not a valid bigddecimal, can I customize this message -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html Sent from the Users forum 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 - 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
wiQuery release: 1.0.2 1.1-alpha
Latest wiQuery [1] releases. wiQuery 1.0.2 wiQuery 1.1-alpha have just been released. Both releases are available in our wiQuery maven repo [2]. 1.0.2 is a bug fix version and, amongst others, includes a fix to the infamous issue 60. 1.1-alpha includes these bug fixes and uses jQuery 1.4.2 jQuery UI 1.8.4 (with the new buttons and autocomplete widgets). We use this version ourselves on some internal and client jWeekend projects and it seems robust, but, it is an alpha release, so please satisfy yourself with tests, and, as always, feedback is appreciated to help us maintain the high quality wiQuery is renowned for. Further details of what's new can be provided if required; this note is just to give you a quick head's up that you can point your POMs at the latest versions as we know many of you are waiting for a few bug fixes and to use the newer jQuery libraries. Thanks to the very talented people that has contributed so far; we are looking forward to a successful future for this project as more and more people discover how reliable, powerful and intuitive it is. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://code.google.com/p/wiquery/ [2] http://wiquery.googlecode.com/svn/repo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bigdecimal validation
See IConverter='${input}' is not a valid ${type}. in Application.properties in the Wicket jar (in /org/apache/wicket). Make a similar properties file for your own application, and in the same package as your application class with your own IConverter property. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 17 September 2010 22:21, fachhoch fachh...@gmail.com wrote: input text of type bigdecimal validates user entered value to check if it is bigdecimal and it gives error message 'xxx' is not a valid bigddecimal, can I customize this message -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bigdecimal validation
... if you need to limit this custom message to a particular type conversion, like BigDecimal's, you may have to override newConversionException in your own BigDecimal converter (which you can register at application level or by overriding getConverter on your component), and setting the resourceMessage on the ConversionException (in newConversionException ) - but I'd be surprised if there is not a more elegant way to achieve this?! Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 17 September 2010 23:22, fachhoch fachh...@gmail.com wrote: this change will apply only for bigdecimal ? I want customized only for bigdecimal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bigdecimal validation
... in case you don't spot the typo either, for resourceMessage read resourceKey in the previous post. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 18 September 2010 00:05, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: ... if you need to limit this custom message to a particular type conversion, like BigDecimal's, you may have to override newConversionException in your own BigDecimal converter (which you can register at application level or by overriding getConverter on your component), and setting the resourceMessage on the ConversionException (in newConversionException ) - but I'd be surprised if there is not a more elegant way to achieve this?! Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 17 September 2010 23:22, fachhoch fachh...@gmail.com wrote: this change will apply only for bigdecimal ? I want customized only for bigdecimal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bigdecimal validation
... if you want to create your own BigDecimalTextField, for example, you can just override convertInput and pass in the resourceKey you want to use if convertValue throws an exception since you know at that point you have a conversion problem precisely because the entered text is not convertible to a BigDecimal. Make sense? Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 18 September 2010 00:09, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: ... in case you don't spot the typo either, for resourceMessage read resourceKey in the previous post. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 18 September 2010 00:05, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: ... if you need to limit this custom message to a particular type conversion, like BigDecimal's, you may have to override newConversionException in your own BigDecimal converter (which you can register at application level or by overriding getConverter on your component), and setting the resourceMessage on the ConversionException (in newConversionException ) - but I'd be surprised if there is not a more elegant way to achieve this?! Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 17 September 2010 23:22, fachhoch fachh...@gmail.com wrote: this change will apply only for bigdecimal ? I want customized only for bigdecimal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 roadmap
I am calling a meeting for all wiQuery [1] committers, hopefully next week when more of the founders are available, where will will discuss various issues re moving to the latest jQuery jQuery UI releases, as well as Wicket 1.5 beyond that. We'll post back as soon as this is all decided. While I'm here ... I really like the direction 1.5 is going in. Thanks for the excellent work you are putting into this. Is the AJAX engine Matej was working on (YUI and possibly a jQuert rewrite) on the back-burner now until someone picks that up again? Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [1] http://code.google.com/p/wiquery/ On 10 September 2010 11:38, nino martinez wael nino.martinez.w...@gmail.com wrote: +1 for upgrading wiquery to 1.5, I'd probably also contribute then, since I though of using wiquery on 1.5.. 2010/9/10 Martin Grigorov mgrigo...@apache.org: As far as I know there is no specific date. We need your help for more bug reports. I'll try soon to upgrade the application I'm working on in my daily job because it is the biggest I have access to (and I have interest in). You may try to upgrade wiquery and your applications and give us feedback as Jira tickets and patches hopefully ;-) On Fri, Sep 10, 2010 at 11:45 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: My apologies if this question has been answered before... Are there any estimates about when 1.5 final will be out? I have seen developers are very busy working on it and 1.5.M2 its been pushed out... Kind regards, Ernesto - 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: 1.5 roadmap
Martijn, That should be fine. Ask your colleague to send me an email at my jWeekend address you usually use. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 10 September 2010 12:41, Martijn Dashorst martijn.dasho...@gmail.com wrote: On Fri, Sep 10, 2010 at 1:21 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: I am calling a meeting for all wiQuery [1] committers, hopefully next week when more of the founders are available, where will will discuss various issues re moving to the latest jQuery jQuery UI releases, as well as Wicket 1.5 beyond that. We'll post back as soon as this is all decided. Is this meeting physical or online (a coworker of mine might be interested to attend)? While I'm here ... I really like the direction 1.5 is going in. Thanks for the excellent work you are putting into this. Is the AJAX engine Matej was working on (YUI and possibly a jQuert rewrite) on the back-burner now until someone picks that up again? AFAIK we decided that a new Ajax implementation would be too much new stuff for this release and will revisit wicket ajax in 1.6 Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Training - London, Amsterdam, Brussels, Munich
Here's the schedule for our next round of public Wicket training [0]: London (jWeekend [1]): August 5-6 (Thu-Fri) August 7-8 (Sat-Sun) September 4-5 (Sat-Sun) September 6-7 (Mon-Tue) Amsterdam (JTeam [2]): August 26-27 (Thu-Fri) Brussels (JTeam [2]): September 23-24 (Thu-Fri) Munich (latest jWeekend Global Partner Program [3] member to TBA shortly): Summer/Autumn - TBC Contact us directly [4] with on-site and/or special course requirements. Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com [0] http://www.jweekend.com/dev/JW703 [1] http://www.jweekend.com/dev/BookingPage [2] http://www.jteam.nl/training/apache-wicket-training.html [2] http://blog.jteam.nl/2009/03/24/jteam-announces-wicket-training/ [3] http://www.jweekend.com/dev/GlobalPartnerProgram [4] http://www.jweekend.com/dev/ContactUs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiQuery components with server side state - live demo
Theis, It has just been brought to my attention that we have not responded on this thread yet - thanks for your patience. This has never been an open source project - it was just a show case of what can be achieved with Wicket, wiQuery, and various jQuery components (like grids, growls, splitters, portlets etc) for RIA. We are working on aspects of these extensions with/for various clients and it is quite likely we will only make publicly available/open-source limited parts of it. These should eventually live on the wiQuery-plugins project on gitHub we have been planning for wiQuery with ODLabs and Lionel. As things stand, I would say don't hold your breath as there are various commercial factors we have no control over that any related decisions are dependent on. Regards - Cemal jWeekend Training, Development, Consultancy http://jWeekend.com On 12 June 2010 23:42, Thies Edeling tedel...@gmail.com wrote: Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be a benefit. It is not possible to construct JSON or XML and feed this into the grid manually, i.e. by telling the grid which url to use. The intended use is the same as with a Wicket DataTable, where an IDataProvider provides an iterator of beans which are rendered as rows in the grid. We use Wicket IConverter to convert each field of the bean to a String, then use a JSON library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.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
LegUp - Updated
LegUp [1] has been updated to give you a head start creating projects using various combinations of: Wicket 1.4.9 Guice 2.0 Spring 3.0.1 Warp Persist (latest build, 2.0) JPA 2.0 Hibernate 3.5.1-Final wiQuery 1.0.1 Scala 2.8.0.RC3 Regards - Cemal jWeekend Training, Consulting, Development http://www.jWeekend.com [1] http://jweekend.com/dev/LegUp - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Guice Wicket Guice Proxy
Nino, Now that a Warp 2.0 snapshot (which works with Guice 2) is on a Maven repo, we will upgrade the affected LegUp s [1]. Look out for an announcement, hopefully in the next week or so. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.co.uk/dev/LegUp On 8 June 2010 11:56, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi yaniv replying inline.. And thanks for the ideas. 2010/6/8 yaniv kessler yan...@gmail.com: Perhaps inject the model instead of manually creating it or maybe inject a data service into the page and use that reference in the model. My point is, passing the injector around (or in this case InjectorHolder), should be avoided, since as it degrades the entire Guice DI into a simple service locator pattern (which has its uses and shortcomings) Yeah I know and it annoys me too. So what you are saying is that the the ioc serialise proxy will be discovered in my ldm and be replaced on deserialise, also if I do not use injectorholder (that makes sense to me). The idea behind using injectorholder directly was because I wanted the ldm to be selfcontained. Anyways, putting code habits aside, I was unable to understand from your last mail if you succeeded in solving your problem, did you ? Well I've started a quickstart project (based on the legup archetype, but upgraded to guice 2) to trace what I am doing wrong, and have been unable to replicate the problem so far. I'll continue searching for what I've done wrong in the non working project. On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Well as I manually create the the loadabledetachmodel which extends the ClassWithDao, it has to call injectorholder. I am not aware of any other method that can solve this.. 2010/6/8 yaniv kessler yan...@gmail.com: I agree with Jorge here and additionally, would like to ask what is the motivation to use InjectorHolder directly? Are you simply doing new ClassWithDao() somewhere in your code ? On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez mg.mli...@gmail.com wrote: Why phoneDao is transient ? Wicket-Guice injects a Serializable proxy and thus after deserialization the field will be non-null. On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: sure: public class ClassWithDao { public ClassWithDao() { InjectorHolder.getInjector().inject(this); } @Inject private transient PhoneDao phoneDao; public PhoneDao getPhoneDao() { return phoneDao; } public void setPhoneDao(PhoneDao phoneDao) { this.phoneDao = phoneDao; } That's where I get the failure... And the working version you have seen.. 2010/6/7 yaniv kessler yan...@gmail.com: Nino, can you show the ClassWithDao code before the so called ugliness was introduced? On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: im still working on the quickstart.. So far I've been unable to replicate.. I'll continue tomorrow 2010/6/5 nino martinez wael nino.martinez.w...@gmail.com: I was too quick to say it worked, as it appears it does not. I'll try to make a quickstart based on legup, where should I put it? Just on jira? -Nino 2010/6/4 nino martinez wael nino.martinez.w...@gmail.com: yeah me too, what Igor said worked so must be true or a bug.. I don't think it's a bug.. 2010/6/3 James Carman ja...@carmanconsulting.com: I thought the filters were executed in the order of their filter-mappings, not their filter definitions. On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Argh, how stupid.. Thanks a lot igor, how can I buy you a beer or Coke? I spend a tremendous time trying to figure out what was wrong. I even considered going back to spring.. regards Nino 2010/6/3 Igor Vaynberg igor.vaynb...@gmail.com: noep, the filters are processed in the order they are defined in web.xml, move the wicket filter decl below the warp persist stuff. -igor On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: yes, i think so: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameIVR Web frontend/display-name filter filter-namewicket.WicketWarp/filter-name
Re: jetty replication quickstart - archetype
Jeremy, Once you've set up your project to be just the way you want it, we can create the archetype and add it to LegUp [1] if you like. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.co.uk/dev/LegUp On 5 June 2010 17:26, Jeremy Thomerson jer...@wickettraining.com wrote: I sent a message earlier about creating a jetty quickstart that started multiple replicated servers. Someone replied to ask if I would make it an archetype. I've sent four different replies to that question, and each has been bounced because of a high spam score. Not sure why that's happening. Anyway, the answer is that if it is not too difficult to set up, then yes, I will try to make it an archetype or built into the existing archetype. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wille's Wicket vs. Rails Smackdown
Wille Faler has had a look at Rails and written up his Wicket vs. Rails Smackdown [1]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://blog.recursivity.com/post/638788745/wicket-vs-rails-smackdown - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setter on model object not called
Send a QuickStart (simplest one you can create that demonstrates this) and we'll take a look. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:17, Douglas Ferguson doug...@douglasferguson.us wrote: I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - 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: setter on model object not called
It sounds like you are using a PropertyModel. If so, that is the expected behaviour, provided by the property resolver it employs. If there is no accessor (getter), the field, even if private is accessed (fields[i].setAccessible(true);). This is by design, not a bug, but whether it's a good idea or not is can be argued. The pragmatic argument for this design decision could probably be along the lines of - the model object may not have accessors and you may not have control of the code for it (so how do you know the private variable exists? And encapsulation?).You could end up with an app that runs in development and fails in production if Java security management is configured differently. So, use with care - in Java getters and setters are an unfortunate fact of life, so prefer having accessors and mutators if you have the choice. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:57, Douglas Ferguson doug...@douglasferguson.us wrote: I figured it out. If the object doesn't have a getter, the setter won't be called, and instead it just injects the value into the field. That seems like a bug, do I need to prepare a quickstart? D/ On May 13, 2010, at 2:51 AM, Cemal Bayramoglu wrote: Send a QuickStart (simplest one you can create that demonstrates this) and we'll take a look. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:17, Douglas Ferguson doug...@douglasferguson.us wrote: I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - 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
Wicket training this weekend - voucher for subscribers to this list.
You can use this voucher [1] for a 33% discount on bookings [2] completed today, using Google Checkout, for this weekend's Wicket course [3] in London for subscribers to this list and friends. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] WU_MAY0809_EXP0608 [2] http://jweekend.com/dev/BookingPage [3] http://jweekend.com/dev/JW703 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket training this weekend - voucher for subscribers to this list.
James, Congratulations on the new job (did you show them your genetic algorithms? ;-) . Ping me when you're in London. We have good Wicket developers working on our projects (full and part-time) and others looking for interesting Java/Wicket roles. Your company can contact someone here using our web-site [1] and we'll see if we can get them connected with people we know interested in a permanent position. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/ContactUs On 7 May 2010 11:10, James Perry james.austin.pe...@gmail.com wrote: Hey Cemal, Do you know of any Wicket developers that are looking for work? I am leaving my current employer, CPG, to work for an investment bank in a front office. CPG are struggling to find any Wicket developers and I thought that you may know a few good Wicket people. Hope all is well on your side. Best, James. On 7 May 2010 11:03, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: You can use this voucher [1] for a 33% discount on bookings [2] completed today, using Google Checkout, for this weekend's Wicket course [3] in London for subscribers to this list and friends. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] WU_MAY0809_EXP0608 [2] http://jweekend.com/dev/BookingPage [3] http://jweekend.com/dev/JW703 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best, James. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Components with dynamically defined child components
Mikkel, You will find more information than you have explicitly asked for here [1][2] but there is interesting and instructive material to look at, especially if you are new to Wicket and evaluating it for your project. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/ArticlesPage [2] see the Bean Editor movie on http://code.google.com/p/londonwicket/downloads On 7 May 2010 15:21, Mikkel Lauritsen ren...@tala.dk wrote: Hi all, I'm evaluating webapp frameworks in order to determine what to use when rewriting a large-ish application. Wicket is a serious con- testant, but there's one thing that I haven't been able to figure out how to do properly: how do I create components that have a dynamic list of child components, each child being an instance of any subclass of Component (or WebMarkupContainer)? Basically what I need is to obtain HTML like div markup from first child markup from second child ... /div Based on the documentation of the RepeatingView class I have tried just adding the children to a RepeatingView with div wicket:id=children/div as markup, expecting that I would get each child rendered inside a div element, but that doesn't work - possibly because the markup doesn't contain elements that refer to the id's of the child components. It works fine with labels, but for example Buttons are not shown at all. My problem seems to be the same as discussed in http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg18712.html but I unfortunately haven't been able to get further from there. Any comments and suggestions that you may have are much appreciated. Best regards thanks, Mikkel Lauritsen - 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: WicketRuntimeException: There is no application attached to current thread
Component's getString method will try to get the laocalizer from the Application, and the Application instance (singleton for a Wicket web-app) is bound to the thread processing your request, not to the one you have spawned off of it Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com . 2010/4/16 Martin Asenov mase...@velti.com: Hello guys! In a page, I have a button. The button starts a thread, just like this, but I get the exception in the bottom. Here is some code: �...@override protected void onSubmit(final AjaxRequestTarget target, Form? form) { final FileUpload fileUpload = fileUploadField.getFileUpload(); if (fileUpload != null) { final PhonebookImporter importer = new PhonebookImporter(((AppSession) Session.get()).getManager()); logger.debug(User + context.getEmail() + uploaded an import file - + fileUpload.getClientFileName()); byte[] bytes = fileUpload.getBytes(); String uploadFolder; try { uploadFolder = System.getenv(CATALINA_HOME) + props.get(uploadFolder); } catch (SMSOfficeException e1) { logger.error(Could not resolve property!, e1); uploadFolder = /home/project/services/apache-tomcat-6.0.20/webapps/ROOT/temp/; } User currentUser = ((AppSession) Session.get()).getContext() .getUser(); final File uploaded = new File(uploadFolder + String.valueOf(currentUser.getId()) + / + fileUpload.getClientFileName()); uploaded.getParentFile().mkdirs(); try { FileOutputStream fos = new FileOutputStream(uploaded, false); fos.write(bytes); fos.close(); logger.info(File written on + uploaded.getAbsolutePath()); } catch (IOException e) { logger.error(I/O Exception occurred!, e); return; } final ImportListener listener = new ImportListener() { public void info(String object, ImportMessage type) { textModel.append(getString(type.toString()) + object + \n); } }; importer.setUser(((AppSession) Session.get()).getContext().getUser()); importer.setDomain(((AppSession) Session.get()).getContext() .getDomain()); importer.addImportListener(listener); new Thread(new Runnable() { public void run() { try { boolean flag = importer.importContacts(uploaded, null); if (flag) { BulkImport.this.info(BulkImport.this.getString(imported)); logger.debug(User + context.getEmail() + managed to import the contacts!); } else { BulkImport.this.error(BulkImport.this.getString(enc_error)); logger.error(User + context.getEmail() + did NOT manage to import the contacts!); } } catch (Exception e) { logger.error(User + context.getEmail() + did NOT manage to import the contacts!, e); BulkImport.this.error(BulkImport.this.getString(not_imported)); } importer.removeImportListener(listener); target.addComponent(feed); } }).start(); } else { BulkImport.this.error(getString(no_uploaded_file)); } } And the exception: 16-04-2010 14:44:20,175 ERROR com.company.project.ui.bulk.BulkImport$2$2.run:183 - User mase...@velti.com did NOT manage to import the contacts! org.apache.wicket.WicketRuntimeException: There is no application attached to current thread Thread-17 at org.apache.wicket.Application.get(Application.java:179) at org.apache.wicket.Component.getApplication(Component.java:1323) at org.apache.wicket.Component.getLocalizer(Component.java:1436) at org.apache.wicket.Component.getString(Component.java:1903) at org.apache.wicket.Component.getString(Component.java:1890) at com. company.project.ui.bulk.BulkImport$2$1.info(BulkImport.java:153) at com. company.project.phonebook.bulk.PhonebookImporter.fireImportInfo(PhonebookImporter.java:76) at com. company.project.core.ManagerBean.saveContacts(ManagerBean.java:212) at com. company.project.core.ManagerBean$$FastClassByCGLIB$$a2c3fbf0.invoke(generated) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
Re: Adding attributes to child components in a behavior.
Warren, See MarkupContainer#visitChildren Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 18:44, Warren Bell warr...@clarksnutrition.com wrote: Is there a way to add attributes to child components in a behavior that is added to a page? I want to create a behavior that is added to a page that adds some js to the header and then adds some js in an onfocus attribute of each child form component on the page. I have the list of child form components, but can't figure out how to add the attribute to the components. Warren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding attributes to child components in a behavior.
I assume you were trying this in beforeRender of your behaviour, which as you say is too late. If you really need to use a behaviour encapsulate all this, try something like the following, but some may feel its a little politically incorrect to do this in bind. class MyBehaviour extends AbstractBehavior{ @Override public void bind(Component component) { if(!(component instanceof MarkupContainer)){ throw new RuntimeException(contaıners only please); } visitChildren(new IVisitorComponent(){ @Override public Object component(Component component) { component.add(new SimpleAttributeModifier(class,goodChild)); return IVisitor.CONTINUE_TRAVERSAL; } }); } } Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 20:17, Warren Bell warrenbe...@gmail.com wrote: I have that figured out, I just don't know how to add the attribute to each component. I can't add a behavior, since Cannot modify component hierarchy after render phase has started (page version cant change then anymore) Can I even do this in a behavior? Cemal Bayramoglu wrote: Warren, See MarkupContainer#visitChildren Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 18:44, Warren Bell warr...@clarksnutrition.com wrote: Is there a way to add attributes to child components in a behavior that is added to a page? I want to create a behavior that is added to a page that adds some js to the header and then adds some js in an onfocus attribute of each child form component on the page. I have the list of child form components, but can't figure out how to add the attribute to the components. Warren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks, Warren Bell - 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: Adding attributes to child components in a behavior.
... and if you're not building your component tree before you add such an IBehaviour to the parent container you can instead override onBeforeRender on that container to do something like: @Override public void onBeforeRender() { super.onBeforeRender(); visitChildren(new IVisitorComponent(){ @Override public Object component(Component component) { component.add(new SimpleAttributeModifier(class,goodChild)); return IVisitor.CONTINUE_TRAVERSAL; } }); } Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 21:17, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: I assume you were trying this in beforeRender of your behaviour, which as you say is too late. If you really need to use a behaviour encapsulate all this, try something like the following, but some may feel its a little politically incorrect to do this in bind. class MyBehaviour extends AbstractBehavior{ �...@override public void bind(Component component) { if(!(component instanceof MarkupContainer)){ throw new RuntimeException(contaıners only please); } visitChildren(new IVisitorComponent(){ �...@override public Object component(Component component) { component.add(new SimpleAttributeModifier(class,goodChild)); return IVisitor.CONTINUE_TRAVERSAL; } }); } } Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 20:17, Warren Bell warrenbe...@gmail.com wrote: I have that figured out, I just don't know how to add the attribute to each component. I can't add a behavior, since Cannot modify component hierarchy after render phase has started (page version cant change then anymore) Can I even do this in a behavior? Cemal Bayramoglu wrote: Warren, See MarkupContainer#visitChildren Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 18:44, Warren Bell warr...@clarksnutrition.com wrote: Is there a way to add attributes to child components in a behavior that is added to a page? I want to create a behavior that is added to a page that adds some js to the header and then adds some js in an onfocus attribute of each child form component on the page. I have the list of child form components, but can't figure out how to add the attribute to the components. Warren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks, Warren Bell - 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: resources folder / package
Eyal, This is not to do with Wickets resource loading. Its got to do with how you set up your build mechanism, and in particular, which files, from which folders you tell it to include in the creation of the target (folders or archives). In other words, you need to tell Maven or Ant or your IDE etc, which folders are source folders (and maybe even which files.types of fıles in them) so it knows you need these packaged up ready for deployment/use at runtime. If you are using Maven, see how the LegUp [1] POMs specify this. Or, in Eclipse, mark the relevant folders as source folders (right-click on the folder and you'll see the context-menu option for this). Make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.co.uk/dev/LegUp On 15 April 2010 22:11, Eyal Golan egola...@gmail.com wrote: hi, thanks. I know this, but my question was different. I saw in some projects that the JS and CSS files are in the same hierarchy as the class that is used for their scope, but the main folder is different. Example: I have a Java class: com.myCompany.ResourceScope.java it is located under src. I have a file called MyCss.css, which is located under com.myCompany but it is located under resources folder. both src and resources are under the same project. in the projects I saw, you can call for this resource reference with the ResourceScope class. I tried to do the same without success. Any thoughts? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Apr 15, 2010 at 4:46 PM, Sigmar Muuga meedi...@gmail.com wrote: You can define packages and put all CSS / JS files into them. Note that there must be some class also along with them, it may be an empty class. Then you can reference these resources using that class declaration. Note that if your css uses images, then you have to put correct paths into that css. Sigmar On Thu, Apr 15, 2010 at 2:43 PM, Eyal Golan egola...@gmail.com wrote: Hello to you all, it's been a very long time since I wrote here. I have a question regarding folder locations. I am working with WiQuery and it is unbelievable great. Also the support there (thanks indiana ;) ) In WiQuery there are 'themes' and the location of the CSS and images is in a separate folder called 'resources' , which has the same structure as of the Java classes themselves. I wanted to do the same in my project without success. Should I configure something other than just put the same hierarchy? thanks for the help. My question is Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Job opportunities (Netherlands)?
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
Re: Wicket and Guice / legup / warp persist?
Nino, It looks like the message you are getting is misleading; probably the refactoring out of the Wicket IOC module (which both Wicket's Guice and Spring modules sit on top of now) missed changing that exception's text. InjectorHolder has not been assigned is caused by Wicket's Guice integration not setting it the way Spring does. (((Application.get()).getMetaData(GuiceInjectorHolder.INJECTOR_KEY)).getInjector().injectMembers(this); would probably be the right Guice equivalent of your InjectorHolder.getInjector().inject(this); If you have taken copies of the LegUp's [1] make sure you are using the latest version. If one of us finds more time later and you're still having a problem (please let us know), we can debug the Wicket code and submit a patch, or it may be that the Guice integration just isn't supposed to work exactly like the Wicket Spring integration yet t (Igor?) but I haven't had a chance to take a good look through Jira yet, but it may be covered already in a related issue [2]. Then, we should also see how the JEE contrib (and James' stuff for CDI etc) works to keep things consistent across the board for people using IOC with Wicket. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://issues.apache.org/jira/browse/WICKET-1143 On 8 April 2010 10:08, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I revived my old wicket talk yesterday and since we are using guice at the company where Im at now the people attending the talk wanted to see my examples in guice / wicket instead of spring / wicket. So I used the legup archetype. Which worked nicely until I did a ldm which I had to inject a dao into. With spring I would add the ldm to the component instantiation listener, but if I do it the spring way (InjectorHolder.getInjector().inject(this);) I get this error: WicketMessage: Can't instantiate page using constructor public com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and argument postid = [3] Root cause: java.lang.IllegalStateException: InjectorHolder has not been assigned an injector. Use InjectorHolder.setInjector() to assign an injector. In most cases this should be done once inside SpringWebApplication subclass's init() method. at org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70) Now there are several things I wonder about, first of all, why are spring mentioned at all? Does wicket package DI specific classes in a common distribution, and if so should'nt it be called something specific towards the targetet DI framework. And second and more important how can I achieve the same thing with guice? Or this could also be a bug with legup or something. But I actually checked the init method and InjectorHolder.setInjector does not take the guice component injector as argument. regards Nino - 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: A web site developed with Wicket
Erdinç, Skype ID'in varsa konusalım. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 17 March 2010 19:52, voltron kocam...@yahoo.com wrote: Hello, http://www.nofailtime.com/appmonitor is a web application developed with wicket framework. It basically checks the web site downtime and notifies the users about the failure. It uses wicket, yahoo library(YUI), Spring and Cayenne as ORM. I used modal windows heavily to implement single page interface. YUI used for feedback panels and menu. I would be happy if you try the site and give feedback. You can login the site with account; username = demo password = demo Thanks, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JEE6
Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos) working with little effort. If you'd like to make (and maintain ;-) an archetype out of those (based on Apache implementations), or a Galssfish based one, we would be happy to include those on our LegUp page [2][3]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://svn.carmanconsulting.com/public/wicket-cdi/trunk [2] http://jweekend.com/dev/LegUp [3] http://code.google.com/p/legup/ On 30 March 2010 10:24, Olivier Bourgeois olivier.bourgeois@gmail.com wrote: I do also think that it's because Wicket is not a managed framework : everything is simple unmanaged POJOs except for your classes extending WebPage which are managed. I've juste had a quick look at JSF 2.0 and never worked with it - but I worked with Wicket - so I did not expected Wicket JEE6 integration to be a drop in replacement for JSF. I do think Wicket is an alternative framework for JEE6, not a replacement of the reference framework. On one hand JSF2 assumes that you are running a JEE6 AS, so it is tightly integrated with CDI, and you got all the cool stuff like injection, scopes, bean validation, etc. On the other hand, Wicket doesn't assume anything except a web container implementing the servlet spec, so it can't have all the cool stuff of CDI because it's not built around CDI. I think the next step to make Wicket JEE6 integration going further is to provide some Maven quickstart archetypes, the Weld team is looking for contributors : http://in.relation.to/Bloggers/WeldArchetypesInTheSpotlight Now that I have something working, and when I will have some spare time, my next step is to create an archetype for Glassfish. And if some people on this list have some time, their help is of course welcome :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JEE6
James, See the patch below; please double-check but it should be still valid if you haven't updated your POMs since Sunday AM your time. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com == PATCH STARTS BELOW = Index: pom.xml === --- pom.xml (revision 78) +++ pom.xml (working copy) @@ -36,4 +36,22 @@ /plugin /plugins /build + + repositories +repository +idJBoss Repo/id +urlhttp://repository.jboss.com/maven2/url +/repository + + repository + idgeronimo-snapshots/id + nameApache Nexus Snapshots/name + urlhttps://repository.apache.org/content/groups/snapshots-group/url + snapshots + enabledtrue/enabled + /snapshots + /repository + +/repositories + /project \ No newline at end of file Index: owb/pom.xml === --- owb/pom.xml (revision 78) +++ owb/pom.xml (working copy) @@ -16,11 +16,12 @@ artifactIdwicket-cdi/artifactId version${project.version}/version /dependency -dependency -groupIdorg.apache.openwebbeans/groupId -artifactIdopenwebbeans-impl/artifactId -version1.0.0-SNAPSHOT/version -/dependency +dependency +groupIdorg.apache.openwebbeans/groupId +artifactIdopenwebbeans-impl/artifactId +version1.0.0-M4/version +/dependency + dependency groupIdorg.apache.geronimo.specs/groupId artifactIdgeronimo-jcdi_1.0_spec/artifactId Index: owb-example/pom.xml === --- owb-example/pom.xml (revision 78) +++ owb-example/pom.xml (working copy) @@ -62,15 +62,11 @@ artifactIdwicket-cdi-owb/artifactId version${project.version}/version /dependency -dependency -groupIdorg.apache.openwebbeans/groupId -artifactIdopenwebbeans-web/artifactId -version1.0.0-SNAPSHOT/version -/dependency + dependency groupIdorg.apache.openwebbeans/groupId artifactIdopenwebbeans-spi/artifactId -version1.0.0-SNAPSHOT/version +version1.0.0-M4/version /dependency dependency groupIdorg.apache.geronimo.specs/groupId == END OF PATCH ABOVE On 30 March 2010 12:09, James Carman jcar...@carmanconsulting.com wrote: Cemal, Please feel free to send me a patch if anything looks crazy. I have had a heck of a time getting all this stuff working. It's a delicate balance (like herding cats)! :) The OWB folks have checked in my patch to fix one of the issues, but we're still hammering out another. Thanks, James On Tue, Mar 30, 2010 at 7:05 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos) working with little effort. If you'd like to make (and maintain ;-) an archetype out of those (based on Apache implementations), or a Galssfish based one, we would be happy to include those on our LegUp page [2][3]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://svn.carmanconsulting.com/public/wicket-cdi/trunk [2] http://jweekend.com/dev/LegUp [3] http://code.google.com/p/legup/ On 30 March 2010 10:24, Olivier Bourgeois olivier.bourgeois@gmail.com wrote: I do also think that it's because Wicket is not a managed framework : everything is simple unmanaged POJOs except for your classes extending WebPage which are managed. I've juste had a quick look at JSF 2.0 and never worked with it - but I worked with Wicket - so I did not expected Wicket JEE6 integration to be a drop in replacement for JSF. I do think Wicket is an alternative framework for JEE6, not a replacement of the reference framework. On one hand JSF2 assumes that you are running a JEE6 AS, so it is tightly integrated with CDI, and you got all the cool stuff like injection, scopes, bean validation, etc. On the other hand, Wicket doesn't assume anything except a web container implementing the servlet spec, so it can't have all the cool stuff of CDI because it's not built around CDI. I think the next step to make Wicket JEE6 integration going further is to provide some Maven quickstart archetypes, the Weld team is looking for contributors : http://in.relation.to/Bloggers/WeldArchetypesInTheSpotlight Now that I have something working, and when I will have some
Re: Wicket and JEE6
James, I'm pretty sure mvn test ran successfully on all your projects once I patched the POMs. I ran some (maybe not all) of the demo apps too. Send me your patches if you like too (they must not have been deployed yet on Sunday) and I may be able to take another look this evening or tomorrow PM. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 30 March 2010 12:30, James Carman jcar...@carmanconsulting.com wrote: I was using M4 of OWB, but I had to patch it. Are you sure it works for you? I was getting a NPE. On Tue, Mar 30, 2010 at 7:22 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: James, See the patch below; please double-check but it should be still valid if you haven't updated your POMs since Sunday AM your time. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com == PATCH STARTS BELOW = Index: pom.xml === --- pom.xml (revision 78) +++ pom.xml (working copy) @@ -36,4 +36,22 @@ /plugin /plugins /build + + repositories + repository + idJBoss Repo/id + urlhttp://repository.jboss.com/maven2/url + /repository + + repository + idgeronimo-snapshots/id + nameApache Nexus Snapshots/name + urlhttps://repository.apache.org/content/groups/snapshots-group/url + snapshots + enabledtrue/enabled + /snapshots + /repository + + /repositories + /project \ No newline at end of file Index: owb/pom.xml === --- owb/pom.xml (revision 78) +++ owb/pom.xml (working copy) @@ -16,11 +16,12 @@ artifactIdwicket-cdi/artifactId version${project.version}/version /dependency - dependency - groupIdorg.apache.openwebbeans/groupId - artifactIdopenwebbeans-impl/artifactId - version1.0.0-SNAPSHOT/version - /dependency +dependency + groupIdorg.apache.openwebbeans/groupId + artifactIdopenwebbeans-impl/artifactId + version1.0.0-M4/version +/dependency + dependency groupIdorg.apache.geronimo.specs/groupId artifactIdgeronimo-jcdi_1.0_spec/artifactId Index: owb-example/pom.xml === --- owb-example/pom.xml (revision 78) +++ owb-example/pom.xml (working copy) @@ -62,15 +62,11 @@ artifactIdwicket-cdi-owb/artifactId version${project.version}/version /dependency - dependency - groupIdorg.apache.openwebbeans/groupId - artifactIdopenwebbeans-web/artifactId - version1.0.0-SNAPSHOT/version - /dependency + dependency groupIdorg.apache.openwebbeans/groupId artifactIdopenwebbeans-spi/artifactId - version1.0.0-SNAPSHOT/version + version1.0.0-M4/version /dependency dependency groupIdorg.apache.geronimo.specs/groupId == END OF PATCH ABOVE On 30 March 2010 12:09, James Carman jcar...@carmanconsulting.com wrote: Cemal, Please feel free to send me a patch if anything looks crazy. I have had a heck of a time getting all this stuff working. It's a delicate balance (like herding cats)! :) The OWB folks have checked in my patch to fix one of the issues, but we're still hammering out another. Thanks, James On Tue, Mar 30, 2010 at 7:05 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos) working with little effort. If you'd like to make (and maintain ;-) an archetype out of those (based on Apache implementations), or a Galssfish based one, we would be happy to include those on our LegUp page [2][3]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://svn.carmanconsulting.com/public/wicket-cdi/trunk [2] http://jweekend.com/dev/LegUp [3] http://code.google.com/p/legup/ On 30 March 2010 10:24, Olivier Bourgeois olivier.bourgeois@gmail.com wrote: I do also think that it's because Wicket is not a managed framework : everything is simple unmanaged POJOs except for your classes extending WebPage which are managed. I've juste had a quick look at JSF 2.0 and never worked with it - but I worked with Wicket - so I did not expected Wicket JEE6 integration to be a drop
Re: My first WiQuery app does not work
David, Adding the component instantiation listener is more flexible than extending WiQueryWebApplication. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 30 March 2010 15:18, David Chang david_q_zh...@yahoo.com wrote: Julien, Thanks for your reply and it works now. Strangely, I copied the example on that page, which does not ask me to extend WiQueryWebApplication. Something wrong with that Hello World example? Two quick questions: 1. My environment is JDK 1.6 and Wicket 1.4.7. WiQuery 1.0 should have no problem with it. Correct? 2. Why the example requires double-click? Regards. -David --- On Tue, 3/30/10, julien roche AKA indiana_jules roche@gmail.com wrote: From: julien roche AKA indiana_jules roche@gmail.com Subject: Re: My first WiQuery app does not work To: users@wicket.apache.org Date: Tuesday, March 30, 2010, 8:02 AM Hi, Have you enable wiquery in your Wicket application ? This link is an implementation of the WebApplication with the linked with Wiquery: http://code.google.com/p/wiquery/source/browse/branches/1.0.1/src/main/java/org/odlabs/wiquery/utils/WiQueryWebApplication.java Hope that helped you Julien Roche On Tue, Mar 30, 2010 at 1:56 PM, David Chang david_q_zh...@yahoo.comwrote: Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery 1.0, Tomcat 6.0.24 I downloaded wiquery and put its jar on the classpath. I copied the Hello World sample from http://code.google.com/p/wiquery/wiki/QuickStart Here is my code: HTML:- html head titleWiQuery Quickstart Archetype Homepage/title /head body button wicket:id=open-dialogOpen dialog !/button p wicket:id=dialog Hello world, yes we can ! /p /body /html Java: import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.Button; import org.odlabs.wiquery.core.events.Event; import org.odlabs.wiquery.core.events.MouseEvent; import org.odlabs.wiquery.core.events.WiQueryEventBehavior; import org.odlabs.wiquery.core.javascript.JsScope; import org.odlabs.wiquery.ui.dialog.Dialog; public class WiqueryDialog extends WebPage { public WiqueryDialog() { final Dialog dialog = new Dialog(dialog); add(dialog); Button button = new Button(open-dialog); button.add(new WiQueryEventBehavior(new Event(MouseEvent.DBLCLICK) { @Override public JsScope callback() { return JsScope.quickScope(dialog.open().render()); } })); add(button); } } -- I did not get any compiler error and I can run the wicket app and see the html in the browser. However, I did not get any respone when clicking the button. What I did is wrong? Thanks. -- here is generated html -- html head titleWiQuery Quickstart Archetype Homepage/title script type=text/javascript src=resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/jquery/jquery-1.3.2.js/script script type=text/javascript src=resources/org.odlabs.wiquery.core.commons.WiqueryGeneratedJavaScriptResourceReference/1269950176687wiquery-gen.js/script /head body button name=open-dialog id=open_dialog1Open dialog !/button p id=dialog2 Hello world, yes we can ! /p /body /html - 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: Wicket JavaScript Library Integration - A Common Base
Uwe! I was thinking in terms of a simple core, of well defined and limited scope. It would provide a clear and well trodden way for people to integrate their favourite JavaScript libraries with Wicket in a consistent and effective, tried and tested way. As you say, there are always going to be potential complications whenever a single web page depends on more than one version of the same JavaScript libraries, or sometimes even when some libraries clash with other, (seemingly) unrelated ones. What I was proposing was not as a solution to incompatibilities between such multiple dependencies. On the other hand, once we had the common base (that seems to have already attracted some interest and even potential development support here), an extension, optional for people who want/need it, could try to manage the versions and other causes of conflict you talk of, if I understand you correctly. I am a believer in keeping the core as simple and light as possible whilst still open (and designed for) potential enhancement with extended functionality. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com 2010/3/26 Uwe Schäfer schae...@thomas-daily.de: Uwe Schäfer schrieb: Hi Cemal, I was thinking that it could possibly be sensible to have another project where we abstract out the mechanisms wiQuery provides for resources and JavaScript statements. to keep that topic alive: do you agree that providing a unified way for component authors to contribute standard libs to the page, as well as coordinating these dependencies on the page level is a primary goal of creating this lib? cu uwe - 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: Wicket JavaScript Library Integration - A Common Base
Stefan, ... and encapsulating JavaScript statements; the two main concerns I'd imagine anyone making an integration between Wicket and a JavaScript library has. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 26 March 2010 13:37, Stefan Lindner lind...@visionet.de wrote: This sounds exactly like the thing I'm looking for. A small and simple framework for HeaderContribution. Stefan -Ursprüngliche Nachricht- Von: ce...@jweekend.com [mailto:ce...@jweekend.com] Im Auftrag von Cemal Bayramoglu Gesendet: Freitag, 26. März 2010 14:26 An: users Betreff: Re: Wicket JavaScript Library Integration - A Common Base Uwe! I was thinking in terms of a simple core, of well defined and limited scope. It would provide a clear and well trodden way for people to integrate their favourite JavaScript libraries with Wicket in a consistent and effective, tried and tested way. As you say, there are always going to be potential complications whenever a single web page depends on more than one version of the same JavaScript libraries, or sometimes even when some libraries clash with other, (seemingly) unrelated ones. What I was proposing was not as a solution to incompatibilities between such multiple dependencies. On the other hand, once we had the common base (that seems to have already attracted some interest and even potential development support here), an extension, optional for people who want/need it, could try to manage the versions and other causes of conflict you talk of, if I understand you correctly. I am a believer in keeping the core as simple and light as possible whilst still open (and designed for) potential enhancement with extended functionality. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com 2010/3/26 Uwe Schäfer schae...@thomas-daily.de: Uwe Schäfer schrieb: Hi Cemal, I was thinking that it could possibly be sensible to have another project where we abstract out the mechanisms wiQuery provides for resources and JavaScript statements. to keep that topic alive: do you agree that providing a unified way for component authors to contribute standard libs to the page, as well as coordinating these dependencies on the page level is a primary goal of creating this lib? cu uwe - 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: WicketFilter Config
See if http://jweekend.com/dev/LegUp gives you an easy way to get started. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 25 March 2010 18:22, mzem...@osc.state.ny.us wrote: Due to the fact that SpringWebApplication is deprecated, we evaluated several ways of configuring Wicket using WicketFilter. I found ContextParamWebApplicationFactory to work with a Spring Annotation approach. SpringWebApplicationFactory also works with a Spring Annotation approach, but since it returns a SpringWebApplication (deprecated) should it be avoided? I would love to hear from the Wicket team as far as the recommended configuration. Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket JavaScript Library Integration - A Common Base
There's been plenty of encouraging feedback about wiQuery [1] and how cleanly it integrates jQuery and makes it easy to use in a Wicket app. We also get lots of questions, sometimes unrelated to wiQuery, about how to integrate other JavaScript libraries. I was thinking that it could possibly be sensible to have another project where we abstract out the mechanisms wiQuery provides for resources and JavaScript statements. People could then build on this base to integrate their preferred JavaScript libraries (eg YUI, extJS, Prototype ...). I would even see wiQuery being potentially refactored to use such a base framework. Any thoughts? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/wiquery/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?
David, You may find LegUp [1] useful. Also see the wiki, [2], the Wicket in Action site [3] and book [4] for useful information, and the PhoneBook sample [5]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://cwiki.apache.org/WICKET/spring.html [3] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ [4] http://www.manning.com/dashorst/ [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 16 March 2010 02:05, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big, but still show many points. Thanks a lot! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to access ListItem from ListView from AjaxLink?
Prati, This is because you are only re-rendering the most recently selected label. One solution is keep track of the previous current selection (probably in your RefreshingView implementation - eg declare Component currentSelection;), which you update in your Link's onClick (ie currentSelecton = contactLabel;) _after_ you remove the style attribute (that you previously set) on currentSelection and add currrentSelection to the AjaxRequestTarget so it too gets refreshed. Make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 11 March 2010 18:09, prati pratibha.pari...@gmail.com wrote: Hi I have got a refreshing view ,it contains list of links.I need to highlight the link when i click on that link. It works properly but if i click the next item in the list,the previous text remains highlighted. wicket:extend table cellspacing=0 class=dataview tr thFirst Name/th /tr tr wicket:id=view td # /td /tr /table /wicket:extend public class RefreshingPage extends BasePage { public RefreshingPage() { final ListIModel contacts = new ArrayListIModel(10); // populate list of contacts to be displayed IteratorContact it = rgetContacts().iterator(); while (it.hasNext()) { contacts.add(new Model(it.next())); } // create the refreshing view RefreshingView view = new RefreshingView(view) { /** * Return an iterator over models for items in the view */ �...@override protected IteratorIModel getItemModels() { return contacts.iterator(); } �...@override protected void populateItem(final Item item) { Contact contact = (Contact) item.getModelObject(); final Label contacteLabel = new Label(aname,contact.getName()); contacteLabel.setOutputMarkupId(true); item.add(new AjaxLink(name) { private static final long serialVersionUID = 1L; �...@override public void onClick(AjaxRequestTarget target) { if(target!= null) { contacteLabel.add(new AttributeModifier(style, true, new AbstractReadOnlyModel() { �...@override public String getObject() { return background-color:#80b6ed;; } })); target.addComponent(contacteLabel); } } }.add(contacteLabel)); } }; add(view); } } Regards P moontz wrote: i tried that before. did not work. no compile or runtime errors, but the source did not show the change. im thinking, since its an ajax link and because only the target panel refreshes, the change to the link is not applied because the actual link is not refreshed. only the other panel is. in which case i would need to append javascript. i was hping there was a pure wicket solutioin though without using JS. igor.vaynberg wrote: final ListItem item -igor On Fri, Feb 13, 2009 at 7:36 AM, moontz bmun...@yahoo.com wrote: I would like to add an attribute to the ListItem element in the markup (basically change the class style) on click of the link. Below is my snippet. Any insight on how I can accomplish this? Thanks in advance! ListView lv = new ListView(tabListView, tabList) { protected void populateItem(ListItem item) { AjaxLink ajaxLink = new AjaxLink(tabLink, item.getModel()) { public void onClick(AjaxRequestTarget target) { item.add(new SimpleAttributeModifier(class, on)); // want to do this but do not have access to item object from inner class --
Re: How to access ListItem from ListView from AjaxLink?
Prati, I'm not sure what you mean. Here's a couple of lines of code implementing what I described: if(currentSelection != null){ // you should remove existing behaviours on // currentSelection here or, // use an AtrributeModifier added, just once, to all your // labels with a model that has logic // checking against currentSelection to // calculate the correct value for your style attribute currentSelection.add(new SimpleAttributeModifier(style, )); target.addComponent( } currentSelection = contacteLabel; Just declare Component currentSelection; in your RefreshingView. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 11 March 2010 21:44, prati pratibha.pari...@gmail.com wrote: Hi Cemal, Thanks for replying me,but the list gets rendered only once,and i am able to capture previous value on click but then how to move further. Regards P jWeekend wrote: Prati, This is because you are only re-rendering the most recently selected label. One solution is keep track of the previous current selection (probably in your RefreshingView implementation - eg declare Component currentSelection;), which you update in your Link's onClick (ie currentSelecton = contactLabel;) _after_ you remove the style attribute (that you previously set) on currentSelection and add currrentSelection to the AjaxRequestTarget so it too gets refreshed. Make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 11 March 2010 18:09, prati pratibha.pari...@gmail.com wrote: Hi I have got a refreshing view ,it contains list of links.I need to highlight the link when i click on that link. It works properly but if i click the next item in the list,the previous text remains highlighted. wicket:extend table cellspacing=0 class=dataview tr thFirst Name/th /tr tr wicket:id=view td # /td /tr /table /wicket:extend public class RefreshingPage extends BasePage { public RefreshingPage() { final ListIModel contacts = new ArrayListIModel(10); // populate list of contacts to be displayed IteratorContact it = rgetContacts().iterator(); while (it.hasNext()) { contacts.add(new Model(it.next())); } // create the refreshing view RefreshingView view = new RefreshingView(view) { /** * Return an iterator over models for items in the view */ �...@override protected IteratorIModel getItemModels() { return contacts.iterator(); } �...@override protected void populateItem(final Item item) { Contact contact = (Contact) item.getModelObject(); final Label contacteLabel = new Label(aname,contact.getName()); contacteLabel.setOutputMarkupId(true); item.add(new AjaxLink(name) { private static final long serialVersionUID = 1L; �...@override public void onClick(AjaxRequestTarget target) { if(target!= null) { contacteLabel.add(new AttributeModifier(style, true, new AbstractReadOnlyModel() { �...@override public String getObject() { return background-color:#80b6ed;; } })); target.addComponent(contacteLabel); } } }.add(contacteLabel)); } }; add(view); } } Regards P moontz wrote: i tried that before. did not work. no compile or runtime errors, but the source did not show the change. im thinking, since its an ajax link and because only the target panel refreshes, the change to the link is not applied because the actual link is not refreshed. only the other panel is. in which case i would need to append javascript. i was hping there was a pure wicket solutioin though without using JS. igor.vaynberg wrote: final ListItem item -igor On Fri, Feb 13, 2009 at 7:36 AM, moontz bmun...@yahoo.com wrote: I would like to add an attribute to the ListItem element in the markup (basically change the class style) on click of the link. Below is my snippet. Any insight on how I can
Re: How to access ListItem from ListView from AjaxLink?
if(currentSelection != null){ // you should remove existing behaviours on // currentSelection here or, // use an AtrributeModifier added, just once, to all your // labels with a model that has logic // checking against currentSelection to // calculate the correct value for your style attribute currentSelection.add(new SimpleAttributeModifier(style, )); target.addComponent(currentSelection); } currentSelection = contacteLabel; On 11 March 2010 22:50, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Prati, I'm not sure what you mean. Here's a couple of lines of code implementing what I described: if(currentSelection != null){ // you should remove existing behaviours on // currentSelection here or, // use an AtrributeModifier added, just once, to all your // labels with a model that has logic // checking against currentSelection to // calculate the correct value for your style attribute currentSelection.add(new SimpleAttributeModifier(style, )); target.addComponent( } currentSelection = contacteLabel; Just declare Component currentSelection; in your RefreshingView. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 11 March 2010 21:44, prati pratibha.pari...@gmail.com wrote: Hi Cemal, Thanks for replying me,but the list gets rendered only once,and i am able to capture previous value on click but then how to move further. Regards P jWeekend wrote: Prati, This is because you are only re-rendering the most recently selected label. One solution is keep track of the previous current selection (probably in your RefreshingView implementation - eg declare Component currentSelection;), which you update in your Link's onClick (ie currentSelecton = contactLabel;) _after_ you remove the style attribute (that you previously set) on currentSelection and add currrentSelection to the AjaxRequestTarget so it too gets refreshed. Make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 11 March 2010 18:09, prati pratibha.pari...@gmail.com wrote: Hi I have got a refreshing view ,it contains list of links.I need to highlight the link when i click on that link. It works properly but if i click the next item in the list,the previous text remains highlighted. wicket:extend table cellspacing=0 class=dataview tr thFirst Name/th /tr tr wicket:id=view td # /td /tr /table /wicket:extend public class RefreshingPage extends BasePage { public RefreshingPage() { final ListIModel contacts = new ArrayListIModel(10); // populate list of contacts to be displayed IteratorContact it = rgetContacts().iterator(); while (it.hasNext()) { contacts.add(new Model(it.next())); } // create the refreshing view RefreshingView view = new RefreshingView(view) { /** * Return an iterator over models for items in the view */ �...@override protected IteratorIModel getItemModels() { return contacts.iterator(); } �...@override protected void populateItem(final Item item) { Contact contact = (Contact) item.getModelObject(); final Label contacteLabel = new Label(aname,contact.getName()); contacteLabel.setOutputMarkupId(true); item.add(new AjaxLink(name) { private static final long serialVersionUID = 1L; �...@override public void onClick(AjaxRequestTarget target) { if(target!= null) { contacteLabel.add(new AttributeModifier(style, true, new AbstractReadOnlyModel() { �...@override public String getObject() { return background-color:#80b6ed;; } })); target.addComponent(contacteLabel); } } }.add(contacteLabel)); } }; add(view); } } Regards P moontz wrote: i tried that before. did not work. no compile or runtime errors, but the source did not show the change. im thinking, since its an ajax link
Re: FormComponentPanel's components onblur can't call validate?
Tony, If you don't mind submitting the whole form add AjaxFormSubmitBehaviors to the appropriate child components . Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 9 March 2010 23:52, Tony Wu e90t...@gmail.com wrote: I have a FormComponentPanel which holds 3 dropdowns for month-day-year (it's a birthday FormComponentPanel). I override convertInput on the FormComponentPanel to return the age based on the 3 drop downs. I have an age validator which makes sure they're over 18. Now, this all works fine on form submit (convertInput gets called and it runs the validator). But when I try to do it dynamically by attaching a onchange AjaxFormUpdatingBehavior event to the 3 drop downs to call FormComponentPanel.validate() (@Override onUpdate, and only when all 3 drop downs are selected of course), I know the onchange triggers (because it's @Override onUpdate runs - had a system.out.println which runs), but the validate() function doesn't run the age validator. It actually *never even calls convertInput* on the FormComponentPanel. Any ideas? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
London Wicket - short notice?
A couple of friends, who coincidently tend to say nice, sensible stuff about Wicket, will be here for QConn, for a few days this week. If you happen to be close to central London tomorrow evening (Wednesday, GMT), join us for a little London Wicket Drink [1], and we can also discuss our next formal London Wicket Event [2] that we have now approved budget for and have started planning. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] 19:00 at http://maps.google.co.uk/places/gb/london/whitehall/16/-lord-moon-of-the-mall?hl=en [2] http://code.google.com/p/londonwicket/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiQuery components with server side state - live demo
http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be a benefit. It is not possible to construct JSON or XML and feed this into the grid manually, i.e. by telling the grid which url to use. The intended use is the same as with a Wicket DataTable, where an IDataProvider provides an iterator of beans which are rendered as rows in the grid. We use Wicket IConverter to convert each field of the bean to a String, then use a JSON library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiQuery components with server side state - live demo
Eyal, Thanks. We will be working on that as soon as we get another opportunity. Perhaps we will try to coincide our release with the release of wiQuery 1.0.1 which we may also have by the end of the month. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 8 March 2010 15:05, Eyal Golan egola...@gmail.com wrote: Really cool demo! Is there a place where I can see source for the portal demo? If I show the guys at work I can use it, we will defently choose WiQuery. They're talking about GXT and other stuff which I really don't want to go into. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Mar 2, 2010 at 6:58 PM, Cemal A Bayramoglu ce...@jweekend.comwrote: We've been building a few wiQuery components [0], for clients' and internal projects. These wiQuery components typically maintain some of their state server-side, in the spirit of standard Wicket components. Here's a simple demo [1] to show some of them in action. Look carefully and you'll find lots of stuff to click on [2]. We could plan to open up the ones we may [3] if they look useful to you or you'd like to get involved with design/development/testing. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [0] includes components based on sortable portlet, jqGrid/Tree, jGrowl, jQuery UI: Accordian, Dialog, Tabs all integrated with Wicket using wiQuery (http://code.google.com/p/wiquery/) [1] http://labs.jWeekend.com/public/ [2] We'd naturally prefer if you didn't zap _all_ the records from our toy database! Yes, we know some of you will take this as an invitation to have a go! [3] No promises on dates just now, but it is something we'd like to do soon. - 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: Session expired drives me mad!
Martin, It looks like your page is holding on to Spring benas. Are you using @SpringBean to inject Spring beans into your pages? That way you would get a proxy to the beans so you don't need to worry about them being serialisable. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com 2010/3/8 Martin Asenov mase...@velti.com: Hello everyone! The session expired problem really drives me mad, because it's been couple of months or so since it started bothering me. Please advice me on what to do, because I'm despaired. Wicket tries to serialize every single class in my opinion. I enabled the DEBUG of Wicket and messages like the following one are flooding the log. Here it is: 08-03-2010 17:30:03,445 ERROR org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error serializing object class com.mycompany.myapp.ui.users.Users [object=[Page class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler Field hierarchy is: 21 [class=com.mycompany.myapp.ui.users.Users, path=21] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] protected java.lang.Object com.mycompany.myapp.ui.MyFormPanel.model[15] [class=org.apache.wicket.markup.html.WebMarkupContainer, path=21:holder] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=com.mycompany.myapp.ui.users.Users$2, path=21:holder:view] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=org.apache.wicket.markup.repeater.RepeatingView, path=21:holder:view:1:cols] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=org.apache.wicket.markup.repeater.Item, path=21:holder:view:1:cols:2] java.lang.Object org.apache.wicket.Component.data [class=com.mycompany.myapp.ui.users.SortedUsersProvider$1] final com.mycompany.myapp.ui.users.SortedUsersProvider com.mycompany.myapp.ui.users.SortedUsersProvider$1.this$0 [class=com.mycompany.myapp.ui.users.SortedUsersProvider] private com.mycompany.myapp.session.UserContext com.mycompany.myapp.ui.users.SortedUsersProvider.context [class=com.mycompany.myapp.session.UserContext] private com.mycompany.myapp.ui.util.Utilities com.mycompany.myapp.session.UserContext.utilities [class=com.mycompany.myapp.ui.util.Utilities] private com.mycompany.myapp.admin.ManagementBean com.mycompany.myapp.ui.util.Utilities.domainAndUsersManagement [class=com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a] private net.sf.cglib.proxy.MethodInterceptor com.mycompany.myapp.admin.ManagementBean$$EnhancerByCGLIB$$b016b4a.CGLIB$CALLBACK_0 [class=org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor] private org.springframework.aop.framework.AdvisedSupport org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.advised [class=org.springframework.aop.framework.ProxyFactory] private org.springframework.aop.Advisor[] org.springframework.aop.framework.AdvisedSupport.advisorArray [class=[Lorg.springframework.aop.Advisor;] private org.springframework.aop.Advisor[] org.springframework.aop.framework.AdvisedSupport.advisorArray[0] [class=org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] private org.aopalliance.aop.Advice org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice [class=org.springframework.transaction.interceptor.TransactionInterceptor] private org.aopalliance.aop.Advice org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.advice[write:1] [class=org.springframework.orm.jpa.JpaTransactionManager] private javax.persistence.EntityManagerFactory org.springframework.orm.jpa.JpaTransactionManager.entityManagerFactory [class=$Proxy29] protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h
Re: With out HTML Dynamic Wicket Generation
Take a look at Wicket Web Beans [1][2] for ideas. There are other projects too, Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/wicket-web-beans/ [2] http://jweekend.com/wicketwebbeans-examples-1.1/WebBeans/ On 4 March 2010 09:48, sravan g sravangs...@gmail.com wrote: Hi All, Can anyone have idea about With out HTML Dynamic Wicket Generation Possible? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to strip Wicket tags in development mode?
David, Take a look here [1]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html On 4 March 2010 23:44, David Chang david_q_zh...@yahoo.com wrote: I understand that in deployment, all Wicket tags are stripped from the rendered markup that is sent to the client. How can I strip all Wicket tags from the rendered markup in development mode. I want to see clean HTML content in the client. Thanks for help! - 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: wiQuery components with server side state - live demo
This is all useful feedback, thank you. Storing things like the user's selected columns, their order, row sort order, number of rows per page, preferred/selected themes etc ... are on our list of things to consider. I envisage persisting these user-specific setting (preferences/profiles/perspectives/views?) server-side, perhaps triggered by a user request to do so (eg hitting a Save A (Named) View Settings button). We've also talked about the less permanent persistence for page-refreshes, which could potentially be held on the client-side, in the Wicket page or session. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 2 March 2010 23:10, Vladimir K koval...@gmail.com wrote: Looks great! One thing is missing - the components don't restore their state on refresh. I believe cookie, window name or dom storage can be used to keep the position and settings of components that are available for dragging/re-arrangement. Roman Ilin wrote: Great, ready for use components. On Tue, Mar 2, 2010 at 5:58 PM, Cemal A Bayramoglu ce...@jweekend.com wrote: We've been building a few wiQuery components [0], for clients' and internal projects. These wiQuery components typically maintain some of their state server-side, in the spirit of standard Wicket components. Here's a simple demo [1] to show some of them in action. Look carefully and you'll find lots of stuff to click on [2]. We could plan to open up the ones we may [3] if they look useful to you or you'd like to get involved with design/development/testing. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [0] includes components based on sortable portlet, jqGrid/Tree, jGrowl, jQuery UI: Accordian, Dialog, Tabs all integrated with Wicket using wiQuery (http://code.google.com/p/wiquery/) [1] http://labs.jWeekend.com/public/ [2] We'd naturally prefer if you didn't zap _all_ the records from our toy database! Yes, we know some of you will take this as an invitation to have a go! [3] No promises on dates just now, but it is something we'd like to do soon. - 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/wiQuery-components-with-server-side-state---live-demo-tp27758298p27762474.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiQuery components with server side state - live demo
Richard, WeI had a meeting with Lionel and Julien last night where we decided to open a wiQuery plugins project on gitHub,. Our components will also eventually start their public life there. We are also in the process of fixing a Maven repo for wiQuery itself, where we may also host the binaries for the best plugins people contribute. We should have that and a basic LegUp [1] ready for wiQuery this week. We may wait for 1.4.7's release so we don't have to release our LegUp this twice in quick succession though. WRT our wiQuery CometD demo, we do have a working prototype but it's not ready for release; we need to contact the wicket-push project guys first because we have made quite a few changes to that (locally) and we have used the jQuery APIs for CometD. We will be contacting them soon. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://www.jweekend.com/dev/LegUp On 3 March 2010 12:22, morbo richard.wiesin...@gmail.com wrote: This looks very very nice. Thank you for sharing. I am espacially interested in the cometd demo. When do you plan to release it? Regards, richard Cemal A Bayramoglu wrote: We've been building a few wiQuery components [0], for clients' and internal projects. These wiQuery components typically maintain some of their state server-side, in the spirit of standard Wicket components. Here's a simple demo [1] to show some of them in action. Look carefully and you'll find lots of stuff to click on [2]. We could plan to open up the ones we may [3] if they look useful to you or you'd like to get involved with design/development/testing. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [0] includes components based on sortable portlet, jqGrid/Tree, jGrowl, jQuery UI: Accordian, Dialog, Tabs all integrated with Wicket using wiQuery (http://code.google.com/p/wiquery/) [1] http://labs.jWeekend.com/public/ [2] We'd naturally prefer if you didn't zap _all_ the records from our toy database! Yes, we know some of you will take this as an invitation to have a go! [3] No promises on dates just now, but it is something we'd like to do soon. - 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/wiQuery-components-with-server-side-state---live-demo-tp27758298p27767506.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
LegUp for wiQuery
We've just released a new LegUp [1], this time for wiQuery. It gives people interested in the project a good way to quickly start experimenting with their app rather than getting bogged down in project and dependency configuration. The next LegUp will most likely be for creating a Scala/Wicket project. Let us know if you have any other ideas people might find useful. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jWeekend.com/dev/LegUp - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiQuery components with server side state - live demo
library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: persisting a javascript object via wicket
Douglas, See Al's drag 'n' drop list editor slides at http://jweekend.com/dev/ArticlesPage . Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 1 March 2010 22:58, Douglas Ferguson doug...@douglasferguson.us wrote: We are looking at building a JQuery plugin that would give us some drag and drop capabilities. When the users does this, we'd like to persist the state to the db. How can we trigger an ajax call to wicket so that our persistence method for the page will get called? Douglas Ferguson mobile: 512.293.7279 office/fax: 512.462.0408 skype: stillrecording aim: DaAmericanRuse - http://www.linkedin.com/in/douglasferguson http://www.myspace.com/douglasferguson http://www.douglasferguson.us/ http://www.distilleryrecords.com/ http://www.stillrecording.com/ Join my mailing list: distilleryrecords-subscr...@yahoogroups.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
Wicket Courses - Spring 2010, London and Amsterdam
Here is our public Wicket course schedule for Spring 2010: March 6-7(Sat-Sun) March 9-10(Tue-Wed) April 10-11(Sat-Sun) April 12-13(Mon-Tue) May 8-9(Sat-Sun) May 10-11(Mon-Tue) For full details and bespoke requirements see http://jWeekend.com Dates for Amsterdam will be announced soon. We also hope to introduce a couple of new jWeekend Global Training Partners [1] in the coming months. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/GlobalPartnerProgram - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket used for mobile.walmart.com
I've seen a few places now, where in their excitement, enthusiasm and haste to make it known to the world that a key, public facing, Walmart site is built on Wicket, people have spelt the domain name incorrectly. Arguments to convince the unaware that Wicket is really very good would be even more convincing if quoted URLs actually exist, like mobile.walmart.com does. Joachim, Congratulations to you and your colleagues. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 23 February 2010 11:32, Daniele Dellafiore ilde...@gmail.com wrote: On Mon, Feb 22, 2010 at 9:50 PM, Riyad Kalla rka...@gmail.com wrote: Joachim, Very very cool info. A few days ago folks were talking about slides for convincing management of Wicket and trying to create some common slides for folks to utilize -- information like *this* (Walmart, Wells Fargo) is a gold-mine for those business cases for Wicket. In fact I have immediately changed my presentation about Wicket with this new one http://docs.google.com/present/view?id=dhccq8r9_77c6dhxjdh ;) -- Daniele Dellafiore http://danieledellafiore.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: color of message
Mike, Use CSS. eg on feedback errors, Wicket puts class=feedbackPanelERROR Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 23 February 2010 12:27, Gw not4spamm...@gmail.com wrote: Hi, folks... Does anyone know how to change the color of feedback messages, say: red for errors, green for info, etc... Many thanks before... Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OnChangeAjaxBehavior: nth character
Steven, Start with something like this: zipcodeField.add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { // do your stuff here } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { @Override public CharSequence decorateScript(CharSequence script) { return if(this.value.length % 5 == 0){ + script + }; } }; } }); Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 12 February 2010 20:45, Steven Haines lyg...@yahoo.com wrote: Hi, I would like to add AJAX behavior to an application that sends an update to my application after a certain number of characters have been typed. For example, if the user is entering a zipcode, I would like a callback to my application to be made after the user enters the fifth character. I've written code using OnChangeAjaxBehavior that sends messages back to my application after every character has been typed, such as the following: final TextFieldString zipcodeField = new TextFieldString( zipcode ); form.add( zipcodeField.setRequired( true ) ); OnChangeAjaxBehavior zipcodeUpdated = new OnChangeAjaxBehavior() { �...@override protected void onUpdate( AjaxRequestTarget target ) { System.out.println( Zipcode value: + zipcodeField.getDefaultModelObjectAsString() ); } }; zipcodeField.add( zipcodeUpdated ); I could check to see the size of the zipcodeField (in this example), but it makes my application more chatty than it needs to be. I also tried using onblur, which works fine, but does not satisfy my business requirements: final TextFieldString zipcodeField = new TextFieldString( zipcode ); form.add( zipcodeField.setRequired( true ) ); AjaxFormComponentUpdatingBehavior zipcodeOnBlur = new AjaxFormComponentUpdatingBehavior( onblur ) { �...@override protected void onUpdate( AjaxRequestTarget target ) { System.out.println( Zipcode value (form component): + getFormComponent().getModelObject() ); } }; zipcodeField.add( zipcodeOnBlur ); Prior to using Wicket (which I'm currently prototyping for my company), we would handle this logic in JavaScript (observe changes to the field and when the user enters the fifth character then we made an AJAX call back our Struts 2 application.) What is the best way to achieve the same end using Wicket? Thanks, in advance, for your help! Steve P.S. I started using Wicket as part of an article series (because of all of your passion for it) and I have to say all of you are doing incredible work - I love it.. Here's the link to the article series in case any of you are interested: http://www.informit.com/guides/content.aspx?g=javaseqNum=529 - 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: Frames for layout
Josh, Thanks for taking a look at WiQuery. If you'd like to raise any issues/questions via [1] I expect you'd get some decent and timely help pretty quickly as people are using this in production systems. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/wiquery/ On 10 February 2010 12:58, Josh Kamau joshnet2...@gmail.com wrote: Ernesto; Thanks for you comments. I have been trying out the WiQuery layout solution though i had a fight with it in the morning. I really needed it bundled into a jar file. I will try the raw JQuery javascript during my next coffee break. Thanks for the great support in this forum Regards. On Wed, Feb 10, 2010 at 3:44 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why not use the jquery based solution provided in another thread? Ernesto On Wed, Feb 10, 2010 at 10:53 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi Team; Just wondering, can i use Frames for application layout? The kind of application am talking about will run within a LAN and therefore bookmarkability and Search engine friendliness are not major issues. regards. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Panel.replaceWith() in a DataView
Ricardo, On a more general note, in case you haven't come across it yet, you want to take a look at BRIX-CMS [1]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/brix-cms/ On 10 February 2010 07:55, riccardo trombini riccardo.tromb...@inverted.ch wrote: hi i am writting a software for an article management. a user can post and edit articles. to do that i show all the users articles in a /*DataView*/. This lists every item in a TableRow. ButtonPanel buttonPanel = new ButtonPanel(buttonPanel); // extends Panel Of course the user needs to delete these, for that i provide a button. AjaxLink deleteButton = new AjaxLink(deleteButton){ ... } buttonPanel.add(deleteButton); But i want to confirm this action befor i delete the article. my idea is to Replace the panel which holds the deleteButton with a ConfirmButton in another Panel. And afterwards delete or show the original article row. I use the code i found on the wiki site : http://cwiki.apache.org/WICKET/getting-user-confirmation.html but my ajax update won't send me any html markup which would replace the panel. so my first question is, has anyone ever done this ? especially replacing a panel IN a DataView! thank you very much for your help ! - 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: adding the wicket project for debugging etc
Jeroen , mvn eclipse:eclipse -DdownloadSources=true See http://wicket.apache.org/quickstart.html for full instructions. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 10 February 2010 17:44, Jeroen Dijkmeijer jer...@dijkmeijer.com wrote: Yeah seen it done it been there. But that doesn't give me the wicket source, which I can debug, or modify. On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote: Do you know [1]? It is very easy to develop using that approach. Regards, Ernesto [1]-http://wicket.apache.org/quickstart.html On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer jer...@dijkmeijer.comwrote: Hi, I think this is more of a maven question, so its also posted at the maven user list. I'm trying to understand wicket a bit more, and I would like it to add it as source tree to my project, but for for some reason I cant make it happen. I have myproject-web, myproject-domain and myproject-parent. The latter specifying the former 2 as modules. I'm running myproject-web in tomcat which is configured in eclipse wtp. Myproject-web holds a reference to wicket as a dependency and I can see the myproject-domain project. Now I would like to add wicket with the proper release tag as a source tree to the project, so I can set debug breakpoints, add log stmts, take short cuts, break code fix it. All to get a better understanding what's happening under the hood. Wicket in itself has many subprojects which i don't need all in the source tree (but I guess it would not be a disaster if they were). So I checked out the wicket source from svn to some directory (The wicket project has a parent pom in the root, and all the other projects are its siblings) Imported that directory into eclipse, and added the sub-project wicket as a module to myproject-parent, but that does not work for me. Also eclipse does not recognize the added wicket source tree, when opening the declaration it goes straight to the Wicket-Object.class and shows the attached source code instead of the code from the newly added source tree. I tried a few other things but that didnot show the source at best (often I could not even get tomcat start up) I'm pretty sure its al very simple but somehow i cant get it to work. regards, Jeroen. - 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: adding the wicket project for debugging etc
... or checkout from SVN [1] if you want to modify Wicket sources beyond what the debugger allows. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://wicket.apache.org/building-from-svn.html On 10 February 2010 17:53, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Jeroen , mvn eclipse:eclipse -DdownloadSources=true See http://wicket.apache.org/quickstart.html for full instructions. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 10 February 2010 17:44, Jeroen Dijkmeijer jer...@dijkmeijer.com wrote: Yeah seen it done it been there. But that doesn't give me the wicket source, which I can debug, or modify. On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote: Do you know [1]? It is very easy to develop using that approach. Regards, Ernesto [1]-http://wicket.apache.org/quickstart.html On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer jer...@dijkmeijer.comwrote: Hi, I think this is more of a maven question, so its also posted at the maven user list. I'm trying to understand wicket a bit more, and I would like it to add it as source tree to my project, but for for some reason I cant make it happen. I have myproject-web, myproject-domain and myproject-parent. The latter specifying the former 2 as modules. I'm running myproject-web in tomcat which is configured in eclipse wtp. Myproject-web holds a reference to wicket as a dependency and I can see the myproject-domain project. Now I would like to add wicket with the proper release tag as a source tree to the project, so I can set debug breakpoints, add log stmts, take short cuts, break code fix it. All to get a better understanding what's happening under the hood. Wicket in itself has many subprojects which i don't need all in the source tree (but I guess it would not be a disaster if they were). So I checked out the wicket source from svn to some directory (The wicket project has a parent pom in the root, and all the other projects are its siblings) Imported that directory into eclipse, and added the sub-project wicket as a module to myproject-parent, but that does not work for me. Also eclipse does not recognize the added wicket source tree, when opening the declaration it goes straight to the Wicket-Object.class and shows the attached source code instead of the code from the newly added source tree. I tried a few other things but that didnot show the source at best (often I could not even get tomcat start up) I'm pretty sure its al very simple but somehow i cant get it to work. regards, Jeroen. - 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: Wicket Layout
Ernesto, The link to ODLabs' WiQuery layout demo (from our last London Wicket Event) showing WiQuery layout was mentioned on another thread [1] so I didn't repeat it here. Also note a subsequent post there stating the fact that you need to change the POM to point at 1.0 (not 1.0=m2) of WiQuery which might save you a bit of head-scratching. I think all this is for the general good and provides more options for Wicket developers (as long as all this stuff stays well out of the core!). On the other hand, if you like the way WiQuery does things, of course we can advance that further too, in a WiQuery Plugins project we have been talking about introducing for exactly this sort of thing. I know that Lionel has been in touch with you and I am I look forward to having a chat on Skype soon, thanks for sending me your details. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://old.nabble.com/RIA-solution-based-on-wicket-to27399876.html#a27399876 On 9 February 2010 05:18, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Lionel, I didn't know this existed:-( I look into the examples on http://www.wiquery.org/wiquery-examples-1.0/ before deciding to implement it myself on http://code.google.com/p/wijqgrid/source/browse/#svn/trunk/wijqgrid/src/main/java/com/jquery/layout Best, Ernesto On Tue, Feb 9, 2010 at 2:16 AM, Lionel Armanet lionel.arma...@gmail.comwrote: Hello, You can find an example of a jQuery layout plugin (this one: http://layout.jquery-dev.net/) in the wiQuery project. If you go visit wiQuery's google code (http://code.google.com/p/wiquery), you'd find under our svn (in /svn/examples/wiquery-presentation-examples) a taskboard application with a border layout plugin. Hope this helps, kinabalu wrote: might look at some of the integrations with jquery or yui. I believe both of those frameworks have something similar, and I'd guess the respective wicket projects working on integration have them, or could be added. i don't know enough about dojo though, sorry On Feb 7, 2010, at 10:09 PM, Josh Kamau wrote: Andrew ; How about the splitPanel ? and the accordion? On Mon, Feb 8, 2010 at 9:01 AM, Andrew Lombardi and...@mysticcoders.comwrote: it's definitely an involved layout ... but nothing here looks out of the question. tabbedpanel's for Inbox | Contacts the tree from wicket-extensions for the folder viewer the datatable from wicket-extensions for the lsit of messages there are modal windows, all available so yes, wicket should be able to support this. not sure about the dojo integration On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote: Hi guys; I think wicket is the best java web framework out there. However , i really would like be to able to create a layout like this : http://demos.dojotoolkit.org/demos/mail/ Does the current dojo integration support this. Is it possible to create such a layout with vanilla wicket? regards. Josh To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. -- View this message in context: http://old.nabble.com/Wicket-Layout-tp27495561p27509045.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
Re: How reRender a component from parent page?
Rangel, The is a common problem people encounter while they get their head aroung Wicket models. In your Header class, the label's data is only ever calculated once, on construction of the Header and is therefore is fixed. Try something like: final Label itens = new Label(itens, new PropertyModel(WicketSession.get(),cart.amount)); (I have retained your spelling of itens but I assume this should be items). If you want to format the resulting string (as per your apparent intention in your QuickStart), use a converter, probably best in your case by overriding the your label's getConverter method. The rest of your code looks OK. Does that make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 9 February 2010 14:50, Rangel Preis rangel...@gmail.com wrote: I make a quick start project (maven) to show my problem, if someone have time... The problem are in HomePage.java in the onClick... this don't reRender my componente in the header. Thanks. 2010/2/9 Rangel Preis rangel...@gmail.com: I try this again using only setOutputMarkupId without modelChanged and onModelChange, and don't work. I just setOutputMarkupId on my component and in the ajaxEvent i put: target.addComponent(getPage().get(header:counter)); header is a panel and counter is a Label in this panel. Thanks All. 2010/2/8 Rangel Preis rangel...@gmail.com: Thanks, Don but this don't work the value don't change. And I call setOutputMarkupId when i build it. and call it again later... Thanks All. 2010/2/8 Don Ferguson d...@rixty.com: I think setOutputMarkupId() should have been called earlier, in the MyTemplate constructor when the Header was constructed. Ajax processing needs the markup id to find the component you're changing, so setting it in onModelChanged() is too late. Also, I don't think you need the call to modelChanged() or to override onModelChanged. Changing the model object and adding the component to the target should be sufficient. -Don On Feb 8, 2010, at 2:16 AM, Rangel Preis wrote: My template HTML html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; head title wicket:id=title/title meta wicket:id=description name=description content=/ meta wicket:id=keywords name=keywords content=/ meta wicket:id=version name=version content=/ /head body a href=#irconteudo style=display: none;/a div wicket:id=header class=header/div !-- conteudo -- div id=conteudo table class=layout tr td wicket:id=col_esq class=col_esq/ td a name=irconteudo style=display: none;/a div wicket:id=feedback id=feedback/ wicket:child/ /td td class=col_dir /td /tr /table /div div wicket:id=footer class=footer/div /body /html Header.html wicket:panel div class=right div wicket:id=header_client class=client/div /div //Value that i want to change div class=conter a wicket:id=conterspan wicket:id=itens//a /div div class=left a wicket:id=header_home_linkdiv class=logo//a /div div wicket:id=header_search class=search/div /wicket:panel Thanks. 2010/2/5 Riyad Kalla rka...@gmail.com: What do the tasty HTML bits look like? (wicket:ids and what not) On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis rangel...@gmail.com wrote: How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this: |---| | HEADER | |---| | MENU | CONTENT | | | | | | | | | | |---|---| | FOOTER | |---| public class MyTemplate{ public MyTemplate() { super(); this.add(CSSPackageResource.getHeaderContribution(...); this.add(AbstractTemplatePage.FEEDBACK); this.addOrReplace(new Header()); this.add(new Menu()); this.add(new Footer()); . public class MyContetPage extends MyTemplate { public MyContetPage(final PageParameters _parameters) { add(new AjaxFallbackLinkVoid(rem) { �...@override public void
Re: RIA solution based on wicket
Ninio, At a quick glance, these also work fine for me, but you're probably safest to use the links I gave in my post above (the project is hosted at Google Code, use the SVN there). You may need to change any WiQuery dependencies to refer version 1.0 in your POMs as they wrote the original sample for 1.0-m2. Of course, if you do find issues, please go ahead and raise them on the correct issues page [1] so someone can take a look, but give a bit of detail to help the developer replicate your issue. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/wiquery/issues/list On 2 February 2010 10:54, nino martinez wael nino.martinez.w...@gmail.com wrote: Cemal I expirience alot of bugs running the examples, from here http://www.wiquery.org/wiquery-examples-1.0/ permgen error :/ 2010/2/1 Cemal Bayramoglu jweekend_for...@cabouge.com Josh, Did you run the demos available at the WiQuery site [1]? odlabs' Agile Task Lists demo [2] uses some layout mechanism if I remember correctly. If you have concrete ideas on how to extend the way WiQuery (and jQuery) supports this, we are very open to suggestions. We are also discussing setting up a WiQuery plugins project where ideas like this can evolve/incubate and be considered for inclusion in the core once they are evaluated. Interestingly, some people complain that UI presentation should be done in a declarative way (eg in XUL like languages) and not in a procedural way, so they may consider specifying layout in Java code (rather than in Wicket's native XHTML CSS way) a step in a strange direction. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://wiquery.googlecode.com [2] http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples/ On 1 February 2010 05:28, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to get your opinions and also share some of my views. I have been test-driving wicket for a couple of weeks now and i found it quite impressive. However , i would like to say that IMHO wicket is more suitable for creating websites as opposed to RIA applications. I would like to make applications that look and feel like desktop applications but running on a browser, i have a solid GWT background and i used to make this kind of applications but alot of work is involved. Should we not have a ria framework based on wicket? It could just be some nice CSS based theme or an intergration with something like extJs or something like this. WiQuery is a great step in this direction but it lacks components for making the main application layout. In the meantime, i will be trying out Vaadin. Regards. - 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: RIA solution based on wicket
Josh, Did you run the demos available at the WiQuery site [1]? odlabs' Agile Task Lists demo [2] uses some layout mechanism if I remember correctly. If you have concrete ideas on how to extend the way WiQuery (and jQuery) supports this, we are very open to suggestions. We are also discussing setting up a WiQuery plugins project where ideas like this can evolve/incubate and be considered for inclusion in the core once they are evaluated. Interestingly, some people complain that UI presentation should be done in a declarative way (eg in XUL like languages) and not in a procedural way, so they may consider specifying layout in Java code (rather than in Wicket's native XHTML CSS way) a step in a strange direction. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://wiquery.googlecode.com [2] http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples/ On 1 February 2010 05:28, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to get your opinions and also share some of my views. I have been test-driving wicket for a couple of weeks now and i found it quite impressive. However , i would like to say that IMHO wicket is more suitable for creating websites as opposed to RIA applications. I would like to make applications that look and feel like desktop applications but running on a browser, i have a solid GWT background and i used to make this kind of applications but alot of work is involved. Should we not have a ria framework based on wicket? It could just be some nice CSS based theme or an intergration with something like extJs or something like this. WiQuery is a great step in this direction but it lacks components for making the main application layout. In the meantime, i will be trying out Vaadin. Regards. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Authentication and bookmarkable pages
Kirill, You should probably be not authorising component instantiation (Page is a Component) instead, in your IAuthorizationStrategy#isInstantiationAuthorized implementation. Whether render is permitted is checked later in the lifecycle of a component, as you say. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com 2010/1/13 kirillkh kiril...@gmail.com: Hi all, I'm using wicket 1.4.5 with annotations-based authorization. I've discovered what seems like a security problem in the authorization mechanism. Namely, when certain bookmarkable page shouldn't be rendered according to the policy, it is still constructed, and only then Wicket discovers that it shouldn't be rendered. Is this a known problem? Why doesn't Wicket enforce authorization restrictions in Page's constructor? Thanks, -Kirill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A problem with ListView in a StatelessForm
Kirill, You may get some useful ideas at http://wicketinaction.com/tag/listeditor/ . Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com 2010/1/13 kirillkh kiril...@gmail.com: Hi Per, I've seen this mentioned in the javadocs, but it can't possibly help, as the ListView.reuseItems variable is only used inside ListView.onPopulate(), which, as I pointed out, is called too late. Indeed, setting reuseItems on doesn't help. Thanks, -Kirill On Wed, Jan 13, 2010 at 8:49 AM, Per Newgro per.new...@gmx.ch wrote: Without going deeper to your problem. A common mistake is that people forgot to call setReuseItems on the listview. This is required with repeaters in form. See javadoc for details. Cheers Per - 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: [whishlist] JS libraries
Ernesto, Sounds good - just drop us a line, ideally with a Skype id, a timezone and any thoughts/experience you have on WiQuery, via our Contact Us page and one of us should be in touch towards the end of the week or early next week. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com 2010/1/10 Ernesto Reinaldo Barreiro reier...@gmail.com: Hi Cemal, Nice to know there is already some implementation in place. Yes I would like to help even if it is only by testing what you have and providing some feed-back, although I expect to contribute a bit more than that;-). I'll contact you in private. Best, Ernesto On Sat, Jan 9, 2010 at 1:52 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Ernesto, jqGrid is indeed a handy component to be able to pull out of the toolbox and seems to be evolving nicely. In fact we have been integrating/using it with Wicket as part of our work on WiQuery [1], mainly for use on our own products/RD but possibly for client projects later, once we're sure jqGrid is production ready and well maintained, which so far seems to be the case. We're not yet ready to make this public, due to our other priorities, but if you'd like to get involved, drop me a line and we can have a chat. I expect we're not too far now from having something quite robust, and we could potentially make our existing demo pages public at some point, without too much effort, for people to get a feel for what can be done with jqGrid-as-a-Wicket/WiQuery component. Richard has been heavily involved in this integration, but he's also on other projects at the moment. However, I know he wants to expose some of the more compelling 3.6 features to Wicket (again, via WiQuery), like the new column selection and reordering etc, and there's a good chance that API may already be working and pretty well tested by Monday, especially if the weather brings London to a standstill this weekend. Knowing that projects like WiQuery exist and the access from Wicket it facilitates to such useful jQuery components (without writing any or much JavaScript), that can be relatively easily integrated, in a properly thought-out, well-defined and consistent way is also good ammunition for those of you on the thread re Wicket Adoption Rates aiming to convince your managers that Wicket is the right choice. We've found Wicket to be a very good choice on projects we and our clients have been lucky enough to use it on. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/wiquery/ 2010/1/8 Ernesto Reinaldo Barreiro reier...@gmail.com: If there is interest I can try to find some time and contribute an integration with http://www.trirand.com/blog/jqgrid/jqgrid.html http://www.trirand.com/blog/jqgrid/jqgrid.htmlErnesto On Fri, Jan 8, 2010 at 7:30 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi This is a whishlist for js that should be integrated with wicket but arent.. So please go ahead and whish, I just might do an integration if it's something I need aswell :) regards Nino - 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: [whishlist] JS libraries
Ernesto, jqGrid is indeed a handy component to be able to pull out of the toolbox and seems to be evolving nicely. In fact we have been integrating/using it with Wicket as part of our work on WiQuery [1], mainly for use on our own products/RD but possibly for client projects later, once we're sure jqGrid is production ready and well maintained, which so far seems to be the case. We're not yet ready to make this public, due to our other priorities, but if you'd like to get involved, drop me a line and we can have a chat. I expect we're not too far now from having something quite robust, and we could potentially make our existing demo pages public at some point, without too much effort, for people to get a feel for what can be done with jqGrid-as-a-Wicket/WiQuery component. Richard has been heavily involved in this integration, but he's also on other projects at the moment. However, I know he wants to expose some of the more compelling 3.6 features to Wicket (again, via WiQuery), like the new column selection and reordering etc, and there's a good chance that API may already be working and pretty well tested by Monday, especially if the weather brings London to a standstill this weekend. Knowing that projects like WiQuery exist and the access from Wicket it facilitates to such useful jQuery components (without writing any or much JavaScript), that can be relatively easily integrated, in a properly thought-out, well-defined and consistent way is also good ammunition for those of you on the thread re Wicket Adoption Rates aiming to convince your managers that Wicket is the right choice. We've found Wicket to be a very good choice on projects we and our clients have been lucky enough to use it on. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://code.google.com/p/wiquery/ 2010/1/8 Ernesto Reinaldo Barreiro reier...@gmail.com: If there is interest I can try to find some time and contribute an integration with http://www.trirand.com/blog/jqgrid/jqgrid.html http://www.trirand.com/blog/jqgrid/jqgrid.htmlErnesto On Fri, Jan 8, 2010 at 7:30 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi This is a whishlist for js that should be integrated with wicket but arent.. So please go ahead and whish, I just might do an integration if it's something I need aswell :) regards Nino - 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
Wicket Training - Winter Course Schedule
Below are dates for scheduled, public Wicket courses [1] this winter in London: Jan11-12(Mon-Tue) Jan16-17(Sat-Sun) Feb1-2(Mon-Tue) Feb13-14(Sat-Sun) Feb15-16(Mon-Tue) Other public dates may be possible on request subject to instructor availability. We have run this course (JW703) over 30 times in various countries and for students from all over the world. If you would like to attend our Jan11-12 course, subscribers to this list can use voucher WU_JAN1112 on our booking page for an extra10% discount. We will update this thread with dates for courses in Amsterdam soon. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.com/dev/JW703 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org