Re: Run a standalone wicket app

2011-03-08 Thread nino martinez wael
you could also take a look at winstone: http://winstone.sourceforge.net/ 2011/3/7 Mauro Ciancio maurocian...@gmail.com Hello all, I'd like to create a jar with a wicket application inside that can be run from the command line as it were a desktop application. I'm using maven and jetty and it

Page reloading notification

2011-03-08 Thread Milan Křápek
Hi I have system based on wicket 1.3.2 (I know it is very old but it is still working good for me). Sometimes when I submit just local changes on page and operation with database take long time, It would be nice to show some notification that the request is processing and disable the whole page

Re: visural-wicket running on wicket 1.5?

2011-03-08 Thread Richard Nichols
Hi Nino, The version in the public respository 1.5 branch is still a direct copy of 1.4 - sorry I haven't commited the WIP 1.5 changes yet. I'll aim to get the WIP committed in this week. cheers, Richard. On Mon, Mar 7, 2011 at 6:47 PM, nino martinez wael nino.martinez.w...@gmail.com wrote:

shift / ctrl / alt keys + ajax

2011-03-08 Thread Antoine van Wel
Hi, when clicking an (ajax)link, or a checkbox, etc, on the server side I'd like to know whether the shift, ctrl or alt keys are pressed at the same time. So I figure I need to fetch via JavaScript and adapt the ajax call with some extra parameters. Any thoughts how to do that in a nice clean

[VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Maarten Billemont
Dear fellow wicket users, Following is a call for your opinion and a vote on how Wicket should behave with regards to post-constructing components in 1.5. The final solution that is chosen will affect the way you construct your components and your component hierarchies. First, some

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Maarten Billemont
Perhaps one question: Why is onInitialize invoked immediately after a component is added to a page? Page#componentAdded(final Component component) (line 1603 in 1.4.15). Is it really necessary to initialize the page here, and if so, why? The only possibly useful thing I can see it doing is

Re: preferred php framework by wicketeers...

2011-03-08 Thread Martin Makundi
Hmm.. I would personally stay as close as possible from non statically typed languages ;) Ofcourse it depends on what you are making, if it is worth making and so forth ;) ** Martin 2011/3/8 Antoine van Wel antoine.van@gmail.com: Since you can't always have what you want.. Is there any

Re: preferred php framework by wicketeers...

2011-03-08 Thread Martin Makundi
Sorry..not close but far...maybe I meant keep enemies closer ;) ** Martin 2011/3/8 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm.. I would personally stay as close as possible from non statically typed languages ;) Ofcourse it depends on what you are making, if it is worth making

Re: preferred php framework by wicketeers...

2011-03-08 Thread Robert Dahlström
+1 for Symfony, probably as good as you can get for PHP. But no, it won't work like wicket. Afaik there are no stateful PHP frameworks out there (but I could be wrong). /Robert On 03/08/2011 01:30 PM, Martin Makundi wrote: Sorry..not close but far...maybe I meant keep enemies closer ;) **

Re: Attribute Inheritance or Copying?

