Re: bigdecimal validation
Well, that helps, but it's not quite obvious that that's where you should go to look for it. At least it isn't to me. On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: from the javadoc of FormComponent * p * If this component is required and that fails, the error key that is used is the Required; if * the type conversion fails, it will use the key IConverter if the conversion failed in a * converter, or ConversionError if type was explicitly specified via {...@link #setType(Class)} or a * {...@link IPropertyReflectionAwareModel} was used. Notice that both IConverter and * 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 * class is used. :) -igor On Fri, Sep 17, 2010 at 5:42 PM, 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bigdecimal validation
im all ears... -igor On Fri, Sep 17, 2010 at 11:48 PM, James Carman ja...@carmanconsulting.com wrote: Well, that helps, but it's not quite obvious that that's where you should go to look for it. At least it isn't to me. On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: from the javadoc of FormComponent * p * If this component is required and that fails, the error key that is used is the Required; if * the type conversion fails, it will use the key IConverter if the conversion failed in a * converter, or ConversionError if type was explicitly specified via {...@link #setType(Class)} or a * {...@link IPropertyReflectionAwareModel} was used. Notice that both IConverter and * 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 * class is used. :) -igor On Fri, Sep 17, 2010 at 5:42 PM, 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 - 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
Re: bigdecimal validation
A good wiki page would be very helpful with some concrete examples like this BigDecimal case for instance. Again, I don't mind helping out. I just wanted to make sure I wasn't duplicating something that was already out there. And, your ears aren't *that* big. :) On Sat, Sep 18, 2010 at 3:47 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: im all ears... -igor On Fri, Sep 17, 2010 at 11:48 PM, James Carman ja...@carmanconsulting.com wrote: Well, that helps, but it's not quite obvious that that's where you should go to look for it. At least it isn't to me. On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: from the javadoc of FormComponent * p * If this component is required and that fails, the error key that is used is the Required; if * the type conversion fails, it will use the key IConverter if the conversion failed in a * converter, or ConversionError if type was explicitly specified via {...@link #setType(Class)} or a * {...@link IPropertyReflectionAwareModel} was used. Notice that both IConverter and * 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 * class is used. :) -igor On Fri, Sep 17, 2010 at 5:42 PM, 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 - 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: mouse over table cells and dialog popup with ajaxlinks
Jason, I do a similar thing for one of my applications. I have a table and when the user hovers the mouse over some button on each row then I show a dialog with more details about the row. What I do is having a hidden div next to the table and make it appear, its contents updated via AJAX, with the help of a jquery plugin: I use plugin shown in [1] in combination with grid shown at [2]. For other use cases, when dialog contents are very heavy I use a ModalWindow triggered by an onclick. Maybe I could strip my code of the business logic and post it somewhere so that you could use or adapt it. Regards, Ernesto 1-http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.ToolTipPage 2-http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.TablePage On Sat, Sep 18, 2010 at 2:13 AM, Jason Novotny jason.novo...@gmail.com wrote: Hi, I have a fairly complex use-case scenario: I want a dialog to popup when a hover event occurs within a table cell. The dialog will provide a couple of links (ideally AjaxLink) that should trigger a wicket ajax event. I can imagine maybe creating the dialogs all on the client so there is no need to hit the server when the mouse hovers over the table cell (seems that ajax would be no good in any case since the latency would be high when hovering over potentially many cells within the table anyhow). But then the issue is how to create the AjaxLink in the javascript that constructs the dialog on the client? Any ideas are greatly appreciated! Thanks, Jason - 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: Prevent guest session from expiring
Are there any methods I can override in Wicket WebSession to make it never expire? On Tue, Sep 14, 2010 at 10:25 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You can set session timeout per-session: ((ServletWebRequest) request).getHttpServletRequest().getSession().setMaxInactiveInterval(seconds); ** Martin 2010/9/15 Jeremy Thomerson jer...@wickettraining.com: On Tue, Sep 14, 2010 at 10:51 PM, Alec Swan alecs...@gmail.com wrote: Isn't there a way to instruct Wicket not to create a session if the user is not logged in? a session will always be created. it won't be bound (and therefore stored) if you have all stateless pages - which isn't an easy task -- 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
Re: Prevent guest session from expiring
Wicket Session is stored in HttpSession. See http://download.oracle.com/docs/cd/E17802_01/products/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/http/HttpSession.html#setMaxInactiveInterval%28int%29 On Sat, Sep 18, 2010 at 5:30 PM, Alec Swan alecs...@gmail.com wrote: Are there any methods I can override in Wicket WebSession to make it never expire? On Tue, Sep 14, 2010 at 10:25 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You can set session timeout per-session: ((ServletWebRequest) request).getHttpServletRequest().getSession().setMaxInactiveInterval(seconds); ** Martin 2010/9/15 Jeremy Thomerson jer...@wickettraining.com: On Tue, Sep 14, 2010 at 10:51 PM, Alec Swan alecs...@gmail.com wrote: Isn't there a way to instruct Wicket not to create a session if the user is not logged in? a session will always be created. it won't be bound (and therefore stored) if you have all stateless pages - which isn't an easy task -- 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
Message resources in database?
How would you implement runtime translation and/or addition of messages by users? Couldn't find any RDBMS-based IStringResourceLoaders to look at or extend :-/ Manos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mouse over table cells and dialog popup with ajaxlinks
Thanks! My real concern isn't so much the creation of the dialog/tooltip but how do I create a wicket appropriate link in that dialog/tooltip in order to edit the item that is contained in the table cell? Thanks again, Jason On 9/18/10 8:08 AM, Ernesto Reinaldo Barreiro wrote: Jason, I do a similar thing for one of my applications. I have a table and when the user hovers the mouse over some button on each row then I show a dialog with more details about the row. What I do is having a hidden div next to the table and make it appear, its contents updated via AJAX, with the help of a jquery plugin: I use plugin shown in [1] in combination with grid shown at [2]. For other use cases, when dialog contents are very heavy I use a ModalWindow triggered by an onclick. Maybe I could strip my code of the business logic and post it somewhere so that you could use or adapt it. Regards, Ernesto 1-http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.ToolTipPage 2-http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.TablePage On Sat, Sep 18, 2010 at 2:13 AM, Jason Novotnyjason.novo...@gmail.com wrote: Hi, I have a fairly complex use-case scenario: I want a dialog to popup when a hover event occurs within a table cell. The dialog will provide a couple of links (ideally AjaxLink) that should trigger a wicket ajax event. I can imagine maybe creating the dialogs all on the client so there is no need to hit the server when the mouse hovers over the table cell (seems that ajax would be no good in any case since the latency would be high when hovering over potentially many cells within the table anyhow). But then the issue is how to create the AjaxLink in the javascript that constructs the dialog on the client? Any ideas are greatly appreciated! Thanks, Jason - 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: Message resources in database?
To the best of my knowledge there are none. You'll have to write one yourself. Typically these are so tied to the application schema/domain that it's not worth writing one others could use. Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Sep 18, 2010 12:09 PM, Emmanouil Batsis (Manos) ma...@abiss.gr wrote: How would you implement runtime translation and/or addition of messages by users? Couldn't find any RDBMS-based IStringResourceLoaders to look at or extend :-/ Manos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
when to addStringResourceLoader()
Hi all, I've a custom stringResourceLoader. I've added it to the chain in the Application.init and it logs during the execution of unit tests with WicketTester. But when the app is deployed to tomcat and I log the list of stringResourceLoaders from a component it's not there. Should I be adding it at a different point? tia, arturo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JavaOne in San Francisco
Hey folks, The Basement Coders will be at JavaOne and doing a podcast right from the Mason street tent Tuesday at 10am! We would love to meet some Wicket peeps throughout the week! Craig. -- Craig Tataryn site: http://www.basementcoders.com/ podcast:http://feeds.feedburner.com/TheBasementCoders irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin twitter: craiger On Tue, Sep 14, 2010 at 8:03 AM, shetc sh...@bellsouth.net wrote: JavaOne starts on Sunday. Will any other Wicket fans be attending? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaOne-in-San-Francisco-tp1876070p2538954.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 -- Craig Tataryn site: http://www.basementcoders.com/ podcast:http://feeds.feedburner.com/TheBasementCoders irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin twitter: craiger - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org