RE: Very interesting question... my boss complain about one of my implementations...

2010-05-28 Thread Stefan Lindner
And the simplest solution, if it is a simple database action, would be to use a cron job if your database runsund some **ux operating system. Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Wicket clustering without web server clustering

2010-05-28 Thread DmitryM
Thanks a lot for a prompt response, Jeremy Jeremy Thomerson wrote: A lot of stuff is stored in the session: https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java Well, I'm know about this class (probably, not that much as

Re: resource model partially resolve key

2010-05-28 Thread Fernando Wermus
Igor, It was a bug. thanks On Thu, May 27, 2010 at 12:32 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: how is the TituloReadOnlyModel used? -igor On Thu, May 27, 2010 at 8:22 AM, Fernando Wermus fernando.wer...@gmail.com wrote: I got this message, [Warning: String resource for

Re: DropDownChoice problem

2010-05-28 Thread Dr. Wolf Blecher
Hi, just a few guesses: - I don't think that this is according to a language problem. - as far as I can see in your HTML code the DropDown is inside the span wicket:id=adress_border, so maybe this is an issue - may be you just ommited it, but I don't see a closing tag for your select

Re: Wicket clustering without web server clustering

2010-05-28 Thread Jeremy Thomerson
On Fri, May 28, 2010 at 1:00 AM, DmitryM nsk...@aol.com wrote: Thanks a lot for a prompt response, Jeremy Jeremy Thomerson wrote: A lot of stuff is stored in the session:

Re: Wicket clustering without web server clustering

2010-05-28 Thread DmitryM
Jeremy, That makes perfect sense. I will look into it. Regards, Dmitry -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-clustering-without-web-server-clustering-tp2234048p2234170.html Sent from the Wicket - User mailing list archive at Nabble.com.

SV: Very interesting question... my boss complain about one of my implementations...

2010-05-28 Thread Wilhelmsen Tor Iver
My boss said that it is not a good practice and he recomended to use something like in Struts called Timers, do we have something like that in wickets¿? Try looking into Quartz, a library for such things. The lack of a standard scheduling framework outside of JMX is a problem in JEE in

Re: SV: Very interesting question... my boss complain about one of my implementations...

2010-05-28 Thread M. Hammer
I can also recommend Quartz, especially with the Spring integration. (http://static.springsource.org/spring/docs/1.2.9/reference/scheduling.html) Very stable, and quite easy to set up. Try looking into Quartz, a library for such things. The lack of a standard scheduling framework outside

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Paul Szulc
other solution would be to use embedded HSQL, if you want to know how checkout http://code.google.com/p/wicketcool/, generate project using it, and check jdbc.properties in domain module. good luck On Thu, May 27, 2010 at 11:22 PM, Peter Ertl pe...@gmx.org wrote: maybe you should properly

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Jakub Skoczen
On Thu, May 27, 2010 at 7:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can add a servlet context listener that looks for the lock file and nukes it. I had a similar idea for a while but hoped for a cleaner approach. Anyways after reading through the docs it looks like HSQLDB is using

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Jakub Skoczen
Well, I'm using an embedded (in-process) HSQL, that's the very reason I get this error. Is wicket-cool addressing this particular issue in some way? On Fri, May 28, 2010 at 9:54 AM, Paul Szulc paul.sz...@gmail.com wrote: other solution would be to use embedded HSQL, if you want to know how

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Jakub Skoczen
(sorry if that gotten reposted, I mistakenly used a different email address that may have not been registered with the ML) On Thu, May 27, 2010 at 7:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can add a servlet context listener that looks for the lock file and nukes it. I had a

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Paul Szulc
Hmm wicket-cool generates project that uses embedded hsql as database and uses it for test in all modules (domain, service and webapplication) as well as for jetty:run deployment. I do not have problems you are speaking of so you might as well just try it. Here is what I did: jdbc.properties

Re: Status of wicket-security

2010-05-28 Thread Emond Papegaaij
And that conversion is now completed. We are at wicket 1.4(.9) and everything seems to be fine. I think we can release wicket-security-1.4.0 today. If we don't get to it, expect the release next week. We will post an announcement on this list. Until then, you can use 1.4-rc1. Nothing has

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Paul Szulc
maybe you lack of shutdown=true ? shutdown=true shuts when connections are closed On Fri, May 28, 2010 at 10:53 AM, Jakub Skoczen skoc...@gmail.com wrote: (sorry if that gotten reposted, I mistakenly used a different email address that may have not been registered with the ML) On Thu, May

Creating and zipping binary files for download

2010-05-28 Thread Alex Zeit
Dear All, I would like to create some binary files, zip them and start download in one step. I started with the functionality to create files depending on form input: form.add(new Button(button1, new Model(Download)) { @Override public void onSubmit() {

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Jakub Skoczen
I found that (here: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1114) exactly ten minutes ago and was just about to post back here :) . What's important - it works, so my connection string looks like this: jdbc:hsqldb:file:temp_db;shutdown=true Thanks for all the ideas! On

Re: Jetty, HSQLDB and automatic scanning

2010-05-28 Thread Paul Szulc
cool On Fri, May 28, 2010 at 11:49 AM, Jakub Skoczen skoc...@gmail.com wrote: I found that (here: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1114) exactly ten minutes ago and was just about to post back here :) . What's important - it works, so my connection string looks

RE: Basic page routing

2010-05-28 Thread Mike Quilleash
OK it seems I was missing the concept of bookmarkable page. Adding the following line into my Application.init() solved it for that page. mountBookmarkablePage( /HomePage, HomePage.class ); I guess the default wicket config is to only allow direct URL access via the / homepage and everything

How to make sure that you always have a CompoundPropertyModel

2010-05-28 Thread Erwin Bolwidt
Hi, I try to make my components re-usable whenever this is feasible. A problem that I'm running into is this: A Component itself decides that it needs a CompoundPropertyModel, because it wants to use the automatic property model lookups feature when a model is omitted on a child component.

Wille's Wicket vs. Rails Smackdown

2010-05-28 Thread Cemal Bayramoglu
Wille Faler has had a look at Rails and written up his Wicket vs. Rails Smackdown [1]. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://blog.recursivity.com/post/638788745/wicket-vs-rails-smackdown

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
Is @SpringBean used *by* the framework? No, not the core. A thread local won't work for what we're trying to do, hence the long, drawn-out discussion thread(s) we've been having recently. IMHO the discussion threads have not shown a conclusive use case for an ITL. Some folks like to use

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread James Carman
On Fri, May 28, 2010 at 9:05 AM, Sven Meier s...@meiers.net wrote: IMHO the discussion threads have not shown a conclusive use case for an ITL. What I'm proposing is an alternative to the ITL (which we've shown is quite ineffective). Well, this is a strong argument for improved support of

Re: Very interesting question... my boss complain about one of my implementations...

2010-05-28 Thread nino martinez wael
Hmm Eelco, im puzling with a guice quartz integration as well. it's here and not at all complete (along with an ehcache integration) : http://code.google.com/p/slurry/ 2010/5/28 Eelco Hillenius eelco.hillen...@gmail.com: I had a terrible day because one of my bosses complain about how I have

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
Here is the link of the component implementing this use case: http://pastebin.com/0GwGXkmr The usage is pretty simple: new ProcessExecutorPanel(associatedFilesMigration) { @Override protected void execute() { //a business logic method which takes a lot time to

Guice 2 / WarpPersist Wicket

2010-05-28 Thread nino martinez wael
Hi Guys I wanted to try out the now working wicket injector holder for my webapp. But I keep getting: java.lang.IllegalStateException: EntityManager is closed at org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java:66) at

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
OK, no ITL, got it. Then, you can use that Runnable anywhere to run a task with all of the appropriate Wickety goodness set up for you (except for the request cycle of course because you're not executing within a request cycle). But what are the use cases for *this* proposal (beside mail

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Fernando Wermus
I am sorry but I don't knwo what ITL is? Could you explained a little? On Fri, May 28, 2010 at 10:33 AM, Sven Meier s...@meiers.net wrote: OK, no ITL, got it. Then, you can use that Runnable anywhere to run a task with all of the appropriate Wickety goodness set up for you (except for the

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
ITL = InheritableThreadLocal Here is the link of the component implementing this use case: http://pastebin.com/0GwGXkmr The usage is pretty simple: new ProcessExecutorPanel(associatedFilesMigration) { @Override protected void execute() { //a business logic method

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread James Carman
On Fri, May 28, 2010 at 9:35 AM, Fernando Wermus fernando.wer...@gmail.com wrote: I am sorry but I don't knwo what ITL is? Could you explained a little? InheritableThreadLocal variables. Sorry, we've just had a rather lengthy conversation over the past week about them, so I guess I figured

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread James Carman
On Fri, May 28, 2010 at 9:33 AM, Sven Meier s...@meiers.net wrote: But what are the use cases for *this* proposal (beside mail generation)? Probably whatever they were that caused the team to implement the ITL approach in the first place. My suggestion is an alternative to the ITL approach to

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Emond Papegaaij
On Friday 28 May 2010 15:33:16 Sven Meier wrote: OK, no ITL, got it. Then, you can use that Runnable anywhere to run a task with all of the appropriate Wickety goodness set up for you (except for the request cycle of course because you're not executing within a request cycle). But what

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
Why so much trouble inside your UI layer? Normally Wicket components are single-threaded, but with your solution you may introduce race conditions. Move the ExecutorService into your service layer: http://pastebin.com/NN58fiZx new ProcessExecutorPanel(associatedFilesMigration) {

default form processing when form submitted

2010-05-28 Thread dellik2004
Hi, I have form which contains group of radio buttons input fields, this form contains some fields are mandatory custom validations, when i submit this form with wrong data it validates and it comes with the error messages this is normal, but it also clears the input fields .. Could you

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
The problem is that injectedSpringBean won't work because it needs Application :)... Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PROPOSAL-Application-runAs-Method-tp2230030p2234639.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
Please take another look on http://pastebin.com/NN58fiZx - it will work :). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PROPOSAL-Application-runAs-Method-tp2230030p2234652.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
The problem is not with the ProcessExecutorPanel component.. but with the way you execute it: because the client needs a reference to injectedSpringBean which cannot be resolved unless it is invoked from within a thread which can access Application, because @SpringBean needs it. -- View this

How to save binary files?

2010-05-28 Thread Alex Zeit
Dear All, I am a bit confused where the error is: Is it Ubuntu Tomcat configuration or there is a specific approach to save files from Wicket. My Application generates several binary files. After files generated I want to pack them in zip archive and allow user to download them. Is it possible to

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
But in my example start() *is* invoked on the request thread, thus the Wicket application is available. Please take another look on http://pastebin.com/NN58fiZx . -- View this message in context:

Re: How to save binary files?

2010-05-28 Thread Edward Zarecor
This looks like an issue with your Java installation, which you could verify with a simple standalone test, e.g., public static void main(String[] args) { // create file as in Wicket.. } Ed. On Fri, May 28, 2010 at 11:12 AM, Alex Zeit zeita...@googlemail.com wrote: Dear All, I am a bit

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread James Carman
So, don't use the feature. If yours works, then fine. Some folks are doing things asynchronously where they need the Application in place. On Fri, May 28, 2010 at 11:31 AM, Sven Meier s...@meiers.net wrote: But in my example start() *is* invoked on the request thread, thus the Wicket

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
I'm still spinning my wheels on this one. Let me try to explain better.. On the page I have @Inject DAOFactory @Inject MyService On the DAOFactory I have @Inject DAO1 @Inject DAO2 etc... On MyService I have @Inject DAO1 In my module I have bind(MyService.class).toInstance(new

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Douglas Ferguson
What is the service layer that you speak of? Is this built into wicket? D/ On May 28, 2010, at 9:06 AM, Sven Meier wrote: Why so much trouble inside your UI layer? Normally Wicket components are single-threaded, but with your solution you may introduce race conditions. Move the

date picker calendar shown on text field clicked

2010-05-28 Thread Vytautas Čivilis
Hi. It would be great, if you'd consider including following code to make TextField, that is assigned to date picker, aware of date picker itself. So, when TextField is clicked, picker calendar would be displayed. Implement it is very easy: in wicket-date.js: add some configuration property,

Re: using injected services in a child thread

2010-05-28 Thread James Carman
Perhaps you would be interested in the other threads that have been going on where we discuss InheritableThreadLocal. In there Jeremy gave a good solution that would fix what you're seeing. Basically, you use the beforeExecute()/afterExecute() methods to set/clear the Application's ThreadLocal

[wicketstuff-core] trunk is now 1.4.10-SNAPSHOT and branches are in place to allow subsequent releases per wicket release

2010-05-28 Thread Michael O'Cleirigh
Hello, Based on the feedback I received on when to cut the 1.4.8 and 1.4.9 releases I have decided to perform them now versus later. I have created branches for each wicket version starting from 1.4.7 through 1.4.9. 1.4.7 line :

Re: custom html page

2010-05-28 Thread msalman
Martin, Thanks for your response. I did try ((CastToYourSession) Session.get()) and that part works. I wanted to do something as following: public class MyOwnStreamLocator extends ResourceStreamLocator { //protected protected App app;

Re: [wicketstuff-core] trunk is now 1.4.10-SNAPSHOT and branches are in place to allow subsequent releases per wicket release

2010-05-28 Thread nino martinez wael
Great :) 2010/5/28 Michael O'Cleirigh michael.ocleir...@rivulet.ca: Hello, Based on the feedback I received on when to cut the 1.4.8 and 1.4.9 releases I have decided to perform them now versus later. I have created branches for each wicket version starting from 1.4.7 through 1.4.9.

Re: custom html page

2010-05-28 Thread Martin Makundi
Hmm.. I wouldn't use string constants like that... use Class.getName() instead. ** Martin 2010/5/28 msalman mohammad_sal...@yahoo.com: Martin, Thanks for your response. I did try ((CastToYourSession) Session.get()) and that part works.  I wanted to do something as following: public

Re: Creating and zipping binary files for download

2010-05-28 Thread Jeremy Thomerson
On Fri, May 28, 2010 at 4:46 AM, Alex Zeit zeita...@googlemail.com wrote: Dear All, I would like to create some binary files, zip them and start download in one step. I started with the functionality to create files depending on form input: form.add(new Button(button1, new

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
Yes, I see now. Thanks! The only drawback of this approach is that the client code is responsible for creating the Future. The initial purpose was to hide the implementation details related to thread creation. Alex -- View this message in context:

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
http://en.wikipedia.org/wiki/Multitier_architecture On 05/28/2010 06:04 PM, Douglas Ferguson wrote: What is the service layer that you speak of? Is this built into wicket? D/ On May 28, 2010, at 9:06 AM, Sven Meier wrote: Why so much trouble inside your UI layer? Normally Wicket

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
The details of thread creation are hidden from your Wicket class - IMHO this is a good thing. Sven On 05/28/2010 07:08 PM, Alex Objelean wrote: Yes, I see now. Thanks! The only drawback of this approach is that the client code is responsible for creating the Future. The initial purpose was to

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
asynchronously where they need the Application in place As I've written I still don't see a reason why they need the Application at all. Sven On 05/28/2010 05:50 PM, James Carman wrote: So, don't use the feature. If yours works, then fine. Some folks are doing things asynchronously

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
I've been following the thread to some degree, but I missed that. Is there a code example somewhere? D/ On May 28, 2010, at 11:34 AM, James Carman wrote: Perhaps you would be interested in the other threads that have been going on where we discuss InheritableThreadLocal. In there Jeremy

Re: default form processing when form submitted

2010-05-28 Thread Jeremy Thomerson
On Fri, May 28, 2010 at 9:05 AM, dellik2004 dellik2...@gmail.com wrote: Hi, I have form which contains group of radio buttons input fields, this form contains some fields are mandatory custom validations, when i submit this form with wrong data it validates and it comes with the error

Re: date picker calendar shown on text field clicked

2010-05-28 Thread Jeremy Thomerson
2010/5/28 Vytautas Čivilis cvl...@gmail.com Hi. It would be great, if you'd consider including following code to make TextField, that is assigned to date picker, aware of date picker itself. So, when TextField is clicked, picker calendar would be displayed. Implement it is very easy:

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
I found this: http://pastebin.com/NN58fiZx But I don't see anything that would tied the Application to the child thread. It is just a button that would exec a thread for you. D/ On May 28, 2010, at 1:06 PM, Douglas Ferguson wrote: I've been following the thread to some degree, but I missed

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Douglas Ferguson
I know all this, I was just hoping you would explain what you were trying to say. On May 28, 2010, at 12:18 PM, Sven Meier wrote: http://en.wikipedia.org/wiki/Multitier_architecture On 05/28/2010 06:04 PM, Douglas Ferguson wrote: What is the service layer that you speak of? Is this

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
Even if I got that to work, it doesn't explain why some things using @Inject blow up and others don't. There has to be a reason for this. Under what circumstances to an injected object need a reference to the Application? D/ On May 28, 2010, at 11:34 AM, James Carman wrote: Perhaps you

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread Edward Zarecor
If it's of any use, I put together a very, very simple 2D Quickstart for my own edification. I've deployed, exercised and un-deployed builds of application using Wicket 1.4.8 and 1.4.9 to Weblogic 10. In the former case I do not see, via YourKit, the Java2D Disposer thread holding a reference to

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread Alex Objelean
I had the same results with tomcat 6... We could try to see what happens with other web servers with combination of different jdk versions. Until now, there was no prove of the memory leak. -- View this message in context:

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
The link you have found was a workaround to avoid the problem. You can see the actual problem in this example: http://pastebin.com/0GwGXkmr The usage example: @SpringBean private Service service; new ProcessExecutorPanel(associatedFilesMigration) { @Override protected void

Re: Basic page routing

2010-05-28 Thread Iain Reddick
mountBookmarkablePage is a convenience method for mounting the most common URL form. Look here for more info: https://cwiki.apache.org/WICKET/url-coding-strategies.html You can also create your and mount your own URL decoding strategies. - Original Message - From: Mike Quilleash

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread James Carman
As I said when I determined the same thing (I attached a quickstart to the JIRA issue), the fact that it doesn't leak isn't really the biggest negative, IMHO. The fact that it doesn't work for the desired usecase (thread pools) is a huge negative and a reason it should be backed out (which it has

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread Alex Objelean
I'm not insisting on bringing it back, but I don't understand on what is based your conclusion that it doesn't work for the desired use-case (thread pools) ? Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2235138.html

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
What exactly is the solution? I've read the code and it looks like the Application would still not be available in the runner thread. D/ On May 28, 2010, at 3:00 PM, Alex Objelean wrote: The link you have found was a workaround to avoid the problem. You can see the actual problem in this

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
This worked for me.. @Override public void run() {

Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread James Carman
The ITL's value is copied when a thread is created, so it will either: a. Never get copied to the pooled threads. b. Get copied one time into the pooled threads (the pooled thread is started during a request thread for some reason). If there are multiple Wicket applications running in the same

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
There are two proposed solutions: 1) use the beforeExecute()/afterExecute() methods to set/clear the Application's ThreadLocal variable so that it's available during the execution of the task. 2) Let the client code to create the Future. Though it is a good approach, I don't like the fact that

Re: using injected services in a child thread

2010-05-28 Thread James Carman
That's what the other one did, but it used the callback methods to do the set/unset. This way, you don't have to clutter up each task's code. On Fri, May 28, 2010 at 4:23 PM, Douglas Ferguson doug...@douglasferguson.us wrote: This worked for me..                                              

Re: using injected services in a child thread

2010-05-28 Thread James Carman
On Fri, May 28, 2010 at 4:25 PM, Alex Objelean alex.objel...@gmail.com wrote: 2) Let the client code to create the Future. Though it is a good approach, I don't like the fact that the client is responsible for implementing such details each time it overrides the execute() method. It would be

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
Yes, I agree. I do prefer this solution too. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-injected-services-in-a-child-thread-tp2233924p2235166.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
No, it is about Sven Maier's solution: http://pastebin.com/NN58fiZx -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-injected-services-in-a-child-thread-tp2233924p2235168.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
Sorry, I didn't want to bore you with this whole pattern stuff (which you probably know too): - single responsibility, - facade, - object (thread) pool, - active object, - DI, - yada yada yada. I fail to see how the original implementation of ProcessExecutorPanel confirms to any of these

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
What are you agreeing with? I can't see the thread... On May 28, 2010, at 3:30 PM, Alex Objelean wrote: Yes, I agree. I do prefer this solution too. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-injected-services-in-a-child-thread-tp2233924p2235166.html

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
I'm looking at that URL and I don't see anything in either of those snipets of code that would solve the problem. Can you explain? On May 28, 2010, at 3:34 PM, Alex Objelean wrote: No, it is about Sven Maier's solution: http://pastebin.com/NN58fiZx -- View this message in context:

Re: date picker calendar shown on text field clicked

2010-05-28 Thread Vytautas Čivilis
https://issues.apache.org/jira/browse/WICKET-2899 On Fri, May 28, 2010 at 9:18 PM, Jeremy Thomerson jer...@wickettraining.com wrote: 2010/5/28 Vytautas Čivilis cvl...@gmail.com Hi. It would be great, if you'd consider including following code to make TextField, that is assigned to

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
The idea is that with the first solution you don't have to clutter up each task's code: 1) use the beforeExecute()/afterExecute() methods to set/clear the Application's ThreadLocal variable so that it's available during the execution of the task. -- View this message in context:

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
Is there an example of this that somebody could link me to? On May 28, 2010, at 3:56 PM, Alex Objelean wrote: The idea is that with the first solution you don't have to clutter up each task's code: 1) use the beforeExecute()/afterExecute() methods to set/clear the Application's

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Alex Objelean
I don't understand why do you think that a component responsible for creating a thread and check its status does too much, is it really that complicated?? And also, pardon me, but what mess are you talking about? -- View this message in context:

Rich Text Editors and Wicket

2010-05-28 Thread Chris Colman
Does anyone have experience with using Rich Text Editors in Wicket? Javascript editors I am aware of are: FckEditor CkEditor TinyMCE Anyone integrated these with wicket? Any advice or opinions? - To unsubscribe, e-mail:

Re: DropDownChoice problem

2010-05-28 Thread Matthieu
Hi, thanks for you input! It's not a html problem, when i copy/paste the english html code (who is working) into my _fr html file, i get the same error... yes, i ommited /select in this mail but not in my code :) and i write my mails in html format so i have to break the html code with \ --

Re: Rich Text Editors and Wicket

2010-05-28 Thread Paul Szulc
The one I know is from Visural project http://visural-wicket-examples.appspot.com/app/rich-text-editor It is already defined Wicket component On Fri, May 28, 2010 at 11:21 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Does anyone have experience with using Rich Text Editors in Wicket?

Re: using injected services in a child thread

2010-05-28 Thread Alex Objelean
Yes, the link is here: http://pastebin.com/TyDrCCCr Basically, you have to replace: final ExecutorService service = Executors.newSingleThreadScheduledExecutor(); with: final Application app = Application.get(); final ExecutorService service = new ScheduledThreadPoolExecutor(1) {

Re: using injected services in a child thread

2010-05-28 Thread Douglas Ferguson
Going back to my original example.. With the Application.set() trick I am able to keep it from blow up, but why would MyService call Application.get() (and thus blow up). When the DAOs don't. They are both @Inject and they are both setup in my guice module as singleton D/ On May 28, 2010, at

Re: DropDownChoice problem

2010-05-28 Thread James Carman
Make sure it's using the markup files you think it is. Turn on the logging for the markup finder thingy. On May 28, 2010 5:23 PM, Matthieu m_fradco...@hotmail.com wrote: Hi, thanks for you input! It's not a html problem, when i copy/paste the english html code (who is working) into my _fr

Re: Rich Text Editors and Wicket

2010-05-28 Thread M. Hammer
Quoting Chris Colman chr...@stepaheadsoftware.com: Does anyone have experience with using Rich Text Editors in Wicket? I've used the TinyMCE integration from Wicketstuff (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-tinymce), but then ended up using YUI Editor

RE: Rich Text Editors and Wicket

2010-05-28 Thread Chris Colman
Visural looks nice but I can't see any tool bar icon for adding images. The users of my site need to be able to add images, tables etc., Currently we use FckEditor with an Echo3 component but I want users to be able to do rich text editing in the Wicket pages of our app. -Original

Updating Form Fields

2010-05-28 Thread Benedikt Schlegel
Hello wicket ppl, im pretty new in wicket and im facing a problem which seems to me like im missing some basic understanding here. I have a form which is supposed to fill a filter object. So i add some TextFields with property models, based on that object, to the form (actually to a

RE: Rich Text Editors and Wicket

2010-05-28 Thread Chris Colman
YUI sure looks better than Visural. Unfortunately it still doesn't have the nice right click/context menu that FckEditor has - have to double click on an image to get to its properties form. It also doesn't have all the powerful advanced styling options that FckEditor has - well not in the

Re: Updating Form Fields

2010-05-28 Thread Benedikt Schlegel
For sure it has to be: filterContainer.add(new TextFieldFilterObject(filterFoo, new PropertyModelFilterObject(filter, foo))); filterContainer.add(new TextFieldFilterObject(filterBar, new PropertyModelFilterObject(filter, bar))); [Beta Systems Disclaimer/Impressum:

Re: Updating Form Fields

2010-05-28 Thread Sven Meier
Hi, your textfields are bound to the initial filter object. When you change this member later on, the models will still look on the initial filter object. Use the following: filterContainer.add(new TextFieldFilterObject(filterFoo, new PropertyModelPersonFilter(this, filter.foo))); ...

Re: Updating Form Fields

2010-05-28 Thread Jeremy Thomerson
On Fri, May 28, 2010 at 5:06 PM, Benedikt Schlegel benedikt.schle...@betasystems.com wrote: Hello wicket ppl, im pretty new in wicket and im facing a problem which seems to me like im missing some basic understanding here. I have a form which is supposed to fill a filter object. So i add

Re: Updating Form Fields

2010-05-28 Thread Jeremy Thomerson
On Fri, May 28, 2010 at 5:21 PM, Sven Meier s...@meiers.net wrote: filterContainer.add(new TextFieldFilterObject(filterFoo, new PropertyModelPersonFilter(this, filter.foo))); I should have said option three is this one from Sven. -- Jeremy Thomerson http://www.wickettraining.com

Panel not refreshed from ModalWindow via Ajax Button

2010-05-28 Thread jammyjohn
Hi, Could any one please help me fixing this panel refresh issue. first time the panel is refreshed. and that too with (setResponsePage() as workaround). Afterwards it is not getting refreshed at all. Always retains the previous value... 1.I have an Ajaxbutton, on click of it- opens a

[Vote] release wicketstuff-core 1.4.8 and 1.4.9

2010-05-28 Thread Michael O'Cleirigh
Hello, I've created a new template for wicketstuff-core releases. After every wicket release we will create a branch from trunk that locks in the wicket version and cut a matching release like wicketstuff-core-1.4.9. At a certain point in time (either a window of time to be determined) or

upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-28 Thread Sam Zilverberg
Hi, My application uses wicket 1.4.3, spring hibernate. In the past I've got @SpringBean working in servlets by using 'InjectorHolder.getInjector().inject(this);' in their init method. I've updated my wicket version to 1.4.4 (or any other newer version) and fixed a compilation error in wicket

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-28 Thread Igor Vaynberg
you can use spring's servlet support... -igor On Fri, May 28, 2010 at 5:22 PM, Sam Zilverberg samzilverb...@gmail.com wrote: Hi, My application uses wicket 1.4.3, spring hibernate. In the past I've got @SpringBean working in servlets by using 'InjectorHolder.getInjector().inject(this);' in

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-28 Thread Sam Zilverberg
Good idea. Using: ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); someDao = (IDAOentity) context.getBean(someDao); Works. However I was hoping to continue using @SpringBean somehow... -Sam

  1   2   >