Re: New committer - Sebastien Briquet
Congrats' Sebastien, looking forward to meeting you in an event in France ;) __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr | hopwork http://bit.ly/hopworkCG On Sat, Feb 14, 2015 at 1:06 PM, Andrea Del Bene an.delb...@gmail.com wrote: Welcome on board Sebastien! On 14 Feb 2015 11:20, Maxim Solodovnik solomax...@gmail.com wrote: Congratulations Sebastien! WBR, Maxim (from mobile, sorry for the typos) On Feb 14, 2015 4:11 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Congratulations! On Fri, Feb 13, 2015 at 11:38 PM, Francois Meillet francois.meil...@gmail.com wrote: Welcome Sébastien Thanks for your commitment ! François Le 13 févr. 2015 à 22:55, Tobias Soloschenko tobiassolosche...@googlemail.com a écrit : Congratulations!!! kind regards Tobias Am 13.02.2015 um 22:05 schrieb Zala Pierre GOUPIL goupilpie...@gmail.com: \o/ Bienvenue Sébastien ! Bravo et continue comme ça ! On Fri, Feb 13, 2015 at 10:02 PM, Martin Grigorov mgrigo...@apache.org wrote: The Project Management Committee (PMC) for Apache Wicket has asked Sebastien Briquet to become a committer and we are pleased to announce that he has accepted. Sebastien has been involved with Wicket for several years now by developing one of the most successful integrations with JavaScript libraries, namely Wicket jQuery UI https://github.com/sebfz1/wicket-jquery-ui, reporting bugs, contributing fixes and participating in discussions. Being a committer will enable him to help us even easier in the future. Please welcome Sebastien Briquet to our team! Bienvenue Sebastien! -- Si le sang ne coule pas assez chaud dans tes veines, je le répandrai sur le sable pour qu'il bouille au soleil. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro
Re: Get return value of ajax event in Wicket 6.9.1
AFAIK the browser won't issue a new server call (or will not process the response) once the onunload event has been called so I doubt this will work (using the web inspector of your browser will allow you to check whether or not the call has been done) I second what Martin said, you need to add the JavaScript code to call the server. Le 11 nov. 2013 15:29, Martin Grigorov mgrigo...@apache.org a écrit : respond() is the callback method that Wicket will notify. But you need to trigger an Ajax call first. This is done with the Wicket Ajax API: Wicket.Ajax.get(...). Just try with the line I've added in your JS code On Mon, Nov 11, 2013 at 4:04 PM, Daniela L danigal...@gmail.com wrote: I thought adding respond was the ajax call to the server, am I wrong? I didn't work much with ajax, i am sorry 2013/11/11 Martin Grigorov mgrigo...@apache.org Did you do what I suggested you ? On Mon, Nov 11, 2013 at 3:49 PM, Daniela L danigal...@gmail.com wrote: Hi, I have tryed to change to AbstractDefaultAjaxBehavior like I described below, but respond is never called. What am I doing wrong? Hi, as far as I have understood this can only be achieved, if I subclass AbstractDefaultAjaxBehavior like this? public class PageExitWarningBehavior extends AbstractDefaultAjaxBehavior { @Override protected void respond(AjaxRequestTarget target) { AppointmentSession.get().releaseSavedBlockedFreeCalendarEvent(); } Hi, You need to make an Ajax call to the server. On Mon, Nov 11, 2013 at 2:10 PM, Daniela L danigal...@gmail.com danigal...@gmail.comdanigal...@gmail.com danigal...@gmail.com wrote: Hi, this is my first question, so i hope I get everything right. I am trying to catch the event of the user closing the browser window in wicket. I followed this example: http://stackoverflow.com/questions/16527463/call-java-component-from-javascript-and-retreive-value and I managed to get the example working so the message is displayed, but I have no idea how to get the event triggered by the javascript function in wicket. I need this because when the user closes the browser window I want to update some data in my database. Here is what I have tryed: RequiredTextFieldString myTextField = new RequiredTextFieldString(myTextField); myTextField.setOutputMarkupPlaceholderTag(true); myTextField.add(new PageExitWarningBehavior(){ @Override public void onEvent(Component component, IEvent? event) { //this isn't ever called MySession.get().releaseBlockedDataFromDatabase(); } }); public class PageExitWarningBehavior extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component, response); response.render(new OnDomReadyHeaderItem(window.onbeforeunload = function (e) { + Wicket.Ajax.get({u: '+getCallbackUrl()+', async: false}); + var message = 'Your confirmation message goes here.', + e = e || window.event; + if (e) { + e.returnValue = message; + } + return message; + };)); } } What am I missing? Thank you very much in advance
Re: Get return value of ajax event in Wicket 6.9.1
I was on my phone and didn't read that well the provided snippet, it should work fine then ;) __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Mon, Nov 11, 2013 at 4:05 PM, Martin Grigorov mgrigo...@apache.orgwrote: There is a difference between onunload and onbeforeunload. You can cancel the latter. You can make Ajax call only in onbeforeunload. And it has to be synchronous. On Mon, Nov 11, 2013 at 4:55 PM, Cedric Gatay gata...@gmail.com wrote: AFAIK the browser won't issue a new server call (or will not process the response) once the onunload event has been called so I doubt this will work (using the web inspector of your browser will allow you to check whether or not the call has been done) I second what Martin said, you need to add the JavaScript code to call the server. Le 11 nov. 2013 15:29, Martin Grigorov mgrigo...@apache.org a écrit : respond() is the callback method that Wicket will notify. But you need to trigger an Ajax call first. This is done with the Wicket Ajax API: Wicket.Ajax.get(...). Just try with the line I've added in your JS code On Mon, Nov 11, 2013 at 4:04 PM, Daniela L danigal...@gmail.com wrote: I thought adding respond was the ajax call to the server, am I wrong? I didn't work much with ajax, i am sorry 2013/11/11 Martin Grigorov mgrigo...@apache.org Did you do what I suggested you ? On Mon, Nov 11, 2013 at 3:49 PM, Daniela L danigal...@gmail.com wrote: Hi, I have tryed to change to AbstractDefaultAjaxBehavior like I described below, but respond is never called. What am I doing wrong? Hi, as far as I have understood this can only be achieved, if I subclass AbstractDefaultAjaxBehavior like this? public class PageExitWarningBehavior extends AbstractDefaultAjaxBehavior { @Override protected void respond(AjaxRequestTarget target) { AppointmentSession.get().releaseSavedBlockedFreeCalendarEvent(); } Hi, You need to make an Ajax call to the server. On Mon, Nov 11, 2013 at 2:10 PM, Daniela L danigal...@gmail.com danigal...@gmail.comdanigal...@gmail.com danigal...@gmail.com wrote: Hi, this is my first question, so i hope I get everything right. I am trying to catch the event of the user closing the browser window in wicket. I followed this example: http://stackoverflow.com/questions/16527463/call-java-component-from-javascript-and-retreive-value and I managed to get the example working so the message is displayed, but I have no idea how to get the event triggered by the javascript function in wicket. I need this because when the user closes the browser window I want to update some data in my database. Here is what I have tryed: RequiredTextFieldString myTextField = new RequiredTextFieldString(myTextField); myTextField.setOutputMarkupPlaceholderTag(true); myTextField.add(new PageExitWarningBehavior(){ @Override public void onEvent(Component component, IEvent? event) { //this isn't ever called MySession.get().releaseBlockedDataFromDatabase(); } }); public class PageExitWarningBehavior extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component, response); response.render(new OnDomReadyHeaderItem(window.onbeforeunload = function (e) { + Wicket.Ajax.get({u: '+getCallbackUrl()+', async: false}); + var message = 'Your confirmation message goes here.', + e = e || window.event; + if (e) { + e.returnValue = message; + } + return message; + };)); } } What am I missing? Thank you very much in advance
Re: Wicket merchandise
+1 Andrea Del Bene +1 Martin Grigorov __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Thu, Sep 19, 2013 at 9:45 AM, Raul ralva...@netwie.com wrote: +1 Martin Grigorov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-merchandise-tp4661378p4661390.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: Wicket Content Parameters
Hi there, I finally open sourced the tool and added a few options as my team requested internally : failing build if key count mismatch (overridable via a property) and outputting empty property values to the console while building. You can find it here : https://github.com/code-troopers/merge-properties-maven-plugin @Paul, feel free to fork, improve, and so on... Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Wed, Jul 31, 2013 at 7:39 PM, Paul Bors p...@bors.ws wrote: I won't mind taking yours and adding my tests to it with an option to fail the build. I like failing the build to grab people's attention and also generating an e-mail report so we all know what's missing :) ~ Thank you, Paul Bors -Original Message- From: Cedric Gatay [mailto:gata...@gmail.com] Sent: Wednesday, July 31, 2013 1:36 PM To: users@wicket.apache.org Subject: Re: Wicket Content Parameters We have a custom maven plugin aggregating multiple properties file into one per language. It checks and display (does not fail the build) if the number of keys is different. I will try to see if it can be open sourced soon if someone is interested in it. __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Wed, Jul 31, 2013 at 5:59 PM, Paul Bors p...@bors.ws wrote: We have unit tests that load the master lang pack (the development one) and compare it key by key to all of the other language packs making sure that: * It has all the necessary keys * Parameters in values are not missing * All values are translated (with different exceptions per lang pack) Etc. It would be nice if such a tool existed as part of the core wicket app or extensions but it really depends on how your app maintains them. For example, we choose to maintain a single lang pack in a huge file in XML format to make it easier to pass it on to the translators instead of using many smaller files per page or panel. ~ Thank you, Paul Bors -Original Message- From: Tom Norton [mailto:tomwnorton.mailing.li...@gmail.com] Sent: Wednesday, July 31, 2013 11:45 AM To: users@wicket.apache.org Subject: Wicket Content Parameters We just received our content back from our translators. They translated everything correctly for our velocity templates. However, when they translated our wicket content, they also translated the parameters (one translator even replaced the curly braces with parentheses). Does anyone know it it's possible to use the ${...} syntax for content parameters instead of {...}? I ask because most translators already know to steer clear of the ${...} syntax, since it's the de facto syntax for parameters embedded into strings. Thanks, Tom - 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: Wicketsuff REST module.
Hi there, nice work Andrea, I will try to have a look at the code to see if it looks like what we've done at SRMvision. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Mon, Aug 12, 2013 at 5:09 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hey Andrea, So you actually implemented https://cwiki.apache.org/confluence/display/WICKET/Ideas+for+Wicket+7.0#IdeasforWicket7.0-ImplementJAXRSontopofWicketIResource ! :-) You don't use JAX-RS APIs (annotation classes) but this is OK, as far the same functionality can be achieved. Great job! If someone wants to review the code before it is merged to WicketStuff Code projects: https://github.com/wicketstuff/core/pull/247/files On Mon, Aug 12, 2013 at 5:13 PM, Andrea Del Bene an.delb...@gmail.com wrote: Hi everybody, I've implemented a Wicket extension to create REST API/applications with our favorite web framework. I'm ready to push it into the Wicketstuff repo, but first I would be happy if someone of you could have a look to what I've done and share her/his experience with REST development. I hope to be able to release it with the next version of Wicketstuff. You can start to get an idea of my work reading the readme.md here: https://github.com/bitstorm/**core/blob/**f22c8783dbcf8fb219112f8813d9f8** 8996b6fa00/jdk-1.6-parent/**wicketstuff-restannotations-**parent/ readme.md https://github.com/bitstorm/core/blob/f22c8783dbcf8fb219112f8813d9f88996b6fa00/jdk-1.6-parent/wicketstuff-restannotations-parent/readme.md You can also checkout my personal repo which contains the same code: https://github.com/bitstorm/**Wicket-rest-annotations https://github.com/bitstorm/Wicket-rest-annotations Thanks to any of you and let me know if this code can help you! Bye! Andrea.
Re: Documentation for RequestLogger
I guess he's talking of its current log4j setup which logs to stdout __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Wed, Aug 7, 2013 at 10:11 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Wed, Aug 7, 2013 at 10:07 AM, Jens Jahnke jan0...@gmx.net wrote: Hi, On Tue, 6 Aug 2013 15:11:34 -0400 Paul Bors p...@bors.ws wrote: PB Isn't Log4J shipped with the quick-start? PB PB Create yourself a quick-start and analyze it: PB http://wicket.apache.org/start/quickstart.html PB PB PS: You can also check the initialization related topics as well as PB your first stop for Wicket's doc via the Wicket Free Guide at: PB http://wicket.apache.org/learn/books/freeguide.html thanks for the information, the freeguide rocks. But actually I found the solution in wicket in action. :) Nonetheless it only logs to stdout but I guess thats a log4j question. What do you mean that it logs to stdout ? There is no usage of System.out/err in Wicket. The RequestLogger uses SLF4J. Your question is really a log4j question (if you use slf4j-log4j as backend). Regards, Jens -- 07. Ernting 2013, 10:04 Homepage : http://www.jan0sch.de In order to live free and happily, you must sacrifice boredom. It is not always an easy sacrifice.
Re: gmap2, wicket 6.9 and ajax refresh
Looking at the code on my phone is not that easy, i had a wrong souvenir ;) __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Thu, Aug 1, 2013 at 9:04 AM, Martin Grigorov mgrigo...@apache.orgwrote: https://issues.apache.org/jira/browse/WICKET-5296 On Thu, Aug 1, 2013 at 8:52 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java?source=ccdoesn't cut the 'on' prefix. https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxEventBehavior.java?source=cc#L68- does. I'll update OnEventHeaderItem to do it too. Explanation: 'onclick' should be used for inline attributes, e.g. div onclick=... ... 'click' should be used for document.addEventListener/attachEvent On Wed, Jul 31, 2013 at 10:17 PM, Cedric Gatay gata...@gmail.com wrote: If I remember well click or on click should work, the on prefix is automatically removed if it is present. Regards, Le 31 juil. 2013 20:47, Gabriel Landon glan...@piti.pf a écrit : Martin in the javadoc there's an example saying onclick. So should it be click? /** * Creates a {@link OnEventHeaderItem} for the given parameters. * * @param target *The target of the event handler, for example 'window' or 'document'. * @param event *The event itself, for example '*onclick*'. * @param javaScript *The script to execute on the event. * * @return A newly created {@link OnEventHeaderItem}. */ public static OnEventHeaderItem forScript(String target, String event, CharSequence javaScript) { return new OnEventHeaderItem(target, event, javaScript); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/gmap2-wicket-6-9-and-ajax-refresh-tp4660564p4660586.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: Wicket Content Parameters
We have a custom maven plugin aggregating multiple properties file into one per language. It checks and display (does not fail the build) if the number of keys is different. I will try to see if it can be open sourced soon if someone is interested in it. __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Wed, Jul 31, 2013 at 5:59 PM, Paul Bors p...@bors.ws wrote: We have unit tests that load the master lang pack (the development one) and compare it key by key to all of the other language packs making sure that: * It has all the necessary keys * Parameters in values are not missing * All values are translated (with different exceptions per lang pack) Etc. It would be nice if such a tool existed as part of the core wicket app or extensions but it really depends on how your app maintains them. For example, we choose to maintain a single lang pack in a huge file in XML format to make it easier to pass it on to the translators instead of using many smaller files per page or panel. ~ Thank you, Paul Bors -Original Message- From: Tom Norton [mailto:tomwnorton.mailing.li...@gmail.com] Sent: Wednesday, July 31, 2013 11:45 AM To: users@wicket.apache.org Subject: Wicket Content Parameters We just received our content back from our translators. They translated everything correctly for our velocity templates. However, when they translated our wicket content, they also translated the parameters (one translator even replaced the curly braces with parentheses). Does anyone know it it's possible to use the ${...} syntax for content parameters instead of {...}? I ask because most translators already know to steer clear of the ${...} syntax, since it's the de facto syntax for parameters embedded into strings. Thanks, Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: gmap2, wicket 6.9 and ajax refresh
If I remember well click or on click should work, the on prefix is automatically removed if it is present. Regards, Le 31 juil. 2013 20:47, Gabriel Landon glan...@piti.pf a écrit : Martin in the javadoc there's an example saying onclick. So should it be click? /** * Creates a {@link OnEventHeaderItem} for the given parameters. * * @param target *The target of the event handler, for example 'window' or 'document'. * @param event *The event itself, for example '*onclick*'. * @param javaScript *The script to execute on the event. * * @return A newly created {@link OnEventHeaderItem}. */ public static OnEventHeaderItem forScript(String target, String event, CharSequence javaScript) { return new OnEventHeaderItem(target, event, javaScript); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/gmap2-wicket-6-9-and-ajax-refresh-tp4660564p4660586.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: Reading placeholder parameters in mounted resources
Hi, I think this is because you're mixing path parameters with query string one. It could be a bug, could you provide a quickstart with this to help us qualify and fix it if it is a bug. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Tue, Jul 23, 2013 at 7:31 PM, Francois Meillet francois.meil...@gmail.com wrote: Try this pattern /storage/${id}/#{shape} Optional parameters are denoted by using a # instead of $ François Meillet Formation Wicket - Développement Wicket Le 23 juil. 2013 à 19:14, Andrew Schetinin ascheti...@gmail.com a écrit : Hi, I have a shared resource mounted to a URL pattern /storage/${id} So that the URL look like /storage/12345 and with optional additional parameters /storage/12345?shape=xyz It works fine when I create a new URL - the id parameter is correctly encoded in the URL. But when I process the actual request, I only receive the optional parameters like shape, while id parameter is not present in RequestParameters. Therefore I need to parse the URL string and extract the ID parameters manually. The question is - why Wicket does not decode the parameters back? Is it by design, or is it only a problem with shared resources? Regards, Andrew -- Andrew Schetinin
Re: Table with a lot of ajax links
Hi,you can have a look at what Martin Grigorov is doing onhttps://issues.apache.org/jira/browse/WICKET-5267. It's exactly what you are talking about.Regards, On 17 juillet 2013 at 09:17:52, DaveS (david.sku...@gmail.com) wrote: Hi guys, I am making table of some items. Table component is default wicket DataTable. Table page size is 100 items per page and data have several pagings. So that is easy. Now I would like to add 5 ajax links related to row item. That is also no problem and easy and everythings works fine. But when I exploring page rendered HTML source, I see a lot of ajax event bindings. (exactly 500 = 100 * 5) Wicket.Ajax.ajax({"u":"./links?2-1.IBehaviorListener.0-c1~link","e":"click","c":"id4"});; Wicket.Ajax.ajax({"u":"./links?2-1.IBehaviorListener.0-c2~link","e":"click","c":"id5"});; I understand how it works, but I would like to ask if you know some solution how reduce large amounts of events binding, because I am affraid about page loading performance with this huge count of bindings. Thanks for your advice. Dave -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Table-with-a-lot-of-ajax-links-tp4660303.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 __Cedric Gatay (@Cedric_Gatay)http://code-troopers.com|http://www.bloggure.info|http://cedric.gatay.fr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket based e-mail UI
Hi,I don't know such Wicket based application, however it could be a great project if you're willing to start it and OSS it, don't hesitate to tell the world on this mailing list to get some help.Regards, On 17 juillet 2013 at 20:06:09, Piratenvisier (hansheinrichbr...@yahoo.de) wrote: What do you expect ? Only sending emails to an address. Managing incoming emails and outgoing emails. At the moment I am using cocoon for outgoing emails sending always a copy to my mail account. I tried this already as a test in wicket because I wanted to leave cocoon because development slowed down. But it seams there is a revival of this project so i will have first a closer look at cocoon 3 before I switch to wicket. Another possibility is using James. But I preferred to stay near to the normal Mail clients like Outlook or iceweasel. Am 16.07.2013 14:57, schrieb Ernesto Reinaldo Barreiro: Hi, Does anyone has developed an open source, easy to adapt, e-mail "client" UI? Of course, based on wicket. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __Cedric Gatay (@Cedric_Gatay)http://code-troopers.com|http://www.bloggure.info|http://cedric.gatay.fr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FeedbackPanel customization
Hi,the fix for the issue you face with Css classes has been integrated into Wicket 7.0 (https://issues.apache.org/jira/browse/WICKET-4852).Regards, On 17 juillet 2013 at 22:54:37, Daniel Watrous (dwmaill...@gmail.com) wrote: Hi, I'm working on a modification of the FeedbackPanel to work better with my theme. I would like to prevent the class for the actual message from being appended to. Right now MessageListView is a private final class and the populateItem adds an AttributeModifier to both the label and the listItem. I know I can override getCSSClass, but that still sets it for both the label and listItem. I can't extend just MessageListView since it's private and final. Even if I could subclass that, the FeedbackPanel constructor is called before my subclass of FeedbackPanel, so that it has already used the original MessageListView. Can you think of a clean way to eliminate the AttributeListener on listItem? Daniel __Cedric Gatay (@Cedric_Gatay)http://code-troopers.com|http://www.bloggure.info|http://cedric.gatay.fr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to hide an optional Image component?
Hi, a workaround could be returning an empty 1px*1px image from your IResource. This way browsers won't complain with invalid content as you encounter. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Tue, Jul 16, 2013 at 10:53 PM, Stefan Renz s.r...@efonds.com wrote: Hi guys, I'm desparate for your help: I just can't figure out how to suppress an Image in case its IResource yields nothing. Here's some context: A customer may have a custom logo image (in fact, there's some logic involved in determining which exact logo to use, but that's beside the point) located in some database. Using Wicket's Image component, I figured I would need to implement the logo resolution algorithm and loading from the DB with either subclassing DynamicImageResource, or subclassing AbstractResourceStream (which is more approriate?). Works fine if a logo is there -- the image shows up. However, if there _is_ no logo, the browser (firefox in my case) renders a question mark instead of showing nothing. Both returning null or an empty byte array doesn't matter. I usually suppress a component with a behavior, or within the #onConfigure()-Method, but in the Image's case, where I only have an IResource or ResourceReference, I just don't have a hint on how to determine if the image data is there or not (apart from asking the database _again_ for the data or presence thereof). Any ideas? What method/class have I missed? Where should I look? Thanks for your help. Cheers Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Upgrade to wicket 6 giving blank page in IE 9
I think this is something browser related, IE while deciding which rendering technique to adopt can do strange queries. It could be interesting if you dumped what happens on network using IE or another "working" browser with your old non working code.Regards, __Cedric Gatay (@Cedric_Gatay)http://code-troopers.com|http://www.bloggure.info|http://cedric.gatay.fr On 15 juillet 2013 at 20:35:40, prasad.bhandagi (prasad.bhand...@marsh.com) wrote: Using the DOCTYPE of HTML 4.01 STRICT worked ! Note 1: Previously used DOCTYPE was XHTML 1.0 STRICT Note 2: I did not have to do any changes to make the HTML pages compliant to 4.01. When I validated there were many issues with compliance to HTML 4.01 STRICT. It still worked by merely changing the DOCTYPE. While the magic worked, it would interesting to know the trick behind the magic. Not exactly sure how Wicket uses the DOCTYPE while rendering and the sporadic nature of the issue baffled me. Paul Bors wrote Let me guess, the image that always shows up is a static resource w/o any wicket id? I remember I had a similar problem and if you look inside your webapp server logs you would see the errors/warnings from Wicket. If I remember right I fixed it by sticking to strict HTML 4.01. Try adding the following to all of your pages: lt;!DOCTYPE HTML PUBLIC quot;-//W3C//DTD HTML 4.01//ENquot; quot;http://www.w3.org/TR/html4/strict.dtdquot;gt; See if that does the magic for you. ~ Thank you, Paul Bors -Original Message- From: prasad.bhandagi [mailto: prasad.bhandagi@ ] Sent: Thursday, July 11, 2013 4:44 PM To: users@.apache Subject: Re: Upgrade to wicket 6 giving blank page in IE 9 Am upgrading from Wicket 1.3. However I am upgrading it step by step for each major version. The problem did not occur when upgraded to 1.4 and 1.5. Only after upgrading to 6.9 the problem started occuring. Am using Weblogic 10.3, JDK6 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-to-wicket-6-giving-blank- page-in-IE-9-tp4660213p4660215.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-to-wicket-6-giving-blank-page-in-IE-9-tp4660213p4660276.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: Upgrade to wicket 6 giving blank page in IE 9
Hi, what is the server environment you're facing this issue with? Did you change something else than Wicket version ? From which one are you coming from ? Thanks for the answers ! __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Thu, Jul 11, 2013 at 10:07 PM, prasad.bhandagi prasad.bhand...@marsh.com wrote: Hi, Am currently upgrading my project to wicket 6.9 Am facing a sporadic issue where sometimes page comes up blank (Only the image placed at top of page comes fine). This error comes on any random screen (not specific to a certain screen). I tried to narrow down the scenario when this error occurs: - This error occurs in IE 9, does *not* occur in Firefox 10 - This error occurs with RenderStrategy as REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER, but does *not*occur with RenderStrategy as ONE_PASS_RENDER - After the blank page comes up, if I hit the Refresh or Back button, the same page comes up fine Changing the RenderStrategy is not an option currently. It appears IE is causing the connection to close sporadically. Not quite sure what is going on. Any help will be much appreciated. Thanks, Prasad -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-to-wicket-6-giving-blank-page-in-IE-9-tp4660213.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: [ANNOUNCE] Apache Wicket 6.9.0 released
The JQuery bump can cause errors in custom JavaScript relying on an older version (deprecated methods removed). Maybe we should add to the release page a special note in the Upgrading from earlier version part ? __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Tue, Jul 2, 2013 at 8:25 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, Jul 2, 2013 at 2:54 AM, Joachim Schrod jsch...@acm.org wrote: Martijn Dashorst wrote: The Apache Wicket PMC is proud to announce Apache Wicket 6.9.0! Thanks a lot for providing these updates. :-) :-) New and noteworthy -- Switch between jQuery 1.x and 2.x depending on the user agent. For IE 6/7/8 jQuery ver. 1.x will be used, for any other browser - ver. 2.x. To use this resource reference do in your application's init method: protected void init() { getJavaScriptLibrarySettings() .setJQueryReference(DynamicJQueryResourceReference.INSTANCE); } Is this mandatory? What happens if I don't set that jQuery reference, resp. don't include that code? Will IE8 users getting served jQuery 2.x? For me, that's important, we need to support IE8. By default Wicket uses jQuery 1.10.0, so IE is supported. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jsch...@acm.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IInitializer order
Hi, You can write your own IStringResourceLoader providing your set of translations and register it in front of the list through the IInitializer mechanism. Regards, Le 24 juin 2013 07:12, Marios Skounakis msc...@gmail.com a écrit : Hi all, I am developing a framework library with wicket components and utility classes that is intended to be reused in all wicket apps developed by our company. I wish to override some of the standard wicket messages (e.g. wicket-extensions datatable.no-records-found=No Records Found). I have created an Initializer class and a Initializer.properties file with the overriden messages. However wicket seems to first load the wicket-extensions property file and then my own, perhaps due to their alphabetic order. Is there a way to specify the order in which Initilizers run? If not, is there another way to override some of the wicket messages in a place that can be reused across multiple applications (i.e. not in WicketApplication.properties or a component/page properties file). Thanks Marios
Re: Introduction and some questions about Wicket
Hi, I am a Wicket user since v1.3. The main application I develop using it is SRMvision (free trial available at demo.srmvision.com, slow because of the virtual machine that sits under). We have leveraged the component nature of Wicket to apply good practices and it has proven being a very good choice until now. Anyway, if you want to build rich ui components you will need to write them with Javascript and bind it with your Wicket components, this is fairly easy and you will be able to unit test it on the Java side and javascript side. For the design part, the size of our structure did not allowed us to experiment working with dedicated people. However, I guess designers understanding html will be able to produce great gui ;-) Regarding mobile devices, as long as it's html, it is easy, bootstrap, fundation, and others made writing responsive Web applications a breeze. Regards __ Cedric Gatay (@Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr Hi guys, My name is Mike Pence. I think that I have dipped into this list a time or two in the past, but I am here, this time, with serious intent to use Wicket for a very big project -- big both in terms of how many users it will have, and big in its impact. I have been doing Rails for the last 7 or 8 years (spoke at Ruby and Rails conferences about rich web apps), after coming from a Delphi and Java background (and Microsoft stuff, but I leave that out). So, Rails is great but does not give me the modularity and component re-use in the UI that I loved in Delphi. I am making some assumptions about Wicket, and would appreciate your feedback on these assumptions: 1. That wicket lets you model rich and highly interactive web apps that can feel like desktop apps, but in the browser. (Examples?) 2. That building complex UI widgets -- grids, trees, custom components like timelines or graphs or calendars -- is comparatively painless. 3. That you can largely leave the markup and styling to the people who like doing that kind of thing (why they would, I don't get…) I would love to do Scala with Wicket but I can't raise the bar that high, right now. If there was a JRuby version of wicket…that would be awesome. JVM runtime is a big win for this, because the project definitely will have many, many users. Has anyone done any work with wicket focused on mobile devices? Appreciate your thoughts. Mike Pence - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketTester CDI and WicketApplication
Hi David, you can have a look at the base CDI enabled test class we're using at code-troopers in the following gist : https://gist.github.com/CedricGatay/5694293 Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Sat, Jun 1, 2013 at 6:15 PM, David Beer david.m.b...@gmail.com wrote: Hi Cedric Thanks for the reply I will take a look at Arquillian and see how I can use it. Any guides are helpful especially when used with wicket. Thanks David On 01/06/13 16:20, Cedric Gatay wrote: Hi, I usually use Arquillian to deploy a CDI context in my tests which require injection to work (often it happens for pages tests). When testing individual components it is easy to manually inject references (either via package visibility or via PowerMock's Whitebox for instance). Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_**Gatayhttp://twitter.com/Cedric_Gatay ) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Sat, Jun 1, 2013 at 5:13 PM, David Beer david.m.b...@gmail.com wrote: Hi All I am having difficulty finding information on how I can create a CDI context for use in my tests. Is there some kind of way of creating a mock cdi environment for testing. Currently my tests fail trying to retrieve the CDI Bean Manager as this is normally controlled by the Web Application Container. Do I need to create a mock Web Application class which simulates a dummy Bean Manager? Is there any guides specific to Wicket? Thanks David --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketTester CDI and WicketApplication
Hi, I usually use Arquillian to deploy a CDI context in my tests which require injection to work (often it happens for pages tests). When testing individual components it is easy to manually inject references (either via package visibility or via PowerMock's Whitebox for instance). Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Sat, Jun 1, 2013 at 5:13 PM, David Beer david.m.b...@gmail.com wrote: Hi All I am having difficulty finding information on how I can create a CDI context for use in my tests. Is there some kind of way of creating a mock cdi environment for testing. Currently my tests fail trying to retrieve the CDI Bean Manager as this is normally controlled by the Web Application Container. Do I need to create a mock Web Application class which simulates a dummy Bean Manager? Is there any guides specific to Wicket? Thanks David --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Server and client side validation
Hi, I've not yet tried to plug it inside a modal window. But I see no reason for it to fail. Le 7 mai 2013 20:15, Gabriel Landon glan...@piti.pf a écrit : Hi Cedric, Yes I've seen what you have done. Did you manage to make it works with forms in ModalWindow? Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658631.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: Server and client side validation
Hi Gabriel, the spin-off from Martin's blog post is available on Maven Central (via Sonatype OSS services). It depends on JSR303 though. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Tue, May 7, 2013 at 2:37 AM, Gabriel Landon glan...@piti.pf wrote: Martin, I've create a ParsleyRangeValidator and a ParsleyLengthValidator very easily thanks to your code. I've also create ParsleyForm that initializes Parsley in the RenderHead and a ParsleyAjaxButton that validates Parsley on submit. I only have one problem with forms in a ModalWindow. As the form tag is replace with a div tag, Parsley doesn't seems to work in this case. Do you have an idea on how to fix that? Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658602.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: Server and client side validation
Hi, Your blog post helped me write my first version of the integration between JSR303 (bean-validation) and client side validation using parsley.js. You can find the current work on this Github repository: https://github.com/code-troopers/wicket-jsr303-parsley Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Wed, Apr 24, 2013 at 7:23 PM, Cedric Gatay gata...@gmail.com wrote: Thanks Martin, I was just wondering how I could do that. Nice library and nice integration with Wicket. Regards Le 24 avr. 2013 18:07, Martin Grigorov mgrigo...@apache.org a écrit : Hi, I just posted a new article at http://wicketinaction.com/2013/04/server-and-client-side-validation/about integrating Wicket with client side validation library. Enjoy! -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Server and client side validation
Thanks Martin, I was just wondering how I could do that. Nice library and nice integration with Wicket. Regards Le 24 avr. 2013 18:07, Martin Grigorov mgrigo...@apache.org a écrit : Hi, I just posted a new article at http://wicketinaction.com/2013/04/server-and-client-side-validation/ about integrating Wicket with client side validation library. Enjoy! -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Wicket with Scala Book or Deep/Complete tutorial
Hi, I would add that if you want to understand Scala, you should take the Coursera course from Martin Odersky : https://www.coursera.org/course/progfun Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Sun, Apr 21, 2013 at 3:37 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, There is nothing specific to use Wicket with Scala. There are few classes at https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/scala-extensions-parent which are rather experiments than something really useful. There is also a sample application. It could be a bit out of date but as you can see there is nothing specific to write your app in Scala. If you have any questions don't hesitate to ask. On Sun, Apr 21, 2013 at 4:32 PM, Bruno Moura brunormo...@gmail.com wrote: Someone know a good resources to learning wicket + scala together? -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Ajax updating panel inside ModalWindow
Could you provide a quick start reproducing this issue? Le 8 avr. 2013 23:20, jarnis jarnis.bertel...@exedio.com a écrit : I have tried the ModalWindow both inside and outside an enclosing form, with no difference. I also tried to put updating behavior in the onClick method of an AjaxLink (just updating a counter and adding the div showing the value to the AjaxRequestTarget) and it still does not update the modal window content. If the modal window is closed and reopened, the updated value of the counter is shown correctly. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-updating-panel-inside-ModalWindow-tp4657829p4657831.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: Wicket free guide updated.
Great job Andrea, I am actually reading it, I'll try to provide my feedback when I'm done with it. Regards __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Tue, Apr 9, 2013 at 6:51 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi Paul, I asked the same question for v1. Here's the answer: no, at the moment there is no source for documentation. The main document is a LibreOffice odt file. I didn't decide yet how to make it available... As for contributions, they are welcome! Either send an email or use the google code issues. Regards, Bertrand On 09/04/2013 12:33 PM, Paul Szulc wrote: Hi, is ths under open source? Are you looking for contributors? On Mon, Apr 8, 2013 at 11:42 AM, Andrea Del Bene an.delb...@gmail.com wrote: Hi, I bother you just to tell that I released an updated version of the guide with some typo corrections and two small additions. http://code.google.com/p/wicket-guide/http://code.google.com/p/**wicket-guide/ http://code.**google.com/p/wicket-guide/http://code.google.com/p/wicket-guide/ Bye! :) --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Free Wicket guide now available!
Thanks for your work Andrea ! Regards, __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Thu, Mar 21, 2013 at 5:10 PM, Andrea Del Bene an.delb...@gmail.comwrote: Thank you Sebastien. I did my best to avoid this kinds of errors but I guess that no guide or book is complete without an errata corrige :D. Ouch! Thanks a million for this, I am sure it will be very good, relevant and useful for a lot a people! I am sure I will read it. Please let us know when the websocket part is covered... You have a some typo in the chapter 19 title (Test Driven Develomnet) Respect for this huge job!! ;) Sebastien. On Thu, Mar 21, 2013 at 4:51 PM, Andrea Del Bene an.delb...@gmail.com wrote: Dear Wicketers, I'm really excited to announce that, after almost two years of work (in may spare time), I've finished and published my free guide to Wicket! You can find it at https://code.google.com/p/wicket-guide/https://code.google.com/p/**wicket-guide/ https://code.**google.com/p/wicket-guide/https://code.google.com/p/wicket-guide/ . I've chosen to use Google Project because many of us have a gmail account that can be used to sign in and leave a feedback (for example opening an issue). The document is structured as a step-by-step tutorial and is released under Creative Commons license (CC BY-NC-SA 3.0). Unfortunately I didn't cover yet the topic of WebSocket, but I think that writing a chapter on it will be my very next step :). Hope you find it helpful! PS: feel free to contact me via mail. Any feedback is REALLY appreciated! --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket, Heroku and scaling
Hi, I recently needed to deploy a quickstart to Heroku. By reading this question, I made a quick implementation of IDataStore using Redis, you can find the blog post regarding this at the following URL : http://www.bloggure.info/work/wicket-6-cdi-on-heroku.html Hope it'll help. Regards, Cedric __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Fri, Jan 11, 2013 at 4:13 PM, Jens Jahnke jan0...@gmx.net wrote: On Fri, 11 Jan 2013 09:59:35 -0500 William Speirs wspe...@apache.org wrote: WS @Jens Jahnke if you do create an ISessionStore for redis, please WS post back if you're willing to share. I could see the use in that! WS WS Thanks... Of course I'll do that. But it will take some time because I can only work on it in my spare time which is very limited in the next weeks. Regards, Jens -- 11. Hartung 2013, 16:12 Homepage : http://www.jan0sch.de Whom the gods wish to destroy they first call promising.
Re: get rid of LazyLoadException
I think you need to carefully understand how the Hibernate Session works. This exception usually occurs when you try to access an object that has not been loaded from your database in your components but the session is already closed. Regards, __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Sat, Feb 23, 2013 at 5:48 PM, Evgheni Emelianov e.emelia...@gmx.netwrote: Hi there, i am looking for a got way to get rid of my LazyLoadException in my Project, I'm using javaee 6 with hibernate 4.1.1 and wicketstuff-javaee-inject and don't know which is the best way to solve it? some good links or examples would help. Evgheni - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Eclipse or IntelliJ
At SRMvision we use exclusively IntelliJ for developping. Its excellent Maven support, smart completion and robustness made us forget eclipse very quickly. Le 19 févr. 2013 22:18, Stephen Walsh step...@connectwithawalsh.com a écrit : Who uses what and why? I've only ever used Eclipse, but I discovered IntelliJ earlier this week and it's so different. Just wondering pros and cons on each. Thanks! ___ Stephen Walsh | http://connectwithawalsh.com
Re: Component to String
Hi, I recently needed to do this, I come with a simple solution (quickly deprecated by our main application architecture however). I blogged about it here http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html I hope it will help you, I don't know if it works well with Wicket 6 (written for 1.5). Regards, __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery slow...@gatessolutions.comwrote: I found several threads on the user list about converting a Component into a String. There are at least 2 very valid use cases where doing this makes sense: 1. You are trying to create an html email to send out to your customers. Building that content out with wicket is a great way to do it. We are able to harness Wicket's awesome i18n capabilities to generate the content. Otherwise, we resort to ResourceBundles or having to introduce some other templating library. 2. Many Javascript APIs/JQuery Plugins (i.e. growl notifications, popovers, etc) want the html content passed in. Again, ideally the component is written in wicket. The threads I've seen have asked for potential ways to do this, but I'm wondering if this is a utility that should be included within Wicket itself. What do you think? If you think this type of utility does not belong in the framework and should be implemented by the users instead, can you provide a wicket 6 way of accomplishing this? Thanks. -- IMPORTANT: This e-mail (including any attachments) is intended for the use of the individual or entity to which it is addressed and may contain information that is classified, private, or confidential. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. Thank you.
Re: Component to String
Yes it is the real issue when displaying HTML in emails. However, using Wicket's builtin templating engine is great to generate these HTML mails ;) On Thu, Jan 24, 2013 at 7:24 PM, Nick Pratt nbpr...@gmail.com wrote: The real issue here is that most Email clients render HTML really badly, or dont render it at all (or their implementations of such rendering is just wrong). Even modern email clients, like the latest Outlook or GMail dont render significant portions of HTML/CSS correctly, and you will likely have to resort to table layout to get anything even remotely like what you're after. N On Thu, Jan 24, 2013 at 1:04 PM, Francois Meillet francois.meil...@gmail.com wrote: Hi Cedric, Great ! It works on 6.5 François Le 24 janv. 2013 à 17:39, Cedric Gatay gata...@gmail.com a écrit : Hi, I recently needed to do this, I come with a simple solution (quickly deprecated by our main application architecture however). I blogged about it here http://www.bloggure.info/work/java-work/use-wicket-templating-system-to-generate-html.html I hope it will help you, I don't know if it works well with Wicket 6 (written for 1.5). Regards, __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Thu, Jan 24, 2013 at 5:25 PM, Steve Lowery slow...@gatessolutions.comwrote: I found several threads on the user list about converting a Component into a String. There are at least 2 very valid use cases where doing this makes sense: 1. You are trying to create an html email to send out to your customers. Building that content out with wicket is a great way to do it. We are able to harness Wicket's awesome i18n capabilities to generate the content. Otherwise, we resort to ResourceBundles or having to introduce some other templating library. 2. Many Javascript APIs/JQuery Plugins (i.e. growl notifications, popovers, etc) want the html content passed in. Again, ideally the component is written in wicket. The threads I've seen have asked for potential ways to do this, but I'm wondering if this is a utility that should be included within Wicket itself. What do you think? If you think this type of utility does not belong in the framework and should be implemented by the users instead, can you provide a wicket 6 way of accomplishing this? Thanks. -- IMPORTANT: This e-mail (including any attachments) is intended for the use of the individual or entity to which it is addressed and may contain information that is classified, private, or confidential. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. Thank you. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] Introducing Wicked Charts
Hi Tom, you did a great work, I'm looking forward this project to use it in SRMvision platform (we're actually using Google Visualization, but it has a lot of drawbacks). Regards, Cedric __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Sat, Jan 19, 2013 at 11:56 AM, Sebastien seb...@gmail.com wrote: Hi Tom, This seams to be really excellent! I did a such integration some times ago (first was on wicket 1.4), but it' was incomplete: I only integrated chart type I needed. So congratulation for this hard job and I think I will probably use Wicked Chart it in a few weeks/month :) However, just by looking quickly at your sample, I saw you are setting values with a setData() method. Wouldn't be possible to have/use a DataProvider? Thanks best regards, Sebastien. On Sat, Jan 19, 2013 at 11:12 AM, Francois Meillet francois.meil...@gmail.com wrote: Hi Tom, Great work ! Many Thanks ! François Le 18 janv. 2013 à 23:44, Matthias Gasser wic...@matthiasgasser.com a écrit : Hi Tom, Great work! Thanks. Best regards, Matthias On 18.01.2013, at 23:30, tom.hombergs tom.hombe...@gmail.com wrote: Hi Wicket users, i would like to introduce to you the Wicked Charts library, consisting of a java wrapper for the Highcharts javascript charting library and a component for Wicket (and for JSF as a by-product). Wicked Charts supports most of the features Highcharts supports, including many different chart types, drilldown, ajax interaction between charts and Wicket and more. If you ever need fancy charts in your Wicket application, have a look at the project site at http://wicked-charts.org or the showcase at http://wicked-charts.appspot.com. We'd love to hear your feedback. Best Regards, Tom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-Introducing-Wicked-Charts-tp4655519.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: Invitation to use Google Talk
Sorry I think I made a bad click yesterday evening when trying to compose the devoxx topic. C ya Le 8 janv. 2013 17:25, Google Talk talk-nore...@google.com a écrit : --- You've been invited by Cedric Gatay to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-f0f2595993-c7ed127545-Wz2ZkqxOQ31jTcb2t2vg9ldeQBA To sign up for a Google account and get started with Google Talk, you can visit: http://mail.google.com/mail/a-f0f2595993-c7ed127545-Wz2ZkqxOQ31jTcb2t2vg9ldeQBA?pc=en-rf---a Learn more at: http://www.google.com/intl/en/landing/accounts/ Thanks, The Google Team
Re: Strange behavior of TextField and AjaxFormComponentUpdatingBehavior
For the placeholder thing you can use the standard HTML5 way with a polyfill such as the following (with Modernizr it will only be loaded if the client need it) : https://github.com/ginader/HTML5-placeholder-polyfill __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Wed, Nov 28, 2012 at 10:32 AM, Sébastien Gautrin sebastien.gaut...@gmail.com wrote: Actually I'd recommend not puting the placeholder in the input itself, assuming you don't have to support old browsers that most other now have stopped supporting a few years back. Depending on the browser of your users, you can: - use the html5 placeholder attribute (best way to do that, but you won't support ie 10) - have the placeholder appear in the input while it's not; one nice technique is to use a label/span that you will move above the input with css (using position attribute and z-index); then you have a little javascript that will simply change the opacity of that placeholder depending on conditions: with an initial opacity of 1, you can put it at 0.5 when the user focus the field, and at 0 once he entered anything. Advantages of that compared to putting the placeholder in the input is you don't have to worry about the placeholder value being actually submitted by the client, and that you won't have any bloat to have the placeholder back if the user empty the field. Note that for the second option, you need opacity, and thus either IE8+ or have the proprietary ms syntax for that (IE5-7 using filter: alpha(opacity=50);, IE8 using -ms-filter:progid:** DXImageTransform.Microsoft.**Alpha(Opacity=50);) Sven Meier wrote: oncklick ... or onclick ? I'd recommend a javascript only solution without round-trip to the server. http://stackoverflow.com/**questions/2851794/clear-text-** onclick-textfieldhttp://stackoverflow.com/questions/2851794/clear-text-onclick-textfield Sven On 11/27/2012 05:09 PM, Dmitriy Neretin wrote: Hi wicket-users, I have a question about a combination of the TextField and AjaxFormComponentUpdatingBehav**ior. I have a text field with content. Just to indicate what user should enter. For example a day text filed, which already contains following DD. I do it by following: dayField.setModel(Model.of(**DD)); My idea now is to delete this text automatically. For example with oncklick event. What I did is: dayField.add(new AjaxFormComponentUpdatingBehav**ior(oncklick){ onUpdate(){ doSomeStuff } }); So, the problem now is it doesn't work at first time! For example I click in the field, delete the text, insert another text, leave the field. Click in the filed again and only then onUpdate method performs. But it doesn't perform at first time and I don't understand why... Can somebody help me? Regards, Dmitriy --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: After/before creation or serialization
Hi, I don't know if there is a special Wicket thing, but you can use the standard Java way like this : private void writeObject(ObjectOutputStream out) throws IOException { //provide your own logic } private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { //provide your own logic } Regards, __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Sun, Nov 25, 2012 at 1:28 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Hi wickers ! Is there a method on Wicket components that is called before creation/load(f.e. from disk, deserialization) and another method called before destroy/save(to disk, serialization) Would it be methods onInitialize() and onDetach() of org.apache.wicket.Component ? Thanks ! Oscar Besga Arcauz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] Apache Wicket 6.3.0 released
Congrats ! __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Tue, Nov 20, 2012 at 4:56 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: The Apache Wicket PMC is proud to announce Apache Wicket 6.3.0! This release marks the third minor release of Wicket 6. Starting with Wicket 6 we use semantic versioning for the future development of Wicket, and as such no API breaks are present in this release compared to 6.0.0. New and noteworthy === This release fixes some javascript errors in IE7 and IE8 with Wicket 6. We have upgraded the embedded JQuery library to 1.8.2 (the most recent stable release of JQuery). If you depend on an earlier version of JQuery, you can instruct Wicket to use your older version. See the [Wicket Ajax Guide]( https://cwiki.apache.org/WICKET/wicket-ajax.html#WicketAjax-Configuration) for more information. For the full changelog see the release notes attached to the end of this announcement. Using this release = With Apache Maven update your dependency to (and don't forget to update any other dependencies on Wicket projects to the same version): dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version6.3.0/version /dependency Or download and build the distribution yourself, or use our convenience binary package * Source: http://www.apache.org/dyn/closer.cgi/wicket/6.3.0 * Binary: http://www.apache.org/dyn/closer.cgi/wicket/6.3.0/binaries Upgrading from earlier versions === If you upgrade from 6.0.0, 6.1.0, or 6.2.0 this release is a drop in replacement. If you come from a version prior to 6.0.0, please read our Wicket 6 migration guide found at http://s.apache.org/wicket-6.0-migration Have fun! — The Wicket team Release Notes - Wicket - Version 6.3.0 ** Bug * [WICKET-4623] - UploadProgressBar does not show up if the form submitted by AjaxButton or AjaxLink * [WICKET-4826] - PaletteButton#onComponentTag(ComponentTag) does not call super * [WICKET-4829] - ComponentResolvers created in app init ignore markup's namespace * [WICKET-4836] - Unmount a page does not work if the path starts with / * [WICKET-4837] - SmartLinkMultiLineLabel does not display email addresses or web URLs as hyperlinks * [WICKET-4841] - Return error code 400 when an Ajax request has no base url set in header/request parameters. * [WICKET-4842] - WicketRuntimeException when Tomcat cleans up a session later on * [WICKET-4844] - AbstractResourceReferenceMapper doesn't escape separators in style/variation names * [WICKET-4848] - Reporter of FeedbackMessage should not be set to 'null' on detach * [WICKET-4850] - BaseWicketTester discards cookies with MaxAge = -1 when processing a new request * [WICKET-4851] - IE8, IE7 javascript errors with Wicket 6 * [WICKET-4857] - AutoCompleteTextFields submits Form if a choice is selected via enter-key * [WICKET-4859] - Integer overflow in AbstractToolbar * [WICKET-4864] - 'format' not set in ConversionException * [WICKET-4865] - Page parameters not working with CryptoMapper ** Improvement * [WICKET-4831] - Append the feedback message CSS class instead of overriding it * [WICKET-4835] - Add debug log messages in CompoundRequestMapper#mapRequest * [WICKET-4845] - Make BasicResourceReferenceMapper public so it is easy to extend it * [WICKET-4853] - Change FormComponent#reportRequiredError() from private to protected * [WICKET-4856] - Support SVG extension in SecurePackageResourceGuard * [WICKET-4863] - Customize ValidationError creation by FormComponent * [WICKET-4867] - Detach the object before calculating its size ** Task * [WICKET-4855] - Upgrade JQuery to 1.8.2 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Twitter Bootstrap in Wicket
I guess you're talking about the first conditional comments in the markup of HTML5 Boilerplate ( https://github.com/h5bp/html5-boilerplate/blob/master/index.html). Am I right ? __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Fri, Oct 12, 2012 at 6:31 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Fri, Oct 12, 2012 at 5:14 AM, Bruno Borges bruno.bor...@gmail.com wrote: You have to remove though some of the CSS IE conditionals from Twitter bootstrap. They are still not correctly processed by Wicket. :-( No one else had such complaints so far. Me included. *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Thu, Oct 11, 2012 at 11:08 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible/feasible to 'selectively' use the Twitter bootstrap in a wicket app? Scenario: our app serves many different clients. Some will want the Twitter Bootstrap look and feel but others will be happy to use any number of existing CSS/JS templates that we have created for them over the years. Currently we use a combination of Wicket variations and conditional header injection to provide different look and feel for customers even though they all use the same Wicket page classes. Is it possible to use Twitter Bootstrap in the same way? i.e. conditionally use it when rendering a page for one customer but not using it when rendering that same page class for another customer? It sounds like you already have the system for this built. Bootstrap is just HTML and CSS, so keep doing what you were with the variations and different header contributions. Is there something else that you need? Probably not. I guess because it's purely HTML and CSS then it should fit in nicely with our existing HTML/CSS selection code. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov 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
Re: Close ModalWindow on keypress (ESC)
Hi, I actually use this in my project : /** * Behavior allowing to close the window on esc, requires jQuery * Slighlty modified from http://stackoverflow.com/questions/5042426/wicket-close-modalwindow-on-keypress */ private class CloseOnESCBehavior extends AbstractDefaultAjaxBehavior { @NonNls private static final String PRE_JS = $(document).ready(function() {\n + $(document).bind('keyup', function(evt) {\n + if (evt.keyCode == 27) {\n; @NonNls private static final String POST_JS = \n evt.preventDefault();\n + }\n + });\n + });; /** * {@inheritDoc} */ @Override protected void respond(AjaxRequestTarget target) { close(target); } /** * {@inheritDoc} * * @return always null to hide the indicator (it does not flicker) */ @Override protected String findIndicatorId() { return null; } /** * {@inheritDoc} */ @Override public void renderHead(Component component, IHeaderResponse response) { response.renderJavaScript(new StringBuilder(PRE_JS).append(getCallbackScript()) .append(POST_JS).toString(), closeModalOnEsc); } } You'll need to adapt it if you're not using JQuery in your project. All you have to do is add this behavior on your modal window. Regards, __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Fri, Aug 17, 2012 at 12:05 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi, I need close the ModalWindows of my application when I press ESC on the keyboard. Suggestions? Regards M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino
Re: Migration from wicket 1.4.x
Hello, I've done such a migration from 1.4.x to 1.5.7 in two days for roughly 100k SLOC. Then migration to 6.0 is a breeze... __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Tue, Jul 3, 2012 at 1:18 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Wicket 6 will be released soon (few weeks) but this wont save you the changes you have to do which are required by Wicket 1.5. There are no changes which are required by Wicket 1.5 and then reverted for Wicket 6.0. I'd migrate to 1.5.7 first and then to 6.0.0-beta2. On Tue, Jul 3, 2012 at 1:14 PM, Vit Rozkovec rozkovec...@email.cz wrote: Hi, what is the best approach when migrating from wicket 1.4.x? Wait for stable 6.0 version and then start migration or migrate to 1.5.x version? All my projects now use 1.4.x with Hibernate via Databinder. I want to save myself the effort to do a double migration and would rather wait and stick with 1.4.x until 6.0 comes out, what do you recommend? Thank you. Vit - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov 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
Re: wicket job opportunity, we are hiring
Hi Igor, this is an interesting opportunity, too bad it is time zone limited. I hope you'll find somebody. __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Tue, Jun 5, 2012 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: the company i work for ( 42lines.net ) is growing and we are looking for a few good devs. about our approach: * we are a distributed company with employees based predominantly in the usa, there are 27 of us now * everyone telecommutes either from home or a coworking space of your choice (paid for by the company) * we use a variation of agile methodology (daily scrums, iterations, peer code reviews, etc) tech stack: * wicket * jpa/hibernate/querydsl * cdi/weld * resteasy * jquery / jquery mobile what we want from you: * first and foremost you are smart and you know how to apply those smarts to writing code * you work on PST/EST +- 2 hours * you have a decent internet connection capable of skype (we can help you get one) * you understand (not just know) java and oop * you are comfortable in sql, hibernate, and wicket there is lots more info, including how to apply, available here: https://www.42lines.net/2012/05/29/now-hiring-2-new-java-engineers-and-2-new-qa-engineers/ cheers, -igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org