Re: [Wicket-user] alternatives to set locale without using session?

2007-05-04 Thread ywtsang
Sorry that I am new to Wicket and may not know what the greatest values of wicket are supposed to be. We are evaluating different web frameworks right now and Wicket is one of them. One good and attracting point of Wicket to us is that it can separate html/design and logic at a good way. The

Re: [Wicket-user] alternatives to set locale without using session?

2007-05-04 Thread Igor Vaynberg
1.3 is what i would look at, the current trunk in our svn. we just had a 1.3.0-beta release in apache incubator. 1.2.x doesnt have stateless support. there are numerous threads on this list that try to disprove the session is evil myth. so i would search the list for those first, before i made

Re: [Wicket-user] alternatives to set locale without using session?

2007-05-04 Thread Johan Compagner
in 1.3 you still can use getSession() and set the locale But then you need to set it everytime because the session is created everytime if the pages are all stateless. So then you still can work with the normal Wicket session object Creating a wicket session object doesn't mean you create a http

Re: [Wicket-user] Good Tutorial on core wicket

2007-05-04 Thread Timo Rantalaiho
Also remember to have the wicket source code attached to your IDE (easy with e.g. mvn -Declipse.downloadSources=true eclipse:eclipse or idea:idea), and to have wicket-examples project open in another IDE window. With this + working on a real live project and with a little help from my friends and

Re: [Wicket-user] Good Tutorial on core wicket

2007-05-04 Thread Gwyn Evans
It's quite tricky as to know how to best do this, although there's certainly scope for people to keep track of threads on the mailing list and create articles or update for the Wiki from them. Anyone should be able to edit most pages on the wiki, though a signup is required. /Gwyn On Thursday,

Re: [Wicket-user] alternatives to set locale without using session?

2007-05-04 Thread Eelco Hillenius
in 1.3 you still can use getSession() and set the locale But then you need to set it everytime because the session is created everytime if the pages are all stateless. So then you still can work with the normal Wicket session object Creating a wicket session object doesn't mean you create a

Re: [Wicket-user] TinyMCE for wicket 1.3 not a panel???

2007-05-04 Thread Iulian Costan
yes, quite outdated, it references the old package structure, i'll take care of it. /syca On 5/3/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hey all, I am trying to get a TinyMCEPanel jar for Wicket 1.3. I've gotten the tinymce contrib. from the wicketstuff trunk, and attempted to compile

[Wicket-user] Updating textfield model in ajax onchange

2007-05-04 Thread Tauren Mills
I have a text field called 'dateField' on a form that has an associated DatePicker control. When someone selects a date in the picker, I want to do an ajax call to refresh another component on the page. I need the dateField model to be updated in the ajax call. I originally assumed the model

[Wicket-user] query regarding AjaxSubmitLink

2007-05-04 Thread Anupama pullela
Hi, In my wicket page I have a AjaxSubmitLink(which is a a link in html template) beside the textfield in a form. And when I press enter after entering data in textfield, the form is getting submitted but the onSubmit() function of AjaxSubmitLink is not getting callled. when I debug in to the

Re: [Wicket-user] Updating textfield model in ajax onchange

2007-05-04 Thread Igor Vaynberg
see ajaxformcomponentupdatingbehavior, that will update the model for you -igor On 5/4/07, Tauren Mills [EMAIL PROTECTED] wrote: I have a text field called 'dateField' on a form that has an associated DatePicker control. When someone selects a date in the picker, I want to do an ajax call

Re: [Wicket-user] query regarding AjaxSubmitLink

2007-05-04 Thread Igor Vaynberg
this is a general html form thing. when you have a single textfield and you press enter, the form is submitted. sometimes it happens even when you have more then one textfield. to fix it you need to capture the enter keypress on the field and return false so the event is discarded. -igor On

Re: [Wicket-user] DatePicker for a label

