Re: OnChangeAjaxBehavior: nth character

2010-02-13 Thread Cemal Bayramoglu
Steven, Start with something like this: zipcodeField.add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { // do your stuff here } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() {

Proposal for a general solution to integrate a javascript-api

2010-02-13 Thread Fridolin Jackstadt
Looking for a smart way to integrate wicket with extjs (http://www.extjs.com) i wrote a small piece of code, that can be used to generate javascript function-calls. The idea is to rewrite the public api of the javascript library in java. Everytime you call one of these java-functions a equivalent

best way to detect session termination

2010-02-13 Thread Andreas Lüdtke
I would like to detect the termination of the session to set the lastAccesTime in the user profile. This should also happen if the session times out. I read in archive about a HttpSessionListener that should do the trick. Unfortunately I can't find a place to install it. Thanks Andreas

Re: OnChangeAjaxBehavior: nth character

2010-02-13 Thread Riyad Kalla
Cemal, very intuitive -- thanks for that. On Sat, Feb 13, 2010 at 6:26 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Steven, Start with something like this: zipcodeField.add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) {

Re: best way to detect session termination

2010-02-13 Thread Eelco Hillenius
http://www.xyzws.com/Servletfaq/when-do-i-use-httpsessionlistener/7 Eelco On Sat, Feb 13, 2010 at 8:38 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: I would like to detect the termination of the session to set the lastAccesTime in the user profile. This should also happen if the session

Re: BookmarkablePage with PageParameters

2010-02-13 Thread Pierre Goupil
Mmmh great! I'll give this a try on Monday. Cheers, Pierre On Fri, Feb 12, 2010 at 6:42 PM, vineet semwal vineetsemwal1...@gmail.comwrote: take a look at querystringurlcodingstrategy,mixedparamurlcodingstategy ,mixedparamhybridurlcodingstategy, and use what suits you . Good evening,

Re: Slides of Wicket and Struts 2

2010-02-13 Thread César Alberto Barrera
Ohh Thank You! I will take some ideas to do a presentation in a wicket workshop called Wicketing the world (Wicketiznado el mundo) On Mon, Jan 4, 2010 at 9:17 PM, John Armstrong siber...@siberian.org wrote: Very good, thanks Lester (the attachment was stripped on my side, probably my

Re: OnChangeAjaxBehavior: nth character

2010-02-13 Thread Steven Haines
Thanks so much, I appreciate all of your collective help. This list is a testimony to the passion I spoke of about the Wicket community - you guys rock! Steve - Original Message From: Cemal Bayramoglu jweekend_for...@cabouge.com To: users@wicket.apache.org Sent: Sat, February 13,

How to hide / show additional descriptive Row below empty DataView?

2010-02-13 Thread bht
Hi all, How is it possible to dynamically show and hide an additional dummy row No items to show below a DataView? I tried this with code similar to code below but it does not work even though isVisible() is called. I have a small testcase ready to go. It's quite basic so I must be missing

AjaxPagingNavigator and mounted pages produces incorrect links

2010-02-13 Thread Ryan
I just filed bug: https://issues.apache.org/jira/browse/WICKET-2743 I have a 2 mounted pages, one mounted at home and one mounted at page2. When clicking a BookmarkablePageLink for home the browser is sent to the correct page. The home page then uses a DataView to create many panels with

Re: AjaxPagingNavigator and mounted pages produces incorrect links

2010-02-13 Thread vineet semwal
i think it's a issue 2717 which has been fixed,you can confirm the correct behavior in 1.4.x. On Sun, Feb 14, 2010 at 11:51 AM, Ryan wicket-us...@mandrake.us wrote: I just filed bug: https://issues.apache.org/jira/browse/WICKET-2743 I have a 2 mounted pages, one mounted at home and one

Generics for datatable columns

2010-02-13 Thread Sam Barrow
This is a stupid minor thing but I was wondering. If I have a datatable of SubClass objects, shouldn't a I be able to add an IColumnSuperClass to the list of columns? Not very often used, but could be useful occasionally like for inheritance with domain entities. Couldn't hurt to implement this

Re: How to hide / show additional descriptive Row below empty DataView?

2010-02-13 Thread vineet semwal
two suggestions, 1)emptyrow.setoutputmarkupplaceholdertag(true) instead of setoutputmarkupid(true). 2)you can use dataview.getitemscount() instead of data.size() as later can be expensive. On Sun, Feb 14, 2010 at 8:11 AM, b...@actrix.gen.nz wrote: Hi all, How is it possible to dynamically