Re: WML + Wicket experiences?

2009-02-22 Thread Martin Makundi
Further investigation shows that the wap device is very sensitive to switching session id on the fly. This might be because it probably uses url-rewriting AND it does not allow redirect, so it will easily trigger into wrong session (if changed on the fly). Therefore, I changed my old login

Re: ModalWindow and wicket:link not working

2009-02-22 Thread Bert
The problem was, as usual, in front of the computer ;) all my other pages where bases on 3 other base pages. and, my css was sitting next to this css in the same folder, hence the resolution worked. guess i have to read up on how the wicket:link resolves resources. thanks all

Re: WML + Wicket experiences?

2009-02-22 Thread Martin Makundi
Must call removeAttribute before calling getSession, otherwise it will just find the old one: Session.unset(); getApplication().getSessionStore().removeAttribute(getRequest(), Session.SESSION_ATTRIBUTE_NAME); //!!

A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
Now I use wicket 1.3.5. There is a date field in my webpage.and it is not required. The date class type is java.sql.date But I alway have a NullPointerException while the input of this optional field is empty. the exceptions below: Caused by: java.lang.NullPointerException at

Re: A Bug in SqlDateConverter?

2009-02-22 Thread Martin Makundi
I recommend porting to 1.4-rc2 already ;) Alternatively you can override / patch the SqlDateConverter with a new class: package org.apache.wicket.util.convert.converters; public class SqlDateConverter extends AbstractConverter { private static final long serialVersionUID = 1L; /** *

Re: A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
Thanks for your quick response. Now I have updated my lib into wicket1.4-rc2. Rerun the date input functoin and I have another exception.(the date field is not empty) -- Caused by: java.lang.ClassCastException: java.util.Date at

Re: A Bug in SqlDateConverter?

2009-02-22 Thread Martin Makundi
In my opinnion yes. Try the snipplet I sent you. If it does not work, I will have another look. ** Martin 2009/2/22 rolandpeng rolandp...@cht.com.tw: Thanks for your quick response. Now I have updated my lib into wicket1.4-rc2. Rerun the date input functoin and I have another

Re: A Bug in SqlDateConverter?

2009-02-22 Thread Martin Makundi
Note, that the SqlDateConverter -class must use java.sql.Date when it returns the value. (that's why it is called 'SqlDateConverter') ** Martin 2009/2/22 Martin Makundi martin.maku...@koodaripalvelut.com: In my opinnion yes. Try the snipplet I sent you. If it does not work, I will have another

YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Bert
Hi, it looks like org.apache.wicket.extensions.yui.calendar.DateTimeField is not available in version 1.3.5? is there a plan to add it again, or what do you use for a 'fancy' Date Chooser control? thanks Bert - To

Re: Google map in openlayer

2009-02-22 Thread Nino Martinez
Hi Michael Im quite busy the next two weeks.. Could you apply the patch yourself? And thanks for writing about it, apparently there arent a mail server on wicketstuff jira... regards Nino Michael O'Cleirigh wrote: Hi Wadi, The google maps layer is of type OpenLayers.Layer.Google which

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Nino Martinez
Yeah We have trouble here in Denmark too, all our events has only been max 5 people... So Cemal if you know of anyone who could be interested in a WUG DK please tell.. jWeekend wrote: Thomas, This is partly because, strange as it may seem, not everyone that develops with Wicket uses this

markup inheritance: wicket:border + wicket:body VS wicket:extend + wicket:child

2009-02-22 Thread Sergey Didenko
Hi, What are pros and cons of using wicket:border + wicket:body VS wicket:extend + wicket:child? Is the first case just about avoiding wicket:xxx tags in real pages? Consider java/org/apache/wicket/examples/navomatic example, I omit the related java code for brevity: NavomaticBorder.html:

Re: YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Martin Makundi
It is for sure in 1.4- branch. ** Martin 2009/2/22 Bert taser...@gmail.com: Hi, it looks like org.apache.wicket.extensions.yui.calendar.DateTimeField is not available in version 1.3.5? is there a plan to add it again, or what do you use for a 'fancy' Date Chooser control? thanks Bert

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Sergey Didenko
As I understand there are a lot of wicket users from all around the world. What about scheduled video podcasts? They are much more affordable for everyone. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Linking to an image in resources with just html

2009-02-22 Thread svfarmer
But that is not the static linking I'm after, since this still forces me to use a unique wicket:id in EVERY img tag, and in the java code. Unless I'm missing something here? :) Thanks, Tjeerd igor.vaynberg wrote: you can link to resources in the classpath using urlfor(new

Re: Linking to an image in resources with just html

2009-02-22 Thread James Carman
You can do: wicket:link img src=img/bar.png / /wicket:link However, the image itself must be in a subpackage of the page/component's package called img. That turns out to not be so bad in our case, but it may be too much of a restriction for you. On Sun, Feb 22, 2009 at 8:28 AM, svfarmer

Re: markup inheritance: wicket:border + wicket:body VS wicket:extend + wicket:child

2009-02-22 Thread James Carman
It depends on what you're trying to do. If you just want a common layout for all of your pages in your application, then I'd just use markup inheritance (and I do). On Sun, Feb 22, 2009 at 6:49 AM, Sergey Didenko sergey.dide...@gmail.com wrote: Hi, What are pros and cons of using

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Thomas Mäder
Hello everyone, I wasn't trying to whine, it just appears that a community-style meetup like I had in mind is not going to fly in the Zürich region. Since I'm just a lowly contractor, I don't really have the means to organize anything more formal, with speakers and such (and keep it going). I

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Thomas Mäder
Schwizertütsch rules, of course! ;-) Thomas Or we could hold a meeting in Canadian french, calisse! On Fri, Feb 20, 2009 at 5:23 PM, Johan Compagner jcompag...@gmail.comwrote: that was the whole idea, now you spoiled it! ;( On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson

Re: Linking to an image in resources with just html

2009-02-22 Thread svfarmer
Good call, but the problem there is obvious: it has to be a subpackage. So reusability is very limited, since you cannot use a package such as the java/main/img everywhere. Thanks though :) Maybe my only option is writing a custom component for this (seemingly) trivial case? James Carman-3

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Daniel Frisk
I can't complain, our meetings in Stockholm/Sweden have always been attended by usually 20-30 people or so. We have had some really great presentations and very intresting discussions. If you want to get notified of the upcoming meetings (one might be coming soon it's long overdue) sign up

Re: Linking to an image in resources with just html

2009-02-22 Thread James Carman
The one nice thing about using wicket:link is that it makes using an HTML editor easy. You just use relative URLs. On Sun, Feb 22, 2009 at 11:13 AM, svfarmer twboer...@gmail.com wrote: Good call, but the problem there is obvious: it has to be a subpackage. So reusability is very limited,

Re: A Bug in SqlDateConverter?

2009-02-22 Thread Igor Vaynberg
If input is null and the field is not required converters do not run. Show us your code. -Igor On 2/22/09, rolandpeng rolandp...@cht.com.tw wrote: Now I use wicket 1.3.5. There is a date field in my webpage.and it is not required. The date class type is java.sql.date But I alway have a

Re: YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Igor Vaynberg
See datepicker in wicket-datetime -igor On 2/22/09, Bert taser...@gmail.com wrote: Hi, it looks like org.apache.wicket.extensions.yui.calendar.DateTimeField is not available in version 1.3.5? is there a plan to add it again, or what do you use for a 'fancy' Date Chooser control?

Re: Linking to an image in resources with just html

2009-02-22 Thread Igor Vaynberg
Look, the servlet spec does not allow streamlng of resources out of your claaspath via static urls, so if that us what you are after just don't put things into the claaspath. -igor On 2/22/09, svfarmer twboer...@gmail.com wrote: But that is not the static linking I'm after, since this still

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Nino Martinez
Francisco Diaz Trepat - gmail wrote: First of all, could this be the coolest list ever? May be because Nino is on it. I would love to be in driving distance but Bs. As. is too far... Though starting to beg my boss for a quick trip (as we work for a Zürich based company)... We could have one

Re: Wicket meetup in Switzerland?

2009-02-22 Thread Nino Martinez
What language are it in? Swedish? Or English? regards Nino Daniel Frisk wrote: I can't complain, our meetings in Stockholm/Sweden have always been attended by usually 20-30 people or so. We have had some really great presentations and very intresting discussions. If you want to get notified

Re: YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Bert
Thanks, this worked out great. now i have to do some reading / testing on how to style it, but it is working great so far On Sun, Feb 22, 2009 at 20:13, Igor Vaynberg igor.vaynb...@gmail.com wrote: See datepicker in wicket-datetime -igor

Re: [OT] Simple file repository?

2009-02-22 Thread Kaspar Fischer
Thank you all very much for your advice. I will take a look at JackRabitt and Alfresco. Kaspar On 16.02.2009, at 01:45, Fabrizio Giudici wrote: Kaspar Fischer wrote: User's of my application will upload, edit, and delete files. For this, I'd like to have a simple file repository with the

[OT] Framework for managing task

2009-02-22 Thread Kaspar Fischer
My Wicket app needs to run tasks in the background and I am looking for a Java framework to persist tasks in the sense that I can submit a task and the framework would ensure that once submitted (transactions?), the task will be run, even if the server is shut down in between and the task

suggestions on rich web ui

2009-02-22 Thread miro
are there free to browse rich ui web applicatons , I need this to design my application as a rich ui web application. -- View this message in context: http://www.nabble.com/suggestions-on-rich-web-ui-tp22152671p22152671.html Sent from the Wicket - User mailing list archive at Nabble.com.

LinkTree and modal windows

2009-02-22 Thread Dariusz Wojtas
Hi, This has been a busy weekend for me. I have successfully created a tree (LinkTree) that loads various object types from database (lazily loaded) and after hours of research - the result was amazingly simple. Wicket rocks! Then I tried to work with modal windows. Finally I have created basics

LinkTree with dragdrop - is it possible with the current code base?

2009-02-22 Thread Dariusz Wojtas
Hi, Is a drag and drop operation possible with Wicket using LinkTree? Can I drag an item and drop it somewhere else in the hierarchy? Can I drop an Item and drop it in another tree? Is drag and drop supported at all in Wicket 1.4 without additional libraries? Best regards Dariusz Wojtas

Re: [OT] Framework for managing task

2009-02-22 Thread Pierre Goupil
Maybe Quartz is what you want : http://www.opensymphony.com/quartz/ Regards, Pierre On Sun, Feb 22, 2009 at 11:26 PM, Kaspar Fischer fisch...@inf.ethz.chwrote: My Wicket app needs to run tasks in the background and I am looking for a Java framework to persist tasks in the sense that I can

Re: Linking to an image in resources with just html

2009-02-22 Thread svfarmer
Alright I figured it out! Put the /img/ directory in /src/main/webapp. My maven configuration did get the resources to end up in the context root, but only in the target dir (and as a result when packaging the WAR file). Doing a development deploy with jetty:run or Tomcat Plugin works

Re: Drop Down Box - Ajax Behaviour

2009-02-22 Thread Timo Rantalaiho
On Thu, 19 Feb 2009, Daniel Ferreira Castro wrote: My problem is that After I submit the form, inserting on the bank a new Category (Caategoria in Portuguese), the DropDown does not update its values list with the inserted one. That's probably best done with a pull model IModelListCategoria

Re: Feedback message isn't displayed

2009-02-22 Thread Timo Rantalaiho
On Wed, 18 Feb 2009, Jakub Srba wrote: Here is a simpler example that doesn't work for me either: ... Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = this error message is NOT

Re: A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
Here you are. html and java files are both uploaded as attachments for your reference. Data type of the date field in my entity is also java.sql.Date. By the way,instead of above method, Now I have a try to change all the date type of Date from java.sql.Date into java.util.Date. Then everything

Re: A Bug in SqlDateConverter?

2009-02-22 Thread Igor Vaynberg
does the error go away if you do not add the datepickers? -igor On Sun, Feb 22, 2009 at 8:08 PM, rolandpeng rolandp...@cht.com.tw wrote: Here you are. html and java files are both uploaded as attachments for your reference. Data type of the date field in my entity is also java.sql.Date. By

LDM with Generics for DropDownChoice

2009-02-22 Thread Matt Welch
I'm sure I should know this but I can't seem to get it right. I have a LoadableDetachableModel as follows: private class AllUserModel extends LoadableDetachableModelListUser{ protected ListUser load() { return userService().findAllUsers();

Re: LDM with Generics for DropDownChoice

2009-02-22 Thread Jeremy Thomerson
IIRC, DropDownChoice requires a declaration like such: IModelList? extends Foo So, this should work: IModelList? extends Foo choices = new AllUserModel(); I've been meaning to ask on the dev list why that is. Being forced to declare the ? extends User for a model like yours seems to add

Re: LDM with Generics for DropDownChoice

2009-02-22 Thread Timo Rantalaiho
On Sun, 22 Feb 2009, Jeremy Thomerson wrote: I've been meaning to ask on the dev list why that is. Being forced to declare the ? extends User for a model like yours seems to add complexity, and force a local variable. I haven't looked at it that much, but I know that every time I've had to

validation message-keys differences on m3 to rc2

2009-02-22 Thread Alexander Lohse
Hi, I could not find any reported changes concerning validation message keys from version 1.4-m3 to 1.4-rc2, but I have the following required key in my application resources that does not work anymore. entry key=loginForm.password.RequiredBitte geben Sie ein Passwort ein!/entry Any

Re: A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
igor, I'm not sure if the datepickers removed will make the error go away. Since all of my programs have been refactorred from java.sql.Date to java.util.Date,I can't try your assumption in my application now. Anyway,now I adopt java.util.Date instead of java.sql.Date,and everything goes well.

What happens with AjaxSelfUpdatingTimerBehavior on slow response

2009-02-22 Thread Anton Veretennikov
Hello, wicket users, Seems to me that AjaxSelfUpdatingTimerBehavior works great on my dev machine but does not on remote server. Firebug shows only count of requests and no reponses. So may be this happens when response is too late and new request is started? I wonder of variant that will wait

Re: What happens with AjaxSelfUpdatingTimerBehavior on slow response

2009-02-22 Thread Anton Veretennikov
Excuse me, it works! My test was invalid. On Mon, Feb 23, 2009 at 1:10 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hello, wicket users, Seems to me that AjaxSelfUpdatingTimerBehavior works great on my dev machine but does not on remote server. Firebug shows only count of

Re: Storing user entity in session?

2009-02-22 Thread nino martinez wael
I think it looks fine.. However I'd delegate the creation of the model to session... page setDefaultModel(getSession().getUserModel()) session: function DetachableUserModel getUserModel() { return new DetachableUserModel(getSession().getUser(),userDao); } 2009/2/20 Tauren Mills

Re: Storing user entity in session?

2009-02-22 Thread Martijn Dashorst
Storing the user in a field of Session is wrong. Didn't you read the concurrency caveats I posted earlier? When users click fast enough, you'll get Hibernate exceptions pretty soon. Entity instances can't be shared between multiple threads. Putting them in the Session exposes them to that threat.