2007-05-04 Thread Dragos Bobes
Thanks Igor, I had already tried that route but I ran into problems finding a way to capture the select event. But after you confirmed that this is the route to go, I discovered 'appendToInit' in DatePicker that allowed me to insert my custom javascript. Cheers, Dragos Igor Vaynberg wrote:

Re: [Wicket-user] MouseOver Effect on DataTable

2007-05-04 Thread JulianS
Note to future generations (that is, those who only care about FireFox and IE7+): just add tr:hover to your CSS, for example: tr.even { background-color: #d6ddee; } tr.even:hover { background-color: #8fa4d1; } tr.odd { } tr.odd:hover { background-color: #8fa4d1; } But

Re: [Wicket-user] How to remove a Behaviour?

2007-05-04 Thread Ivo van Dongen
Great, thanks! Ivo On 5/4/07, Eelco Hillenius [EMAIL PROTECTED] wrote: See https://issues.apache.org/jira/browse/WICKET-529 Fine by me too. Eelco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: fine by me -igor On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote: i think we

Re: [Wicket-user] How to remove a Behaviour?

2007-05-04 Thread Igor Vaynberg
notice there is also a new ibehavior.istemporary. read the javadoc, it might be what you want. -igor On 5/4/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Great, thanks! Ivo On 5/4/07, Eelco Hillenius [EMAIL PROTECTED] wrote: See https://issues.apache.org/jira/browse/WICKET-529 Fine by me

[Wicket-user] How may I access a Panel A from another Panel B (Ajax)?

2007-05-04 Thread Francisco Diaz Trepat - gmail
Hello, I have two panels, one that is mostly a form for login (user/pass +button) and the other panel is just a link (onClick==logou). Now I changed the button for the login form to an ajax button. Everythig works fine. The thing is that I had a code something like this in the logout panel.

Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?

2007-05-04 Thread Igor Vaynberg
or just keep a field class mypage extends webpage { private panel a; private panel b; public mypage() { a=new MyLoginPanel(...) { protected void onLogout(AjaxRequestTarget target) { target.add(b); target.add(a); } } b=new MyLogoutPanel(...); } -igor On 5/4/07,

Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?

2007-05-04 Thread Francisco Diaz Trepat - gmail
That looks about right, I'll tested right away. On 5/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: or just keep a field class mypage extends webpage { private panel a; private panel b; public mypage() { a=new MyLoginPanel(...) { protected void onLogout(AjaxRequestTarget target) {

Re: [Wicket-user] Using AJAX wicketSubmitFormById like a method call

2007-05-04 Thread James Renfro
Igor, I had a feeling that was the situation. I'll take a closer look at my code with that in mind and if I can come up with a clear follow up question, I'll post some relevant excerpts. Thanks very much for your help, James. Igor Vaynberg wrote: the short answer is: you cant do that.

Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?

2007-05-04 Thread James McLaughlin
Passing it in the constructor works, but you would have to call setOutputMarkupPlaceHolderTag(true) on the logout panel otherwise it won't be in the dom before the user logs in, and therefore can't be updated. This is also why toggling the css attribute with script client side won't work with

Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?

2007-05-04 Thread Gerolf Seitz
since you probably don't want to show the login form after a successful login, you could replace the login panel with the logout panel (and vice versa) this could look something like the following: // constructor of class LoginPanel public LoginPanel(final String id) { super(id);

Re: [Wicket-user] Using AJAX wicketSubmitFormById like a method call

2007-05-04 Thread James Renfro
So although clearly AJAX is supposed to be mostly asynchronous. it looks like the underlying XMLHttpRequest object _can_ be synchronous. If I modify wicket-ajax.js and set 'Wicket.Ajax.Request.async' to *false* -- suddenly my code works... i.e. I can code an AjaxFormSubmitBehavor.onSubmit so

Re: [Wicket-user] Using AJAX wicketSubmitFormById like a method call

2007-05-04 Thread Igor Vaynberg
if you change wicket-ajax.js in the way you showed below then all ajax requests will become synchronous. while you wont break anything foundamental you will make parallel ajax requests impossible. not a good thing imho. i guess we need to add a parameter so that you can set the request to

Re: [Wicket-user] Using AJAX wicketSubmitFormById like a method call

2007-05-04 Thread James Renfro
Good point. What I'm planning on is to inject my own ResourceReference version with the async set to false, but only for the one page where I need it to be synchronous. Since I'm overriding onRenderHeadInitContribution, I can just choose not to call super and the default .js files won't get

Re: [Wicket-user] Using AJAX wicketSubmitFormById like a method call

2007-05-04 Thread Igor Vaynberg
feel free to add an rfe into our jira for the extra param. -igor On 5/4/07, James Renfro [EMAIL PROTECTED] wrote: Good point. What I'm planning on is to inject my own ResourceReference version with the async set to false, but only for the one page where I need it to be synchronous. Since I'm

Re: [Wicket-user] Good Tutorial on core wicket

2007-05-04 Thread Ayodeji Aladejebi
it does not even require core committers to participate, what core committers can do is break wicket into pieces of headings in a linear manner and have non-core who understand start to contribute. wiki is not enough, there has to be a line of thought set by the creators of wicket. answering

Re: [Wicket-user] Good Tutorial on core wicket

2007-05-04 Thread Eelco Hillenius
If someone takes it up to create a structure (project in wicket-stuff maybe, or just the wiki?) I'll be glad to help out a bit, certainly with the foundational stuff. However, I don't have time to do much else than that, and I'm sure the other comitters have the same problem. Also note that I've

Re: [Wicket-user] Good Tutorial on core wicket

2007-05-04 Thread Ayodeji Aladejebi
another problem is the evolution speed of wicket. its just very fast and with 1.3 coming, am not even so keen on reharsing with 1.2.x again. the framework still needs to properly evolve from my thinking cuz yu might start ebook process and before you know it so many stuffs are deprecated yu know

[Wicket-user] 1.2 to 1.3 migration problems (javax.crypto.IllegalBlockSizeException

2007-05-04 Thread Herman Bovens
Hi, I'm getting errors when deploying my application, which I have just migrated from wicket 1.2 to 1.3. The first one is this: 00:52:22,421 ERROR [PasswordTextField] Problem applying encryption; go on without for now org.apache.wicket.WicketRuntimeException: Unable to decrypt the text '[EMAIL

[Wicket-user] loading message for i18N from other sources

2007-05-04 Thread ywtsang
Wicket's i18n is nice and I can follow the example easily here: http://cwiki.apache.org/WICKET/i18n-and-resource-bundles.html Is it possible to have Wicket load i18n messages from sources like DB or etc? As we want the messages to be dynamically updated for real time if necessary. I have looked

Re: [Wicket-user] How to remove a Behaviour?

2007-05-04 Thread Jonathan Locke
remove is a good addition, but what about isEnabled()? that might be a nice way to conditionally apply a behavior instead of removing it. Johan Compagner wrote: i think we should be thinking of a remove(IBehavior) It is pretty in line with the rest (think about Swing listeners) And it

Re: [Wicket-user] Sessionless Wicket?

2007-05-04 Thread Jeremy Thomerson
Should I be concerned that the numbers in the following URLs jump so much? This is on a page signed in as an admin, where I do have some callback links that are stateful. On one page view, here is an admin link:

Re: [Wicket-user] loading message for i18N from other sources

2007-05-04 Thread Igor Vaynberg
see IStringResourceLoader and IResourceSettings.addStringResourceLoader -igor On 5/4/07, ywtsang [EMAIL PROTECTED] wrote: Wicket's i18n is nice and I can follow the example easily here: http://cwiki.apache.org/WICKET/i18n-and-resource-bundles.html Is it possible to have Wicket load i18n

Re: [Wicket-user] Sessionless Wicket?

2007-05-04 Thread Igor Vaynberg
that is actually the page id not component id. so either you create 1500 pages in between, or stateless pages generate random ids - which it didnt look like from the code... -igor On 5/4/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: Should I be concerned that the numbers in the following