2011-03-08 Thread Yves-Marie LAINÉ
Hi, I quickly wrote this, it seems to work.. But, does anyone know if is there a better (wicket) way to do it ? Regards, Yves-Marie class CopyAttributesBehavior extends AbstractBehavior { private static final long serialVersionUID = 1L; private IValueMap attributes;

Re: preferred php framework by wicketeers...

2011-03-08 Thread Martijn Dashorst
2011/3/8 Josh Kamau joshnet2...@gmail.com: I dont know of any. If you prefer scripting languages, there is a scala+wicket integration. Just google it if you are interested. I would not call scala a scripting language. It is a statically typed, compiled JVM language. It's a scripting language in

Re: preferred php framework by wicketeers...

2011-03-08 Thread Christian Grobmeier
Sadly reality is that PHP is more widely adopted. Apache comes almost by default with PHP. So I was wondering, does anything come close to Wicket, to ease the pain.. Or to have a stronger case for Wicket in discussions. Do you know Zeta Components which entered the apache incubator for a

Re: preferred php framework by wicketeers...

2011-03-08 Thread shetc
I don't think you are going to get all that from a PHP-based framework. I have used CakePHP, which is sorta Rails-like, for production projects. It's pretty nifty and has good community support. -- View this message in context:

Re: How to stop concurrent logins?

2011-03-08 Thread shetc
Sorry Igor, I think I'm missing something obvious here. Won't the GUID from the cookie and session always match as the cookie was generated from the equivalent session? -- View this message in context:

Re: Page reloading notification

2011-03-08 Thread Zoltán Nagy
Hi! If you use ajax, you can register js functions into wicket ajax js framework to show and hide notification and mask off layer: Wicket.Ajax.registerPreCallHandler(showBusysign); Wicket.Ajax.registerPostCallHandler(hideBusysign); Wicket.Ajax.registerFailureHandler(hideBusysign);

Re: preferred php framework by wicketeers...

2011-03-08 Thread Frank van Lankvelt
On Tue, Mar 8, 2011 at 1:21 PM, Antoine van Wel antoine.van@gmail.comwrote: Since you can't always have what you want.. Is there any PHP framework out there which comes even close to Wicket; component based, strict separation between HTML and programming, stateful, out-of-the-box Ajax

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Jim Pinkham
Interesting problem. It helped me visualize the issue when I tried to suggest: myPage() { add(new Thing(this,...)); // 'this' doesn't exist yet } I think building component hierarchy from constructors feels natural and it's going to be a hard sell to change to support this use case where

DataProvider calling a Service/Dao that requires a domain object

2011-03-08 Thread fernandospr
Hi, I have a DataProvider that implements IDataProvider, and for example in the size method I need to call the service as follows: public int size() { return service.countAllByDomainObjectY(domainObjectY); } DomainObjectX contains a manytoone relationship with DomainObjectY. So,

Re: DataProvider calling a Service/Dao that requires a domain object

2011-03-08 Thread Michael O'Cleirigh
Hi, Pass an IModelDomainObjectmodel into your dataprovider instead of the DomainObject itself. e.g. class MyPanel private final IModelDomainObjectmodel; public MyPanel (String id) { super (id); model = new LoadableDetachableModel() { protected DomainObject

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Pedro Santos
I vote for solution 3: postpone the onInitialize call, possible to the first Component#configure execution. Then the problem of initialization code being executed for not fully constructed components go away. If it is really important to have a callback method for path cognizant components, than

Storing and loading escaped special characters.

2011-03-08 Thread Henrique Boregio
Hi, quick question. Wicket automatically escapes special characters so when I type in: This is my house. What gets stored in my database is: This is quot;myquot; house When I try to display it using a Label, like: new Label(label, DAO.getValue(id)); It does not convert the quot; to quotes. Is

Re: How to stop concurrent logins?

2011-03-08 Thread Igor Vaynberg
wont the user have two or more sessions if they are logged in concurrently? -igor On Tue, Mar 8, 2011 at 5:52 AM, shetc sh...@bellsouth.net wrote: Sorry Igor, I think I'm missing something obvious here. Won't the GUID from the cookie and session always match as the cookie was generated from

Re: Storing and loading escaped special characters.

2011-03-08 Thread Igor Vaynberg
call setescapemodelstrings(false) on the textfields to disable escaping. -igor On Tue, Mar 8, 2011 at 7:48 AM, Henrique Boregio hbore...@gmail.com wrote: Hi, quick question. Wicket automatically escapes special characters so when I type in: This is my house. What gets stored in my database

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Hans Lesmeister 2
+1 for making Page.onInitialize() non-final. Since 1.4.12 we have migrated a lot of code moving construction of the component hierarchies to onInitialize. We are really very happy with the way it is now in 1.4. +1 for clear documentation/Javadoc explaining proper use of onInitialize. (Developers

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Maarten Billemont
On 08 Mar 2011, at 16:39, Pedro Santos wrote: I vote for solution 3: postpone the onInitialize call, possible to the first Component#configure execution. Then the problem of initialization code being executed for not fully constructed components go away. I actually also thought of that,

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Maarten Billemont
On 08 Mar 2011, at 17:38, Hans Lesmeister 2 wrote: +1 for making Page.onInitialize() non-final. Since 1.4.12 we have migrated a lot of code moving construction of the component hierarchies to onInitialize. We are really very happy with the way it is now in 1.4. -1 for throwing an

Re: DataProvider calling a Service/Dao that requires a domain object

2011-03-08 Thread fernandospr
Thanks Michael for your quick response. Let me know if I got it correctly: I created the following generic model: public class GenericDetachableModel extends LoadableDetachableModel { private final long id; private final Service service; public

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Carl-Eric Menzel
On Tue, 8 Mar 2011 17:43:29 +0100 Maarten Billemont lhun...@gmail.com wrote: On 08 Mar 2011, at 16:39, Pedro Santos wrote: I vote for solution 3: postpone the onInitialize call, possible to the first Component#configure execution. Then the problem of initialization code being executed

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Carl-Eric Menzel
On Tue, 8 Mar 2011 17:46:26 +0100 Maarten Billemont lhun...@gmail.com wrote: This is a valid vote if we can come up with a way of not having random failure side-effects from mixing the two (which is the whole reason the the issue exists in the first place), without a final onInitialize and an

RE: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread GOODWIN, MATTHEW (ATTCORP)
+1 for clear documentation/Javadoc explaining proper use of onInitialize. Does this exist somewhere? As someone new to Wicket I'm trying to learn as fast as I can and a lot of examples (almost exclusively) I see out there show the add(..) from within the constructor - which is apparently an

Re: visural-wicket running on wicket 1.5?

2011-03-08 Thread nino martinez wael
ok great.. I'll probably take at look at it monday then.. 2011/3/8 Richard Nichols r...@visural.com Hi Nino, The version in the public respository 1.5 branch is still a direct copy of 1.4 - sorry I haven't commited the WIP 1.5 changes yet. I'll aim to get the WIP committed in this week.

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Maarten Billemont
On 08 Mar 2011, at 17:54, Carl-Eric Menzel wrote: However, there are much better arguments than existing codebase for still allowing constructors. First, constructors are natural places to do stuff like that. Yes, they have limitations, and yes, PostConstruct exists for a reason, but that

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Martijn Dashorst
On Tue, Mar 8, 2011 at 6:03 PM, GOODWIN, MATTHEW (ATTCORP) mg0...@att.com wrote: +1 for clear documentation/Javadoc explaining proper use of onInitialize. Does this exist somewhere? As someone new to Wicket I'm trying to learn as fast as I can and a lot of examples (almost exclusively) I see

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Igor Vaynberg
On Tue, Mar 8, 2011 at 11:42 AM, Maarten Billemont lhun...@gmail.com wrote: On 08 Mar 2011, at 17:54, Carl-Eric Menzel wrote: However, there are much better arguments than existing codebase for still allowing constructors. First, constructors are natural places to do stuff like that. Yes,

Choice of Resource for my Image component

2011-03-08 Thread Ian Marshall
Hello, I have been a naughty boy; I designed my form without using a LoadableDetachableModel. Serves me right. I have now changed my page's domain object so that it is used in the form and the form's WebPage using a LoadableDetachableModel. So far so good, but I have a problem with my Image

Re: Run a standalone wicket app

2011-03-08 Thread Nitnatsnok
To create a runnable .war file with just a maven plugin I used this tool: http://simplericity.com/2009/11.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Run-a-standalone-wicket-app-tp3339521p3342507.html Sent from the Users forum mailing list archive at

Re: Run a standalone wicket app

2011-03-08 Thread Mauro Ciancio
Hello all! Nice replies, I really appreciate them. I liked the maven plugin, that was exactly what i was looking for. Winstone also looked like a good alternative. Thanks for the replies. Regards! On Tue, Mar 8, 2011 at 9:02 PM, Nitnatsnok bestan...@gmail.com wrote: To create a runnable .war

Re: visural-wicket running on wicket 1.5?

2011-03-08 Thread Richard Nichols
I've committed what appears to be a mostly working visural-wicket with 1.5 (rc2) compatibility. http://code.google.com/p/visural-wicket/source/browse/#svn%2Fbranches%2F1.5 If there are any issues found, please report them at http://code.google.com/p/visural-wicket/ cheers, Richard. On Wed, Mar

Not bookmarkable setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))

2011-03-08 Thread Alec Swan
Hello, I have a form which calls the following statement in its onSubmit() method: setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2)) NOTE: The MyPage construtor calls WebPage constructor as super(pageParameters) and then adds extraParam1 and extraParam2 to

Re: Not bookmarkable setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))

