Re: vps hosting for wicket app
Hi Matej, I'm using slicehost but looking at this it just seems insane. Have you actually used this hosting? Is there a catch somewhere? I'm using it (3 root servers atm) - even for hosting high traffic customers. The bandwidth is amazing and there hasn't been any service problem since I'm on it. I had a hard disk failure once and it has been replaced within 3 hours (with a downtime of 15 minutes). I only have positive responses from other clients hosting there as well. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket bench 1.4
i don't see difference between wicket1.3 and wicket1.4 with wicket bench. I like this plug-in, but it's still incoplete, and it has some little problems with java editor... Luca 2009/10/7 Douglas Ferguson doug...@douglasferguson.us Does wicket bench work with wicket 1.4? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null
Hi Jeremy, Below is the stack trace: Thread [btpool0-0] (Suspended (breakpoint at line 238 in WebResponse)) BufferedWebResponse(WebResponse).redirect(String) line: 238 BufferedWebResponse.close() line: 66 WicketFilter.doGet(HttpServletRequest, HttpServletResponse) line: 372 WicketFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 201 ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse) line: 1065 SecurityFilter.doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) line: 35 SecurityFilter(OncePerRequestFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 75 ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse) line: 1065 ClearUserDetailsFilter.doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) line: 23 ClearUserDetailsFilter(OncePerRequestFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 75 ServletHandler$CachedChain.doFilter(ServletRequest, ServletResponse) line: 1065 ServletHandler.handle(String, HttpServletRequest, HttpServletResponse, int) line: 365 SecurityHandler.handle(String, HttpServletRequest, HttpServletResponse, int) line: 185 SessionHandler.handle(String, HttpServletRequest, HttpServletResponse, int) line: 181 WebAppContext(ContextHandler).handle(String, HttpServletRequest, HttpServletResponse, int) line: 689 WebAppContext.handle(String, HttpServletRequest, HttpServletResponse, int) line: 391 HandlerCollection.handle(String, HttpServletRequest, HttpServletResponse, int) line: 114 Server(HandlerWrapper).handle(String, HttpServletRequest, HttpServletResponse, int) line: 139 Server.handle(HttpConnection) line: 285 HttpConnection.handleRequest() line: 457 HttpConnection$RequestHandler.headerComplete() line: 751 HttpParser.parseNext() line: 500 HttpParser.parseAvailable() line: 209 HttpConnection.handle() line: 357 SelectChannelConnector$ConnectorEndPoint(SelectChannelEndPoint).run() line: 329 BoundedThreadPool$PoolThread.run() line: 475 We use Wicket 1.3.6 Thanks for your help. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson jer...@wickettraining.comwrote: null - should mean NullPointerException do you get the stacktrace to see where it's coming from? Paste into reply -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com wrote: Hi, I did some refactoring in an old Wicket code amd I get the warning message in the subject: 2009-10-06 19:37:34,484 WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5 failed: null I tried to debug, did some breakpointing etc. but could not understand why do I get this. Can someone give me a hint on where to start looking and to understand what's going on? Thanks, Eyal Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null
BTW, the 'null' is the message of the exception. Looking at the exception in the break-point: the exception is: org.mortbay.jetty.EofException thanks. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson jer...@wickettraining.comwrote: null - should mean NullPointerException do you get the stacktrace to see where it's coming from? Paste into reply -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com wrote: Hi, I did some refactoring in an old Wicket code amd I get the warning message in the subject: 2009-10-06 19:37:34,484 WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5 failed: null I tried to debug, did some breakpointing etc. but could not understand why do I get this. Can someone give me a hint on where to start looking and to understand what's going on? Thanks, Eyal Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
AW: How do you achieve persistency
Great piece of software! But how did you manage to replace the web.xml filterclass into: filter-classorg.apache.cayenne.conf.WebApplicationContextFilter/filter-class when Wicket needs its own filter class filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class - Ursprüngliche Mail Von: John Armstrong siber...@siberian.org An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 12:12:11 Uhr Betreff: Re: How do you achieve persistency I use Cayenne (http://cayenne.apache.org/). The GUI tool eliminates any requirement to deal with XML and maps all relationships for you. You can also tweak the XML but its not required or recommended. My workflow is to build my database directly in SQL and then point Cayenne at it and get my persistence layer generated automatically which creates my model and all relationships by following the foreign key constraints(great for legacy projects). When I modify my table structure I tell Cayenne to migrate it and it gives me a list of changes with the option of updating the DB (model wins) or updating the model (DB wins) for each change. Its fantastic for all of the tweaking that goes on in a dev cycle (eg: oops, forget I needed a table that now has to join to this other table.. No problem. Click click done). Insanely great user community and Cayenne has, in my eyes, a very Wicket like dev philosophy that favors convenience and developer productivity over other considerations. Caveat: You can do all of this with Hibernate, I always personally just found Hibernate a bit more complex and 'get in my way' then I needed. Try the quick tutorial they provide and you'll quickly know if its for you or not. John- On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig u...@yahoo.de wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - 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: Ajax-Response xml to browser - DatePicker
Bump On Oct 6, 2009, at 9:20 PM, Douglas Ferguson wrote: Has anybody seen this before? On Oct 6, 2009, at 2:13 AM, Douglas Ferguson wrote: I'm seeing something really strange. I'm using DatePicker and sometimes when I click on it. I get a temporary screen that has the following text: If you see this, it means that both javascript and meta-refresh are not supported by your browser configuration. Please click this link to continue to the original destination. It then redirects to an xml file: Then this page is displayed This XML file does not appear to have any style information associated with it. The document tree is shown below. − ajax-response − header-contribution head xmlns:wicket=http://wicket.apache.org;script type=text/ javascript src=resources/ org.apache.wicket.markup.html.WicketEventReference/wicket- event.js/script script type=text/javascript src=resources/ org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script /head /header-contribution − component id=id5988 div id=id5988!-- MARKUP FOR com.conducive.ui.userPages.monitor.result.MonitorResultsParts $ControlsPart BEGIN -- form id=id5989 method=post action=? wicket:interface=wicket-8:100:controlsPart:form: 2:IFormSubmitListener::div style=display:noneinput type=hidden name=id5989_hf_0 id=id5989_hf_0 //div
Re: wicket bench 1.4
I'm interested in using the selenium features. D/ On Oct 7, 2009, at 2:01 AM, Luca Provenzani wrote: i don't see difference between wicket1.3 and wicket1.4 with wicket bench. I like this plug-in, but it's still incoplete, and it has some little problems with java editor... Luca 2009/10/7 Douglas Ferguson doug...@douglasferguson.us Does wicket bench work with wicket 1.4? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
Why would you replace the Wicket filter ? You can have multiple filters defined in your web.xml , they are chained by your application server. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de Great piece of software! But how did you manage to replace the web.xml filterclass into: filter-classorg.apache.cayenne.conf.WebApplicationContextFilter/filter-class when Wicket needs its own filter class filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class For the persistency question, if you go to filesystem storage and want to have a decent querying system, you can also consider using a JCR content repository : http://en.wikipedia.org/wiki/Content_repository_API_for_Java I believe that most of web applications are manipulating hierarchical data, and for that kind of stuff a Database ORM may not be the most efficient tool. I think Google Storage uses that kind of approach : hirerachical filesystem storage. Of course if you have to do do queries with joins (like in SQL) things will become much more complicated that with a gold old JPA + Hibernate + DBMS
Re: iPhone webapp support?
Lionel Armanet wrote: Hi, Maybe you should take a look at jqTouch (http://www.jqtouch.com/) which is a jQuery plugin dedicated to use rich effects of safari on iPhone. You might want to use wiQuery (http://code.google.com/p/wiquery) ton bind this jQuery plugin with your wicket application. Hope this helps ! :) Thanks. This is more than I had dared to hope for. This will certainly help with my project. Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket bench 1.4
in this case i don't know, because i don't use selenium... ;-) Luca 2009/10/7 Douglas Ferguson doug...@douglasferguson.us I'm interested in using the selenium features. D/ On Oct 7, 2009, at 2:01 AM, Luca Provenzani wrote: i don't see difference between wicket1.3 and wicket1.4 with wicket bench. I like this plug-in, but it's still incoplete, and it has some little problems with java editor... Luca 2009/10/7 Douglas Ferguson doug...@douglasferguson.us Does wicket bench work with wicket 1.4? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax-Response xml to browser - DatePicker
I figured it out. There are two DateTextFields. One is in the org.apache.wicket.datetime.markup.html.form package and the other is in the org.apache.wicket.extensions.markup.html.form package. The datetime version is causing the problem. It is now working using the extensions version. D/ On Oct 7, 2009, at 2:46 AM, Douglas Ferguson wrote: Bump On Oct 6, 2009, at 9:20 PM, Douglas Ferguson wrote: Has anybody seen this before? On Oct 6, 2009, at 2:13 AM, Douglas Ferguson wrote: I'm seeing something really strange. I'm using DatePicker and sometimes when I click on it. I get a temporary screen that has the following text: If you see this, it means that both javascript and meta-refresh are not supported by your browser configuration. Please click this link to continue to the original destination. It then redirects to an xml file: Then this page is displayed This XML file does not appear to have any style information associated with it. The document tree is shown below. − ajax-response − header-contribution head xmlns:wicket=http://wicket.apache.org;script type=text/ javascript src=resources/ org.apache.wicket.markup.html.WicketEventReference/wicket- event.js/script script type=text/javascript src=resources/ org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script /head /header-contribution − component id=id5988 div id=id5988!-- MARKUP FOR com.conducive.ui.userPages.monitor.result.MonitorResultsParts $ControlsPart BEGIN -- form id=id5989 method=post action=? wicket:interface=wicket-8:100:controlsPart:form: 2:IFormSubmitListener::div style=display:noneinput type=hidden name=id5989_hf_0 id=id5989_hf_0 //div
AW: How do you achieve persistency
Cayenne needs his own filter. - Ursprüngliche Mail Von: Olivier Bourgeois olivier.bourgeois@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 7. Oktober 2009, 10:10:00 Uhr Betreff: Re: How do you achieve persistency Why would you replace the Wicket filter ? You can have multiple filters defined in your web.xml , they are chained by your application server. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de Great piece of software! But how did you manage to replace the web.xml filterclass into: filter-classorg.apache.cayenne.conf.WebApplicationContextFilter/filter-class when Wicket needs its own filter class filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class For the persistency question, if you go to filesystem storage and want to have a decent querying system, you can also consider using a JCR content repository : http://en.wikipedia.org/wiki/Content_repository_API_for_Java I believe that most of web applications are manipulating hierarchical data, and for that kind of stuff a Database ORM may not be the most efficient tool. I think Google Storage uses that kind of approach : hirerachical filesystem storage. Of course if you have to do do queries with joins (like in SQL) things will become much more complicated that with a gold old JPA + Hibernate + DBMS - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
Interesting, but how would you provide transactional isolation so you do not experience phantom or dirty reads? 2009/10/6 Igor Vaynberg igor.vaynb...@gmail.com i think all the suggestions you have gotten until now are overcomplicated and have a high learning curve. i think the easiest and fastest way to achieve persistency is to use a database that all operating systems already have - the file system. each table is a directory, each entity is simply a file that has the serialized state of that entity named something like uuid.ser. done. its easy and simple. most importantly, there is absolutely no configuration needed other then the root folder and nothing to learn other then being able to read and write a file. if you want to take it up a notch you can use something like xstream or jaxb to serialize your entities into xml - which will make debugging easier. -igor On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig u...@yahoo.de wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - 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: London Wicket Event, Saturday November 21st
Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
custom resolving of relative paths in head section of panel
Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom resolving of relative paths in head section of panel
Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event, Saturday November 21st
I've got a handheld video recorder I might be able to borrow off of a friend..don't know if it will last for 6 hours though!! On 7 Oct 2009, at 11:42, jWeekend wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom resolving of relative paths in head section of panel
In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom resolving of relative paths in head section of panel
You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom resolving of relative paths in head section of panel
Hi Ittay, you can use wicket:link tag to resolve that path dynamically too. head wicket:head wicket:link script type=text/javascript src=./js/application.js/script /wicket:link /wicket:head /head that way you keep the reference valid whe html is viewed as standalone, and in the context of the application On Wed, Oct 7, 2009 at 8:26 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: custom resolving of relative paths in head section of panel
That's one of the good things about this list: you try to answer a question and you end up learning something new:-) Thanks, Ernesto On Wed, Oct 7, 2009 at 1:30 PM, Pedro Santos pedros...@gmail.com wrote: Hi Ittay, you can use wicket:link tag to resolve that path dynamically too. head wicket:head wicket:link script type=text/javascript src=./js/application.js/script /wicket:link /wicket:head /head that way you keep the reference valid whe html is viewed as standalone, and in the context of the application On Wed, Oct 7, 2009 at 8:26 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: custom resolving of relative paths in head section of panel
Pedro Santos wrote: Hi Ittay, you can use wicket:link tag to resolve that path dynamically too. head wicket:head wicket:link script type=text/javascript src=./js/application.js/script /wicket:link /wicket:head /head that way you keep the reference valid whe html is viewed as standalone, and in the context of the application Thank you, I tried this and the result is: wicket:linkscript onclick=window.location.href='./js/application.js'; src=./js/application.js view-source:http://localhost:8080/alm/js/application.js type=text/javascript/script/wicket:link Ittay On Wed, Oct 7, 2009 at 8:26 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel
There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, and several form components in the other tabs for user input. I added a save button in the tabbedpanel(instead add 3 buttons in each tab, because I just want to save all user inputs by one click), my question is, how to get the TextField value whick is belonged to the first tab when click on the save button. Html Code: div wicket:id=tabs[tabbed panel will be here]/div form wicket:id=form input wicket:id=buttonsave type=submit value=Submit / /form Java Code: final ListITab tabs = new ArrayListITab(); tabs.add(new AbstractTab(new ModelString(tab1)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel1(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab2)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel2(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab3)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs).add(new AttributeModifier(class, true, this.getDefaultModel(; Form form = new Form(form) { protected void onSubmit() { } }; Button buttonsave = new Button(buttonsave) { public void onSubmit() { //Here we should get the TextField value and save it into db } }; form.add(buttonsave); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom resolving of relative paths in head section of panel
sorry, I miss that that tag will handle the 'href' attribute, the script tag has 'src' On Wed, Oct 7, 2009 at 8:58 AM, Ittay Dror itt...@tikalk.com wrote: Pedro Santos wrote: Hi Ittay, you can use wicket:link tag to resolve that path dynamically too. head wicket:head wicket:link script type=text/javascript src=./js/application.js/script /wicket:link /wicket:head /head that way you keep the reference valid whe html is viewed as standalone, and in the context of the application Thank you, I tried this and the result is: wicket:linkscript onclick=window.location.href='./js/application.js'; src=./js/application.js view-source: http://localhost:8080/alm/js/application.js type=text/javascript/script/wicket:link Ittay On Wed, Oct 7, 2009 at 8:26 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: custom resolving of relative paths in head section of panel
This solution will work for sure... and additionally you could have the markup of MyPanel html head script type=text/javascript src=./js/application.js/script /head body wicket:panel . /wicket:panel /body /html So that you cant test it offline and have it working when used dynamically. Ernesto On Wed, Oct 7, 2009 at 1:26 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel
It is up to your object structure, use wicket api to get such object reference sounds bad On Wed, Oct 7, 2009 at 6:43 AM, jerr...@sohu.com wrote: There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, and several form components in the other tabs for user input. I added a save button in the tabbedpanel(instead add 3 buttons in each tab, because I just want to save all user inputs by one click), my question is, how to get the TextField value whick is belonged to the first tab when click on the save button. Html Code: div wicket:id=tabs[tabbed panel will be here]/div form wicket:id=form input wicket:id=buttonsave type=submit value=Submit / /form Java Code: final ListITab tabs = new ArrayListITab(); tabs.add(new AbstractTab(new ModelString(tab1)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel1(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab2)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel2(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab3)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs).add(new AttributeModifier(class, true, this.getDefaultModel(; Form form = new Form(form) { protected void onSubmit() { } }; Button buttonsave = new Button(buttonsave) { public void onSubmit() { //Here we should get the TextField value and save it into db } }; form.add(buttonsave); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel
jerr...@sohu.com wrote: There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, and several form components in the other tabs for user input. I added a save button in the tabbedpanel(instead add 3 buttons in each tab, because I just want to save all user inputs by one click), my question is, how to get the TextField value whick is belonged to the first tab when click on the save button. Let all tabs share the same model which you update using AjaxFormComponentUpdatingBehavior(onchange). //Swanthe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
It's not a problem, you can have multiple filters, they will be called in sequence when you hit an URL that matches your filter-mapping. Example for spring-security : filter filter-namespringSecurityFilterChain/filter-name filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class /filter filter filter-namewicket/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationFactoryClassName/param-name param-value org.apache.wicket.spring.SpringWebApplicationFactory /param-value /init-param /filter filter-mapping filter-namespringSecurityFilterChain/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namewicket/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping Just add your Cayenne filter in your web.xml and you're done. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de Cayenne needs his own filter. - Ursprüngliche Mail Von: Olivier Bourgeois olivier.bourgeois@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 7. Oktober 2009, 10:10:00 Uhr Betreff: Re: How do you achieve persistency Why would you replace the Wicket filter ? You can have multiple filters defined in your web.xml , they are chained by your application server. 2009/10/7 Peter Arnulf Lustig u...@yahoo.de
Re: custom resolving of relative paths in head section of panel
Ernesto Reinaldo Barreiro wrote: This solution will work for sure... and additionally you could have the markup of MyPanel html head script type=text/javascript src=./js/application.js/script /head body wicket:panel . /wicket:panel /body /html So that you cant test it offline and have it working when used dynamically. Thank you, but in my case, the javascript files are not globally available, i need to service them via a mounted target url coding strategy. Ittay Ernesto On Wed, Oct 7, 2009 at 1:26 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom resolving of relative paths in head section of panel
script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script I think that is the case to use: head script type=text/javascript src=./js/application.js/script wicket:head script type=text/javascript src=prefix/js/application.js/script /wicket:head head wicket:panel /wicket:panel On Wed, Oct 7, 2009 at 9:55 AM, Ittay Dror itt...@tikalk.com wrote: Ernesto Reinaldo Barreiro wrote: This solution will work for sure... and additionally you could have the markup of MyPanel html head script type=text/javascript src=./js/application.js/script /head body wicket:panel . /wicket:panel /body /html So that you cant test it offline and have it working when used dynamically. Thank you, but in my case, the javascript files are not globally available, i need to service them via a mounted target url coding strategy. Ittay Ernesto On Wed, Oct 7, 2009 at 1:26 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You could do public class MyPanel extends Panel { public static ResourceReference CSS = new ResourceReference(MyPanel.class, mycss.css); public MyPanel(String id) { add(CSSPackageResource.getHeaderContribution(CSS )); } } Similar for JavaScript with JavascriptPackageResource instead of CSSPackageResource Best, Ernesto On Wed, Oct 7, 2009 at 1:21 PM, Ittay Dror itt...@tikalk.com wrote: In the panel's html i have something like: script type=text/javascript src=./js/application.js/script This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: script type=text/javascript src=prefix/js/application.js/script Ittay Ernesto Reinaldo Barreiro wrote: Not quite following you... What do you mean? Something like: a.myClass { background: url('${myURL}'); } and get ${myURL} replaced? Best, Ernesto On Wed, Oct 7, 2009 at 12:55 PM, Ittay Dror itt...@tikalk.com wrote: Hi, Is there a way in which I can convert javascript/css relative references in a wicket:head of a panel and add a prefix to them? Regards, Ittay - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -- Tikal http://www.tikalk.com Tikal Project http://tikal.sourceforge.net - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: London Wicket Event, Saturday November 21st
Hey! My first london wicket event. Certainly looking forward to that. -Matej On Tue, Oct 6, 2009 at 3:10 PM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel
Hi Jerry, Your implementation isn't working because: 1. tabs have to be contained with in the form to be part of the submission: form wicket:id=form div wicket:id=tabs[tabbed panel will be here]/div input wicket:id=buttonsave type=submit value=Submit / /form 2. only the active tab is actually rendered in the browser and only it will participate in the form submission. So if the fields on each tab are exclusive then it will work otherwise you will have to take steps to make sure that the panel contents are submitted /pushed to the server side when the tab is changed. One approach I've used for this type of case is a tab panel where the tabs aren't replaced via an AJAX request but rather the containing div is set to 'display: none' or 'display: block' as required. Since the form submission process doesn't care about visibility all the components on all the tabs will be submitted. 3. Your tab panels need to have an IModelBusinessObject model. Each field in the business object is wired up to the various TextField's you have and will allow the complete business object to be built and useable during the form submission process. Regards, Mike There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, and several form components in the other tabs for user input. I added a save button in the tabbedpanel(instead add 3 buttons in each tab, because I just want to save all user inputs by one click), my question is, how to get the TextField value whick is belonged to the first tab when click on the save button. Html Code: div wicket:id=tabs[tabbed panel will be here]/div form wicket:id=form input wicket:id=buttonsave type=submit value=Submit / /form Java Code: final ListITab tabs = new ArrayListITab(); tabs.add(new AbstractTab(new ModelString(tab1)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel1(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab2)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel2(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab3)) { @Override public Panel getPanel(String panelId) { return new TaskCreateTabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs).add(new AttributeModifier(class, true, this.getDefaultModel(; Form form = new Form(form) { protected void onSubmit() { } }; Button buttonsave = new Button(buttonsave) { public void onSubmit() { //Here we should get the TextField value and save it into db } }; form.add(buttonsave); - 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
AjaxSelfUpdatingBehavior and nested values updating
Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: vps hosting for wicket app
Hello Luther, I was very much impressed by David's article. A very nice presentation of numbers and charts. Unfortunately, I know it is Xen hypervisor and cloud computing and all the fancy technogeek but I have to dumb-it-down and ask how useful is 360MB of memory? Is it safe to say 500MB of cloud memory does not equal 500MB of real-world memory? How does this scale to what is normally expected in say an in-house datacenter composed of racks and racks of 1Us and 2Us? --David. Luther Baker lutherba...@gmail.com wrote .. Linode - my personal favorite, http://journal.dedasys.com/2008/11/24/slicehost-vs-linode Slicehost - good reputation ServInt - great experience, great service, very fast boxes, a bit pricey A2 Hosting - very inexpensive AWS (Amazon E2) - easy setup and teardown and full image control -Luther On Tue, Oct 6, 2009 at 6:13 PM, Jeremy Thomerson jer...@wickettraining.comwrote: I've used redwoodvirtual in the past and it was always decent service. I'm not affiliated with them, but had a LVS there for a couple years for this sort of thing. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 1:37 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I need to deploy a wicket app for alpha and beta testing at a minimum price. Could you reccommend some vpn hosting? thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: vps hosting for wicket app
The original request was for deploy a wicket app for alpha and beta testing at a minimum price which means that it doesn't need to scale to racks and racks of servers. The subject line also asks about VPS which I assume to still mean virtual private server. That's why but Luther and I gave examples of very minimal-cost VPS solutions. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Oct 7, 2009 at 9:27 AM, da...@davidwbrown.name wrote: Hello Luther, I was very much impressed by David's article. A very nice presentation of numbers and charts. Unfortunately, I know it is Xen hypervisor and cloud computing and all the fancy technogeek but I have to dumb-it-down and ask how useful is 360MB of memory? Is it safe to say 500MB of cloud memory does not equal 500MB of real-world memory? How does this scale to what is normally expected in say an in-house datacenter composed of racks and racks of 1Us and 2Us? --David. Luther Baker lutherba...@gmail.com wrote .. Linode - my personal favorite, http://journal.dedasys.com/2008/11/24/slicehost-vs-linode Slicehost - good reputation ServInt - great experience, great service, very fast boxes, a bit pricey A2 Hosting - very inexpensive AWS (Amazon E2) - easy setup and teardown and full image control -Luther On Tue, Oct 6, 2009 at 6:13 PM, Jeremy Thomerson jer...@wickettraining.comwrote: I've used redwoodvirtual in the past and it was always decent service. I'm not affiliated with them, but had a LVS there for a couple years for this sort of thing. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 1:37 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I need to deploy a wicket app for alpha and beta testing at a minimum price. Could you reccommend some vpn hosting? thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null
Well, it's hard to say. When you include a stack trace for an error, it's helpful if you can get the full stack trace (with the exception and caused by) because I can't tell which line actually put you into the catch. But it seems like something is closing your response before you get to this redirect method. I'd put a breakpoint on the close method of the http response to see if it's being closed before you get to this one. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Oct 7, 2009 at 2:05 AM, Eyal Golan egola...@gmail.com wrote: BTW, the 'null' is the message of the exception. Looking at the exception in the break-point: the exception is: org.mortbay.jetty.EofException thanks. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Wed, Oct 7, 2009 at 1:18 AM, Jeremy Thomerson jer...@wickettraining.comwrote: null - should mean NullPointerException do you get the stacktrace to see where it's coming from? Paste into reply -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 12:41 PM, Eyal Golan egola...@gmail.com wrote: Hi, I did some refactoring in an old Wicket code amd I get the warning message in the subject: 2009-10-06 19:37:34,484 WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5 failed: null I tried to debug, did some breakpointing etc. but could not understand why do I get this. Can someone give me a hint on where to start looking and to understand what's going on? Thanks, Eyal Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Client-side treeView
jWeekend wrote: Paul, Take a look at Alastair's presenttaion called something like A Drag And Drop List Editor [1] and the accompanying source code. I don't think we have a tree publicly available yet in WiQuery [2] but for sure you should get some good ideas there even if you don't want to use it. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/ArticlesPage [2] http://code.google.com/p/wiquery/ Thanks Cemal, The jweekend example is quite helpful, I'm trying to understand it better to write my own js component. -- View this message in context: http://www.nabble.com/Client-side-treeView-tp25775360p25788056.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Scala, dependency injection and wicket
Hi I've started a test project on which I use scala, wicket and couchdb (I'm new to all of them, which should make it fun :) ). Until now I was dealing with the writing sample data access code, and I was reading a lot of articles about DI in scala. I more or less went with what is suggested in the Programing in scala book, that is using traits with self type annotations and lazy vals (for calling modules). It's very easy to construct object/classes for testing this way. Now I reached the web part (wicket) and I came to a problem. In wicket the class name *has* to match the html file (e.g. package/HomePage.html must have a corresponding package.HomePage.class). This makes it (I think) impossible to use the above method for DI. One solution is to use DI framework like guice, but I was wondering if someone hear has other idea? Thanks in advance -- Haim
Re: AjaxSelfUpdatingBehavior and nested values updating
Hi Wojtek, Create a panel that contains the setup to present the properties of your Point class. Add the 'AjaxSelfUpdatingTimerBehavior' to the panel. So long as the PointPanel is setup properly using an IModelPoint implementation that knows how to populate itself and the nested fields there is nothing else you need to do. It sounds like you don't have the panel without the ajax working. You should look at the CompoundPropertyModel or build a custom IModel implementation to allow you to access the fields of the Point object. See the wiki for more examples: http://cwiki.apache.org/WICKET/working-with-wicket-models.html Mike Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Scala, dependency injection and wicket
Hi Haim, I think you read the article from Jonas Bonér about DI with Scala [1]? In the paragraph about Guice you'll stumble over my name and my preferred way to DI with Wicket. Best regards, --- Jan. [1] http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Client-side treeView
Michael O'Cleirigh wrote: Hi Paul, Most of the wicket + javascript integrations in wicket-stuff (http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki) will show how communication between wicket and javascript can work. They can get a little messy but once implemented are nice/simple to deal with since they are self contained. When the page is rendered custom javascript is also rendered that connects the component javascript (in your case the stock tree table) with the wicket components (in your case the hiddenField.getMarkupID() that will be used to fill in the selection details). This can be done by rendering out the wicket markup id details into a global variable in the DOM or as a property in a custom object in the DOM. In the case of Palette it uses its own DOM object called Wicket.Palette (see palette.js which is adjacent to Palette.java) This is where the work is done to move values between the choicesComponent and selectionComponent. The recorderComponent is a customized HiddenField that stores the list of values that are shown in the selectionComponent. The buttons are configured with onclick actions which are connected to the contextualized Wicket.Palette.action functions. Each of the Wicket.Palette.action functions expect three arguments: 1. the markup id of the choices component 2. the markup id of the selection component 3. the markup id of the recorder component. Which are filled in automatically for the palette being rendered. For your example you could create a custom hidden field like this and define the converter so that it will have a comma seperated string content but resolve into a list of Elements: new HiddenFieldListElement(id) { /* (non-Javadoc) * @see org.apache.wicket.Component#getConverter(java.lang.Class) */ @Override public IConverter getConverter(Class? type) { return new IConverter() { @Override public String convertToString(ListElement valueList, Locale locale) { // convert value list into a comma seperated string like A,B,C... return string; } @Override public Object convertToObject(String value, Locale locale) { // convert a comma seperated string A,B,C... back into the list of elements String[] elements = value.split(,); ListElement elementList = new LinkedListElement(); for (String e : elements) { // convert } return elementList; } }; }}; Then your javascript hooks for the on selection will append the id value of the selected element into the hidden field. When the form posts the formsubmittingComponent.onSubmit() action can just call hiddenField.getModelObject() to get the list of selected elements to process. Hope this helps you get started, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Hi, Mike - thank you very much for your reply. I am following the examples on wicket-stuff and jweekend to write my own js tree-selector component. If I shall finish it, I will post my code to this forum to thank all the help I got. -- View this message in context: http://www.nabble.com/Client-side-treeView-tp25775360p25788264.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingBehavior and nested values updating
AbstractReadOnlyModelPoint point = new AbstractReadOnlyModel() { ... return point from your service ... } PropertyModelDouble lat = new PropertyModelDouble(point, latitude); PropertyModelDouble lng = new PropertyModelDouble(point, longitude); Label latLabel = new Label(lat, lat); Label lngLabel = new Label(lng, lng); -- Jeremy Thomerson http://www.wickettraining.com 2009/10/7 zabian zabia...@gmail.com Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxSelfUpdatingBehavior and nested values updating
Oh, then just add the panel that contains those labels, or add the labels themselves, to the ajax response (target.addComponent) -- Jeremy Thomerson http://www.wickettraining.com On Wed, Oct 7, 2009 at 10:00 AM, Jeremy Thomerson jer...@wickettraining.com wrote: AbstractReadOnlyModelPoint point = new AbstractReadOnlyModel() { ... return point from your service ... } PropertyModelDouble lat = new PropertyModelDouble(point, latitude); PropertyModelDouble lng = new PropertyModelDouble(point, longitude); Label latLabel = new Label(lat, lat); Label lngLabel = new Label(lng, lng); -- Jeremy Thomerson http://www.wickettraining.com 2009/10/7 zabian zabia...@gmail.com Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event, Saturday November 21st
until i see some video proof i will continue to operate under my assumption - there are no presentations, this is just an excuse to get out of the house and go to a pub :) -igor On Wed, Oct 7, 2009 at 3:42 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
lock files :) -igor On Wed, Oct 7, 2009 at 3:27 AM, James Perry james.austin.pe...@gmail.com wrote: Interesting, but how would you provide transactional isolation so you do not experience phantom or dirty reads? 2009/10/6 Igor Vaynberg igor.vaynb...@gmail.com i think all the suggestions you have gotten until now are overcomplicated and have a high learning curve. i think the easiest and fastest way to achieve persistency is to use a database that all operating systems already have - the file system. each table is a directory, each entity is simply a file that has the serialized state of that entity named something like uuid.ser. done. its easy and simple. most importantly, there is absolutely no configuration needed other then the root folder and nothing to learn other then being able to read and write a file. if you want to take it up a notch you can use something like xstream or jaxb to serialize your entities into xml - which will make debugging easier. -igor On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig u...@yahoo.de wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - 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: AjaxSelfUpdatingBehavior and nested values updating
Great, this is exactly what i need. I just didn't know how to convert one model to another or that you can get property of model object directly from model :) I appreciate your commitment. Regards, Wojtek Jeremy Thomerson pisze: AbstractReadOnlyModelPoint point = new AbstractReadOnlyModel() { ... return point from your service ... } PropertyModelDouble lat = new PropertyModelDouble(point, latitude); PropertyModelDouble lng = new PropertyModelDouble(point, longitude); Label latLabel = new Label(lat, lat); Label lngLabel = new Label(lng, lng); -- Jeremy Thomerson http://www.wickettraining.com 2009/10/7 zabian zabia...@gmail.com Hi, I want to add self-updating panel which displays some nested properties ie. two coordinates (x,y - let's say the Point class object). The point is updated by ejb or webservice. I tried to use the example from wicket-examples page - clock using AjaxSelfUpdatingBehavior. But example case updates just one value, so the model is easy - AbstractReadOnlyModelString. My case is similar, I could use AbstractReadOnlyModelPoint which getObject() calls my ejb or webservice and returns the Point object. The problem is how to populate nested properties to the Labels on each update of AjaxSelfUpdatingBehavior. I'm still fresh to the models, could anybody help me? Regards, Wojtek - 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: London Wicket Event, Saturday November 21st
If my mate can't lend me his handheld, I'll see about perhaps renting something for the day... Y. On 7 Oct 2009, at 16:15, Igor Vaynberg wrote: until i see some video proof i will continue to operate under my assumption - there are no presentations, this is just an excuse to get out of the house and go to a pub :) -igor On Wed, Oct 7, 2009 at 3:42 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel
when dealing with tabs inside a form there are two options you can go with: a) the easiest is to use javascript tabs and have the entire form on a single html page. this works best imho. b) put the tabbed panel into a form, replace tabbed panel's links with submitlinks so switching tabs submits the form and persists the values across requests. -igor On Wed, Oct 7, 2009 at 2:43 AM, jerr...@sohu.com wrote: There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, and several form components in the other tabs for user input. I added a save button in the tabbedpanel(instead add 3 buttons in each tab, because I just want to save all user inputs by one click), my question is, how to get the TextField value whick is belonged to the first tab when click on the save button. Html Code: div wicket:id=tabs[tabbed panel will be here]/div form wicket:id=form input wicket:id=buttonsave type=submit value=Submit / /form Java Code: final ListITab tabs = new ArrayListITab(); tabs.add(new AbstractTab(new ModelString(tab1)) { �...@override public Panel getPanel(String panelId) { return new TaskCreateTabPanel1(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab2)) { �...@override public Panel getPanel(String panelId) { return new TaskCreateTabPanel2(panelId); } }); tabs.add(new AbstractTab(new ModelString(tab3)) { �...@override public Panel getPanel(String panelId) { return new TaskCreateTabPanel3(panelId); } }); add(new TabbedPanel(tabs, tabs).add(new AttributeModifier(class, true, this.getDefaultModel(; Form form = new Form(form) { protected void onSubmit() { } }; Button buttonsave = new Button(buttonsave) { public void onSubmit() { //Here we should get the TextField value and save it into db } }; form.add(buttonsave); - 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
Feedback messages, input and label
Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, Tom; - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
no black point when click RadioChoice
there are 6 options in a RadioChoice, when user selects different option, different containner will be displayed to user. In my understanding, when user clicks on the different option, it should display a black point to tell user which option he/she selects. But why there is no black point in my application?Code:nbsp;nbsp;nbsp; private List listScheduleType = Arrays.asList(new String[] { Once, Now, Daily, Weekly, Monthly, Yearly });nbsp;nbsp;nbsp; WebMarkupContainer containerDaily = new WebMarkupContainer(containerDaily);nbsp;nbsp;nbsp; WebMarkupContainer containerWeekly = new WebMarkupContainer(containerWeekly);nbsp;nbsp;nbsp; WebMarkupContainer containerMonthly = new WebMarkupContainer(containerMonthly);nbsp;nbsp;nbsp; WebMarkupContainer containerYearly = new WebMarkupContainer(containerYearly);nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; add(new RadioChoice(listScheduleType, listScheduleType)nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; public void onSelectionChanged()nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; System.out.println(TaskCreateTabPanel1-RadioChoice:onSelectionChanged+this.getPrefix());nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; System.out.println(TaskCreateTabPanel1-RadioChoice:onSelectionChanged+this.getSuffix()+this.getInput());nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; int iSelected = Integer.parseInt(this.getInput());nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; switch(iSelected)nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; case 0: {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; setAllContainerVisible(false);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; break;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; }nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; case 1: {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; setAllContainerVisible(false);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; break;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; }nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; case 2: {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; setAllContainerVisible(false);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; containerDaily.setVisible(true);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; break;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; }nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; case 3: {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; setAllContainerVisible(false);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; containerWeekly.setVisible(true);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; break;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; }nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; case 4: {nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; setAllContainerVisible(false);nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
Re: Feedback messages, input and label
Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, Tom; - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
This is an example of a requirement that often pops up where I work: let's say the system registers sales, there are an average 5K orders a day and each sale has an average 3 items. Items have a category. I'm required to produce a listing of daily sales grouped by category, with a daily total. In each row I'm required to provide the same data for the same day of the previous year. The listing must be produced for any given pair of start and end dates. I don't believe a file system serialization based persistence mechanism will do well for a requirement like this, although I must admit I never tried that before. Can you give me a clue of a comparison it to an old fashioned relational database please ? Cheers, Daniel igor.vaynberg wrote: pft, just use a lucene file crawler, you get super fast searching for free! -igor On Tue, Oct 6, 2009 at 5:52 PM, James Carman jcar...@carmanconsulting.com wrote: What about queries against your persistent storage tier? Wouldn't that be quite slow? On Tue, Oct 6, 2009 at 6:07 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I would use the package names as directories and the class names as the inner most directory name (with a capital). This immediately makes it an ORM solution. Inheritance hierarchies can be created by symlinking the instances to each super type's directory. Martijn -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25789315.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Storing entity object in session - how to do it?
Looking through the archives I saw some posts that said you should not store entity objects [for example object coming from hibernate] in the session. This makes sense to me as I just hit the problem. The archives gave lots of advice but everything seemed to contradict and no one posted a working solution. Current architecture: My wicket application is implementing Guice and Warp-Persist. I have a MySession object which extends WebSession. Inside MySession I wanted to store the entity object called Account [which has a bunch of lazy load properties from hibernate]. Obviously this isn't going to work. I have a MyUnauthorizedListener which implements IUnauthorizedComponentInstatiationListener so that I can send the user to a 'change password' page based on properties in their Account [flag for changing password or a time limit since last password change] or to a 'login' page if the password doesn't need to be changed. I also have a MyUserRolesAuthorizer which implements IRoleCheckingStrategy so that I can see if the account has the proper roles to view certain pages. Solution Tried: I thought of just storing the id of the account in the session. Then when I need the actual Account object I can just pull it from the db. This works fine on Pages but I can't inject the DAO into MyUnauthorizedListener and MyUserRolesAuthorizer since Guice only injects into components [correct?] Do I need to pass the Dao to MyUnauthorizedListener and MyUserRolesAuthorizer via the WebApplication [assuming this is a component]? Any ideas? Solutions? Or have I architected this incorrectly? Thanks.
Re: How do you achieve persistency
Op dinsdag 06-10-2009 om 03:12 uur [tijdzone -0700], schreef John Armstrong: I use Cayenne (http://cayenne.apache.org/). The GUI tool eliminates any requirement to deal with XML and maps all relationships for you. Interesting. I also use Cayenne (with Databinder, but I'm doubting more and more if that is needed at all) but I haven't figured out yet how to modify my table structure from the Modeler without destroying the existing data. How do you achieve this? regards, -- Reinout van Schouwen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
http://dictionary.reference.com/browse/facetious -igor On Wed, Oct 7, 2009 at 8:54 AM, dtoffe dto...@yahoo.com.ar wrote: This is an example of a requirement that often pops up where I work: let's say the system registers sales, there are an average 5K orders a day and each sale has an average 3 items. Items have a category. I'm required to produce a listing of daily sales grouped by category, with a daily total. In each row I'm required to provide the same data for the same day of the previous year. The listing must be produced for any given pair of start and end dates. I don't believe a file system serialization based persistence mechanism will do well for a requirement like this, although I must admit I never tried that before. Can you give me a clue of a comparison it to an old fashioned relational database please ? Cheers, Daniel igor.vaynberg wrote: pft, just use a lucene file crawler, you get super fast searching for free! -igor On Tue, Oct 6, 2009 at 5:52 PM, James Carman jcar...@carmanconsulting.com wrote: What about queries against your persistent storage tier? Wouldn't that be quite slow? On Tue, Oct 6, 2009 at 6:07 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I would use the package names as directories and the class names as the inner most directory name (with a capital). This immediately makes it an ORM solution. Inheritance hierarchies can be created by symlinking the instances to each super type's directory. Martijn -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25789315.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
o -- your joke O /|\-- me /\ I've read so long and unbelievable discussions regarding relational vs ORM persistence, I'm always afraid of asking... Cheers, Daniel igor.vaynberg wrote: http://dictionary.reference.com/browse/facetious -igor On Wed, Oct 7, 2009 at 8:54 AM, dtoffe dto...@yahoo.com.ar wrote: This is an example of a requirement that often pops up where I work: let's say the system registers sales, there are an average 5K orders a day and each sale has an average 3 items. Items have a category. I'm required to produce a listing of daily sales grouped by category, with a daily total. In each row I'm required to provide the same data for the same day of the previous year. The listing must be produced for any given pair of start and end dates. I don't believe a file system serialization based persistence mechanism will do well for a requirement like this, although I must admit I never tried that before. Can you give me a clue of a comparison it to an old fashioned relational database please ? Cheers, Daniel igor.vaynberg wrote: pft, just use a lucene file crawler, you get super fast searching for free! -igor On Tue, Oct 6, 2009 at 5:52 PM, James Carman jcar...@... wrote: What about queries against your persistent storage tier? Wouldn't that be quite slow? -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25789750.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback messages, input and label
Yeah, it worked, thanks. Nonetheless, it'd be madness if I had to do that with every component of the system. Is this the only way? Couldn't this be done in a more automatic fashion, like for example, extracting it from the html label content which is associated to the input? Olivier Bourgeois escribió: Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, 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: vps hosting for wicket app
I never found VPS to be cost effective (for my needs). For $100/month or so I have a core 2-duo dedicated box with 4GB RAM/120GB disk and 10mb/s throughput that can host 2-3 virtual machines of my own devising or just be a bare metal server. Lots more maintenance overhead but the flexibility, speed and consistent cost I found to be worth the extra funds and time vs a VPS. John- On Wed, Oct 7, 2009 at 7:34 AM, Jeremy Thomerson jer...@wickettraining.com wrote: The original request was for deploy a wicket app for alpha and beta testing at a minimum price which means that it doesn't need to scale to racks and racks of servers. The subject line also asks about VPS which I assume to still mean virtual private server. That's why but Luther and I gave examples of very minimal-cost VPS solutions. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Oct 7, 2009 at 9:27 AM, da...@davidwbrown.name wrote: Hello Luther, I was very much impressed by David's article. A very nice presentation of numbers and charts. Unfortunately, I know it is Xen hypervisor and cloud computing and all the fancy technogeek but I have to dumb-it-down and ask how useful is 360MB of memory? Is it safe to say 500MB of cloud memory does not equal 500MB of real-world memory? How does this scale to what is normally expected in say an in-house datacenter composed of racks and racks of 1Us and 2Us? --David. Luther Baker lutherba...@gmail.com wrote .. Linode - my personal favorite, http://journal.dedasys.com/2008/11/24/slicehost-vs-linode Slicehost - good reputation ServInt - great experience, great service, very fast boxes, a bit pricey A2 Hosting - very inexpensive AWS (Amazon E2) - easy setup and teardown and full image control -Luther On Tue, Oct 6, 2009 at 6:13 PM, Jeremy Thomerson jer...@wickettraining.comwrote: I've used redwoodvirtual in the past and it was always decent service. I'm not affiliated with them, but had a LVS there for a couple years for this sort of thing. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 1:37 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I need to deploy a wicket app for alpha and beta testing at a minimum price. Could you reccommend some vpn hosting? thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus - 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: Storing entity object in session - how to do it?
We have (some key) entities (successfully) in Session. But they are not lazy-load entities so they act like plain-old-java-beans. ** Martin 2009/10/7 Jeffrey Schneller jeffrey.schnel...@envisa.com: Looking through the archives I saw some posts that said you should not store entity objects [for example object coming from hibernate] in the session. This makes sense to me as I just hit the problem. The archives gave lots of advice but everything seemed to contradict and no one posted a working solution. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: vps hosting for wicket app
Hosted vps might give you backup and fail-over very cost-effectively. ** Martin 2009/10/7 John Armstrong siber...@siberian.org: I never found VPS to be cost effective (for my needs). For $100/month or so I have a core 2-duo dedicated box with 4GB RAM/120GB disk and 10mb/s throughput that can host 2-3 virtual machines of my own devising or just be a bare metal server. Lots more maintenance overhead but the flexibility, speed and consistent cost I found to be worth the extra funds and time vs a VPS. John- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback messages, input and label
Nonetheless, it'd be madness no, this is spartaaa! form components search property files for their labels without you having to explicitly set a model. -igor if I had to do that with every component of the system. Is this the only way? Couldn't this be done in a more automatic fashion, like for example, extracting it from the html label content which is associated to the input? Olivier Bourgeois escribió: Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback messages, input and label
try putting inputPwd = Password in your property file. -Matej On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, 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: Scala, dependency injection and wicket
Hi Jan, On Wed, Oct 7, 2009 at 4:59 PM, Jan Kriesten kries...@mail.footprint.dewrote: Hi Haim, I think you read the article from Jonas Bonér about DI with Scala [1]? yes of course :) In the paragraph about Guice you'll stumble over my name and my preferred way to DI with Wicket. Yes, I remember seeing that. How would you add it to wicket? by adding ServiceInjector trait to the Application class or using the wicket-guice way (addComponentInstantiationListener(new GuiceComponentInjector(this));)? One more question though, In the example you're only using constructor injection. Any reason not to use field injection? In java the reason is to allow final variables, but I think I read somewhere that in scala you can inject to lazy vals. Thanks for the help -- Haim
Re: Feedback messages, input and label
Yeah, we'd need 300 programmers for that task ;) So you have to specify the label for each component in a property file? And then you'd have a property file for each markup that contains a form? Mmhh... Igor Vaynberg escribió: Nonetheless, it'd be madness no, this is spartaaa! form components search property files for their labels without you having to explicitly set a model. -igor if I had to do that with every component of the system. Is this the only way? Couldn't this be done in a more automatic fashion, like for example, extracting it from the html label content which is associated to the input? Olivier Bourgeois escribió: Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, 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 - 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: Feedback messages, input and label
Wicket is Sparta? http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg17023.html On Wed, Oct 7, 2009 at 3:05 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Yeah, we'd need 300 programmers for that task ;) So you have to specify the label for each component in a property file? And then you'd have a property file for each markup that contains a form? Mmhh... Igor Vaynberg escribió: Nonetheless, it'd be madness no, this is spartaaa! form components search property files for their labels without you having to explicitly set a model. -igor if I had to do that with every component of the system. Is this the only way? Couldn't this be done in a more automatic fashion, like for example, extracting it from the html label content which is associated to the input? Olivier Bourgeois escribió: Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, 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 - 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 -- Pedro Henrique Oliveira dos Santos
Re: Feedback messages, input and label
Ok, that's a little nicer, but still... It'd be better if the label could be deduced from the markup itself. Yet, no big deal. Thanks Matej Knopp escribió: try putting inputPwd = Password in your property file. -Matej On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the required-error-message prints, it does like this: * Field inputPwd is required! Now I wish I could change it to say Field Password is required! without modifying wicket:id attribute nor adding specific required message for the component. Is this possible? Kind regards, 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event, Saturday November 21st
When a Wicket Event in Buenos Aires, Argentina ?? We also have lots of pubs :) On Wed, Oct 7, 2009 at 5:21 PM, Ioannis Mavroukakis imavrouka...@gameaccount.com wrote: If my mate can't lend me his handheld, I'll see about perhaps renting something for the day... Y. On 7 Oct 2009, at 16:15, Igor Vaynberg wrote: until i see some video proof i will continue to operate under my assumption - there are no presentations, this is just an excuse to get out of the house and go to a pub :) -igor On Wed, Oct 7, 2009 at 3:42 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
artwork mootip conflict
I can't say what exactly is causing problem but when i am using liquid canvas with mootip(minis) in a page, the liquid canvas fails to render .. -- regards, Vineet Semwal
Re: London Wicket Event, Saturday November 21st
Hi Nicolas, great idea On Wed, Oct 7, 2009 at 3:25 PM, Nicolas Melendez nmelen...@getsense.com.arwrote: When a Wicket Event in Buenos Aires, Argentina ?? We also have lots of pubs :) On Wed, Oct 7, 2009 at 5:21 PM, Ioannis Mavroukakis imavrouka...@gameaccount.com wrote: If my mate can't lend me his handheld, I'll see about perhaps renting something for the day... Y. On 7 Oct 2009, at 16:15, Igor Vaynberg wrote: until i see some video proof i will continue to operate under my assumption - there are no presentations, this is just an excuse to get out of the house and go to a pub :) -igor On Wed, Oct 7, 2009 at 3:42 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
problems validating Palette
I'm trying to validate that at most 5 items were selected with a Palette but I've had a series of problems. (Wicket 1.3.7) palette.getRecorderComponent().add(myCompValidator) fails because getRecorderComponent() returns null. I think it's created in onBeforeRender() So I switched to form validation. recorder.getInput() returns a string of comma separated choices x, y, z. recorder.getInputAsArray() returns an array of 1 containing the same string. I suppose I could parse these strings, but what if the choices have commas? recorder.getSelectedChoices() seems to lag the state by one submit. (Second submit with 6 will fail. Second submit with 5 will succeed. gSC should probably only be used after validation.) So what's the right approach? Thanks, -troy final Palette pal1 = . form.add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; @Override public FormComponent[] getDependentFormComponents() { FormComponent out[] = new FormComponent[1]; out[0] = pal1.getRecorderComponent(); return out; } @Override public void validate(Form form) { FormComponent r = pal1.getRecorderComponent(); System.err.println(INPUT: + r.getInput()); String inputs[] = r.getInputAsArray(); System.err.println(ARRAY SIZE: + inputs.length); System.err.println(ARRAY: + inputs); System.err.println(ARRAY[0]: + inputs[0]); /* always return 1 input string ?? if (inputs.length 5) error(pal1.getRecorderComponent()); * */ Iterator it = pal1.getSelectedChoices(); int count = 0; while (it.hasNext()) { it.next(); if (++count 5) { System.err.println(ERROR: + count); error(pal1.getRecorderComponent(), Max); return; } System.err.println(COUNT: + count); } } }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Tree
Hi, with wicket-tree you can of course use multiple trees on a single page. moving tree nodes around from one tree to another tree. How to you want to move the nodes? You could use selectable nodes which are moved on a button click. Or you add wicket-dnd to the mix and use dragdrop gestures. See the following example (one tree only though): http://wicket-dnd.appspot.com/ Regards Sven ping ping wrote: How to post my question to the forum? I'm new to wicket development and currently working on wicket tree.. Ive previously tried on the checkbox wickettree from http://code.google.com/p/wicket-tree/ But now i would like to work on displaying multiple treeview(with or without) display on a single page for the purpose of moving tree nodes around from one tree to another tree. Was wondering whether the wickettree would be able to perform to that extent of flexibbility. I came across the dojo tree, but not have never tried using it though and not sure whether its applicable. Am looking forward for some suggestions and guidance here for a wicket newbie to get started on dynamic tree nodes manipulation. _ NEW! Get Windows Live FREE. http://www.get.live.com/wl/all - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Showing Modal window within a wizard step
I am trying to show a modal window within a wizard step showing the same data the wizard step shows but as input text fields for editing. I have found some references to showing a wizard in a modal window and showing a wizard within a wizard but not what I am looking to do. I have the wizard steps appearing with the data and I have a modal popup being launched from the step via an AjaxLink. I can't figure out how to get the data from the wizard step and make it appear in the modal as well [so the user can edit the information]. I have a MyWizard object which in the constructor sets the default model to a CompoundPropertyModel of a LoadableDetachableModel of my data object. I then call a method in the constructor to set all the data of the model that I can from the database [which works]. The first step of the wizard shows any data that has been set in the model. How do I get my Modal window to show the same data from the model used to display data in step 1? I then will need to take the values entered in the modal and push them back into the wizard model. I am assuming this can be done via an entry in the wiki [1]. Thanks. [1] http://cwiki.apache.org/WICKET/pass-form-input-from-modal-window-back-to -the-caller-page.html
RE: Storing entity object in session - how to do it?
Thanks. I took your suggestion and now just store the key pieces that I need in the session and it looks like it is working. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Wednesday, October 07, 2009 1:05 PM To: users@wicket.apache.org Subject: Re: Storing entity object in session - how to do it? We have (some key) entities (successfully) in Session. But they are not lazy-load entities so they act like plain-old-java-beans. ** Martin 2009/10/7 Jeffrey Schneller jeffrey.schnel...@envisa.com: Looking through the archives I saw some posts that said you should not store entity objects [for example object coming from hibernate] in the session. This makes sense to me as I just hit the problem. The archives gave lots of advice but everything seemed to contradict and no one posted a working solution. - 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: problems validating Palette
override newrecordercomponent() and add your validator there. -igor On Wed, Oct 7, 2009 at 11:56 AM, Troy Cauble troycau...@gmail.com wrote: I'm trying to validate that at most 5 items were selected with a Palette but I've had a series of problems. (Wicket 1.3.7) palette.getRecorderComponent().add(myCompValidator) fails because getRecorderComponent() returns null. I think it's created in onBeforeRender() So I switched to form validation. recorder.getInput() returns a string of comma separated choices x, y, z. recorder.getInputAsArray() returns an array of 1 containing the same string. I suppose I could parse these strings, but what if the choices have commas? recorder.getSelectedChoices() seems to lag the state by one submit. (Second submit with 6 will fail. Second submit with 5 will succeed. gSC should probably only be used after validation.) So what's the right approach? Thanks, -troy final Palette pal1 = . form.add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; �...@override public FormComponent[] getDependentFormComponents() { FormComponent out[] = new FormComponent[1]; out[0] = pal1.getRecorderComponent(); return out; } �...@override public void validate(Form form) { FormComponent r = pal1.getRecorderComponent(); System.err.println(INPUT: + r.getInput()); String inputs[] = r.getInputAsArray(); System.err.println(ARRAY SIZE: + inputs.length); System.err.println(ARRAY: + inputs); System.err.println(ARRAY[0]: + inputs[0]); /* always return 1 input string ?? if (inputs.length 5) error(pal1.getRecorderComponent()); * */ Iterator it = pal1.getSelectedChoices(); int count = 0; while (it.hasNext()) { it.next(); if (++count 5) { System.err.println(ERROR: + count); error(pal1.getRecorderComponent(), Max); return; } System.err.println(COUNT: + count); } } }); - 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: Scala, dependency injection and wicket
This is similar problem to one I'm trying to solve. Mine's: having several html files have the same java class controlling them. (sounds simple, right?) So far the only reasonable thing came from Martin and that's to override getAssociatedMarkupStream in your own Page class. Which also implies rewriting cache useage etc. Wanna do it together or smth? I'm new to wicket myself. And so far: ajax is a pain in the ass that requires explicit work even for a simple form verification (bad architecture there). And this other problem with url formation. Just hoping they didn't go nuts making stuff final, like apache usually does ;) -Original Message- From: Haim Ashkenazi [mailto:haim.ashken...@gmail.com] Sent: Wednesday, October 07, 2009 10:51 AM To: users@wicket.apache.org Subject: Scala, dependency injection and wicket Hi I've started a test project on which I use scala, wicket and couchdb (I'm new to all of them, which should make it fun :) ). Until now I was dealing with the writing sample data access code, and I was reading a lot of articles about DI in scala. I more or less went with what is suggested in the Programing in scala book, that is using traits with self type annotations and lazy vals (for calling modules). It's very easy to construct object/classes for testing this way. Now I reached the web part (wicket) and I came to a problem. In wicket the class name *has* to match the html file (e.g. package/HomePage.html must have a corresponding package.HomePage.class). This makes it (I think) impossible to use the above method for DI. One solution is to use DI framework like guice, but I was wondering if someone hear has other idea? Thanks in advance -- Haim - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: problems validating Palette
Thanks, That's a better place to attach validation. But it still leaves me working with a single String of comma separated selections. It makes me wonder if the underlying code can handle choices that contain commas. -troy On Wed, Oct 7, 2009 at 4:27 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: override newrecordercomponent() and add your validator there. -igor On Wed, Oct 7, 2009 at 11:56 AM, Troy Cauble troycau...@gmail.com wrote: I'm trying to validate that at most 5 items were selected with a Palette but I've had a series of problems. (Wicket 1.3.7) palette.getRecorderComponent().add(myCompValidator) fails because getRecorderComponent() returns null. I think it's created in onBeforeRender() So I switched to form validation. recorder.getInput() returns a string of comma separated choices x, y, z. recorder.getInputAsArray() returns an array of 1 containing the same string. I suppose I could parse these strings, but what if the choices have commas? recorder.getSelectedChoices() seems to lag the state by one submit. (Second submit with 6 will fail. Second submit with 5 will succeed. gSC should probably only be used after validation.) So what's the right approach? Thanks, -troy final Palette pal1 = . form.add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; �...@override public FormComponent[] getDependentFormComponents() { FormComponent out[] = new FormComponent[1]; out[0] = pal1.getRecorderComponent(); return out; } �...@override public void validate(Form form) { FormComponent r = pal1.getRecorderComponent(); System.err.println(INPUT: + r.getInput()); String inputs[] = r.getInputAsArray(); System.err.println(ARRAY SIZE: + inputs.length); System.err.println(ARRAY: + inputs); System.err.println(ARRAY[0]: + inputs[0]); /* always return 1 input string ?? if (inputs.length 5) error(pal1.getRecorderComponent()); * */ Iterator it = pal1.getSelectedChoices(); int count = 0; while (it.hasNext()) { it.next(); if (++count 5) { System.err.println(ERROR: + count); error(pal1.getRecorderComponent(), Max); return; } System.err.println(COUNT: + count); } } }); - 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: Scala, dependency injection and wicket
Hi Alex, Wow, I just realized something... I've sent this to the wrong list :) I've meant to send it to the scala mailing list (this may explain why I explain the way wicket works). On Wed, Oct 7, 2009 at 10:42 PM, Alex Rass a...@itbsllc.com wrote: This is similar problem to one I'm trying to solve. Mine's: having several html files have the same java class controlling them. (sounds simple, right?) I remember this thread :) So far the only reasonable thing came from Martin and that's to override getAssociatedMarkupStream in your own Page class. Which also implies rewriting cache useage etc. Wanna do it together or smth? Actually this is not much of a problem for me. I just wanted to know if I overlook something. I perfectly willing to use guice. Thanks -- Haim
Re: problems validating Palette
And a quick test shows that the underlying code CANNOT handle choices with commas in them. -troy On Wed, Oct 7, 2009 at 4:58 PM, Troy Cauble troycau...@gmail.com wrote: Thanks, That's a better place to attach validation. But it still leaves me working with a single String of comma separated selections. It makes me wonder if the underlying code can handle choices that contain commas. -troy On Wed, Oct 7, 2009 at 4:27 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: override newrecordercomponent() and add your validator there. -igor On Wed, Oct 7, 2009 at 11:56 AM, Troy Cauble troycau...@gmail.com wrote: I'm trying to validate that at most 5 items were selected with a Palette but I've had a series of problems. (Wicket 1.3.7) palette.getRecorderComponent().add(myCompValidator) fails because getRecorderComponent() returns null. I think it's created in onBeforeRender() So I switched to form validation. recorder.getInput() returns a string of comma separated choices x, y, z. recorder.getInputAsArray() returns an array of 1 containing the same string. I suppose I could parse these strings, but what if the choices have commas? recorder.getSelectedChoices() seems to lag the state by one submit. (Second submit with 6 will fail. Second submit with 5 will succeed. gSC should probably only be used after validation.) So what's the right approach? Thanks, -troy final Palette pal1 = . form.add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; �...@override public FormComponent[] getDependentFormComponents() { FormComponent out[] = new FormComponent[1]; out[0] = pal1.getRecorderComponent(); return out; } �...@override public void validate(Form form) { FormComponent r = pal1.getRecorderComponent(); System.err.println(INPUT: + r.getInput()); String inputs[] = r.getInputAsArray(); System.err.println(ARRAY SIZE: + inputs.length); System.err.println(ARRAY: + inputs); System.err.println(ARRAY[0]: + inputs[0]); /* always return 1 input string ?? if (inputs.length 5) error(pal1.getRecorderComponent()); * */ Iterator it = pal1.getSelectedChoices(); int count = 0; while (it.hasNext()) { it.next(); if (++count 5) { System.err.println(ERROR: + count); error(pal1.getRecorderComponent(), Max); return; } System.err.println(COUNT: + count); } } }); - 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: Storing entity object in session - how to do it?
cant you inject the DAO's to the listeners in the moment you create and attack the listeners to your application? If you have the Injector at that moment, you could even pull your listeners from the Injector, no? On Wed, Oct 7, 2009 at 5:21 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Thanks. I took your suggestion and now just store the key pieces that I need in the session and it looks like it is working. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Wednesday, October 07, 2009 1:05 PM To: users@wicket.apache.org Subject: Re: Storing entity object in session - how to do it? We have (some key) entities (successfully) in Session. But they are not lazy-load entities so they act like plain-old-java-beans. ** Martin 2009/10/7 Jeffrey Schneller jeffrey.schnel...@envisa.com: Looking through the archives I saw some posts that said you should not store entity objects [for example object coming from hibernate] in the session. This makes sense to me as I just hit the problem. The archives gave lots of advice but everything seemed to contradict and no one posted a working solution. - 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 -- http://mapsdev.blogspot.com/ Marcelo Takeshi Fukushima - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing entity object in session - how to do it?
btw, im not actually suggesting you do that because keeping the key pieces in memory must be a lot faster than pulling from the DB for every component On Wed, Oct 7, 2009 at 7:34 PM, Marcelo Fukushima takesh...@gmail.com wrote: cant you inject the DAO's to the listeners in the moment you create and attack the listeners to your application? If you have the Injector at that moment, you could even pull your listeners from the Injector, no? On Wed, Oct 7, 2009 at 5:21 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Thanks. I took your suggestion and now just store the key pieces that I need in the session and it looks like it is working. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Wednesday, October 07, 2009 1:05 PM To: users@wicket.apache.org Subject: Re: Storing entity object in session - how to do it? We have (some key) entities (successfully) in Session. But they are not lazy-load entities so they act like plain-old-java-beans. ** Martin 2009/10/7 Jeffrey Schneller jeffrey.schnel...@envisa.com: Looking through the archives I saw some posts that said you should not store entity objects [for example object coming from hibernate] in the session. This makes sense to me as I just hit the problem. The archives gave lots of advice but everything seemed to contradict and no one posted a working solution. - 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 -- http://mapsdev.blogspot.com/ Marcelo Takeshi Fukushima -- http://mapsdev.blogspot.com/ Marcelo Takeshi Fukushima - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Perspective from fellow Wicketers on ColdFusion job oppty.
Hey guys, I know this is an unusual question for this list, but I was hoping that I could get some viewpoints and info about something. I recently interviewed for a job opportunity at a company that runs their core app, comprised of both web interface and web services, in a cool niche that I would like to work in. Also the company seems very cool over all. It's a nice size, a small development team, and the guys I met seemed really good. The big problem is that I'd be working mostly in ColdFusion. When they told me that in the initial, pre-interview email, I thought jeez is anybody using that still. I had never had any hands-on experience with it, so I spent the weekend with a decent book working through some exercises on my laptop. What I found was that my initial impression was, this language sucks, it is a pain to use. I admit this is only after spending about 3 days with CF and I really didn't go into it with my mind wide open. So, my question would be, if anyone here has experience with CF, is it really as bad as it seems? As someone with a passionate, nearly religious fondness of Wicket, will I hate every minute of CF as much as I fear I might? Is there any chance that after trying to accept some of the things I already don't like that I will find that I can still enjoy programming a cool product even if the underlying system sucks? Thanks for any info/thoughts! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Perspective from fellow Wicketers on ColdFusion job oppty.
Funny to hear that. In my professional (paid) web development career, I went from Perl to ColdFusion to Tapestry to Wicket. Of course, I've stuck with Wicket. But, I'm also now doing a little PHP (with Symfony framework - more on that later). I spent about five years working for a subsidiary of eBay and most of that time worked on a ColdFusion application. We converted it to Tapestry. I could probably safely say that it's about like any scripting language. It has pros and cons. But if you really love Wicket, you're likely not to like CF. And, it seems like in that sort of language, you are much more likely to walk into a rat's nest of nasty code. Some questions to ask: Do they use any of the major CF frameworks? Mach II? Do they use a modern version of CF and use MVC / object oriented code? Or do they have CFM pages that have queries and markup right in the same file? Or do they think that includes or custom tags are the right way of separating logic and markup? If you find that they are using a modern version, using an MVC framework like Mach II, etc, then it probably won't be too bad. In these modern versions, you can actually tie in java code pretty easily. But if you really love Wicket, my guess is that you won't truly enjoy CF development. But, hey, there are many things that make a job decision. I never thought I would enjoy any PHP development, but this year took a gig doing some PHP development using Symfony - and actually enjoying it - because it gives a clean separation, is oo-based, has a built-in ORM, etc. Surprised even me. Happy (job) hunting! -- Jeremy Thomerson http://www.wickettraining.com On Wed, Oct 7, 2009 at 10:33 PM, Jamie Swain jpsw...@gmail.com wrote: Hey guys, I know this is an unusual question for this list, but I was hoping that I could get some viewpoints and info about something. I recently interviewed for a job opportunity at a company that runs their core app, comprised of both web interface and web services, in a cool niche that I would like to work in. Also the company seems very cool over all. It's a nice size, a small development team, and the guys I met seemed really good. The big problem is that I'd be working mostly in ColdFusion. When they told me that in the initial, pre-interview email, I thought jeez is anybody using that still. I had never had any hands-on experience with it, so I spent the weekend with a decent book working through some exercises on my laptop. What I found was that my initial impression was, this language sucks, it is a pain to use. I admit this is only after spending about 3 days with CF and I really didn't go into it with my mind wide open. So, my question would be, if anyone here has experience with CF, is it really as bad as it seems? As someone with a passionate, nearly religious fondness of Wicket, will I hate every minute of CF as much as I fear I might? Is there any chance that after trying to accept some of the things I already don't like that I will find that I can still enjoy programming a cool product even if the underlying system sucks? Thanks for any info/thoughts! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Perspective from fellow Wicketers on ColdFusion job oppty.
It only gets worse the longer you work with ColdFusion. Where I work were finally working towards abandoning it completely. Some paint points: * No null value, you get a bunch of methods to check various types of objects to see if they are undefined * You can only specify return types of the core objects provided by ColdFusion * No method overloading * Calling a method or function is usually about half a dozen lines of code. * Same with actually creating an object/component * cfthis cfthat gets really old and since the language doesn't have a schema definition for its tags (would be impossible because its not valid xml to begin with) you don't get decent IDE support. * No build or deployment tools (unless copying files ftp counts). You have to create your own. On Wed, Oct 7, 2009 at 11:33 PM, Jamie Swain jpsw...@gmail.com wrote: Hey guys, I know this is an unusual question for this list, but I was hoping that I could get some viewpoints and info about something. I recently interviewed for a job opportunity at a company that runs their core app, comprised of both web interface and web services, in a cool niche that I would like to work in. Also the company seems very cool over all. It's a nice size, a small development team, and the guys I met seemed really good. The big problem is that I'd be working mostly in ColdFusion. When they told me that in the initial, pre-interview email, I thought jeez is anybody using that still. I had never had any hands-on experience with it, so I spent the weekend with a decent book working through some exercises on my laptop. What I found was that my initial impression was, this language sucks, it is a pain to use. I admit this is only after spending about 3 days with CF and I really didn't go into it with my mind wide open. So, my question would be, if anyone here has experience with CF, is it really as bad as it seems? As someone with a passionate, nearly religious fondness of Wicket, will I hate every minute of CF as much as I fear I might? Is there any chance that after trying to accept some of the things I already don't like that I will find that I can still enjoy programming a cool product even if the underlying system sucks? Thanks for any info/thoughts! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Perspective from fellow Wicketers on ColdFusion job oppty.
I have used ColdFusion in the past for 2 different clients both using CFM pages with the markup and queries in the pages. Luckily at the end of the projects I knew I was done with them and moving on to something else. The 1st project I created from scratch so it was manageable at the start but by the end with multiple developers was a mess. It wasn't difficult to learn but all the cf tags are a pain and as someone else said the IDEs didn’t like them at the time except for Homesite. The 2nd project was inherited code and it was a mess. The 2nd time at least Eclipse had a CFM plugin that helps editing the files. Basically the same pain points raised by Ben. I would say if you are a wicket/java junkie then you will not like CF unless they are using one of the modern frameworks and even then it may not be enjoyable but tolerable if landing a job is the main concern. Good Luck. On Wed, Oct 7, 2009 at 11:33 PM, Jamie Swain jpsw...@gmail.com wrote: Hey guys, I know this is an unusual question for this list, but I was hoping that I could get some viewpoints and info about something. I recently interviewed for a job opportunity at a company that runs their core app, comprised of both web interface and web services, in a cool niche that I would like to work in. Also the company seems very cool over all. It's a nice size, a small development team, and the guys I met seemed really good. The big problem is that I'd be working mostly in ColdFusion. When they told me that in the initial, pre-interview email, I thought jeez is anybody using that still. I had never had any hands-on experience with it, so I spent the weekend with a decent book working through some exercises on my laptop. What I found was that my initial impression was, this language sucks, it is a pain to use. I admit this is only after spending about 3 days with CF and I really didn't go into it with my mind wide open. So, my question would be, if anyone here has experience with CF, is it really as bad as it seems? As someone with a passionate, nearly religious fondness of Wicket, will I hate every minute of CF as much as I fear I might? Is there any chance that after trying to accept some of the things I already don't like that I will find that I can still enjoy programming a cool product even if the underlying system sucks? Thanks for any info/thoughts! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Scala, dependency injection and wicket
Hi Haim, Yes, I remember seeing that. How would you add it to wicket? by adding ServiceInjector trait to the Application class or using the wicket-guice way (addComponentInstantiationListener(new GuiceComponentInjector(this));)? the Injector is just a trait, so anywhere it's needed, I just add it to the corresponding class - whether it's a Wicket component or not doesn't matter. So you have class MyWebPage extends WebPage with Injector { @Inject val domainRepo: DomainRepo = domainRepo } class DomainRepo extends Repo with Injector { @Inject val customerRepo: CustomerRep = customerRepo } This is a general approach, so no need to add a intantiation listener. One more question though, In the example you're only using constructor injection. Any reason not to use field injection? Actually, I use field injection most of the time, see above. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org