2011-03-08 Thread Igor Vaynberg
you cannot have a bookmarkable url for a page instance, only for a page class with parameters, so setResponsePage(MyPage.class, somePageParameters) will give you a bookmarkable url -igor On Tue, Mar 8, 2011 at 8:09 PM, Alec Swan alecs...@gmail.com wrote: Hello, I have a form which calls the

Re: shift / ctrl / alt keys + ajax

2011-03-08 Thread Richard Nichols
You can do this on the client side relatively easily. Just bind a javascript event handler to the onkeydown event in the browser. When these key(s) are depressed change a form input to indicate which keys are pressed. When your Ajax event submits, you can check the model of the component the

Re: visural-wicket running on wicket 1.5?

2011-03-08 Thread nino martinez wael
Thanks. I'll give feedback if needed On Mar 9, 2011 4:22 AM, Richard Nichols r...@visural.com wrote: I've committed what appears to be a mostly working visural-wicket with 1.5 (rc2) compatibility. http://code.google.com/p/visural-wicket/source/browse/#svn%2Fbranches%2F1.5 If there are any

Re: Not bookmarkable setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))

2011-03-08 Thread Martijn Dashorst
Wicket only knows how to construct bookmarkable pages when they have either a default constructor or a constructor taking *only* pageparameters. Any other constructor is outside the realm of wicket's capabilities and responsibility. In your case, how could Wicket construct the page when it is

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-08 Thread Maarten Billemont
Just like EJBs, you should be careful about how much interaction you do beyond your object's scope within the constructor. Your component doesn't have a hierarchy, getPage() cannot be accessed, none of your subclass constructors have been invoked and therefore your instance is not

Models doco page typo?

2011-03-08 Thread Coleman, Chris
At the bottom of this page: https://cwiki.apache.org/WICKET/working-with-wicket-models.html it says that the IModel interface was simplified in Wicket 2.0... should that really be Wicket 1.2? Never heard of Wicket 2 and I can see the 'new' style interface in Javadocs for 1.5.

CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-08 Thread Coleman, Chris
I noticed that CompoundPropertyModel is deprecated in 1.5 but I can't find anything relating to this on the Migration to Wicket 1.5 page. What is meant to be used instead of this class? DISCLAIMER:--- This e-mail