RE: format float/double in dataview

2010-02-26 Thread Andreas Lüdtke
, 2010 at 4:39 AM, James Carman jcar...@carmanconsulting.comwrote: I would think that you'd add either a style or class attribute to the cell, perhaps? On Thu, Feb 25, 2010 at 6:02 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: James, thanks a lot for the code snippet. My

RE: format float/double in dataview

2010-02-25 Thread Andreas Lüdtke
(MessageFormat.format(pattern, superModel.getObject())); } } On Wed, Feb 24, 2010 at 1:43 PM, Andreas Lüdtke sam.lued...@t-online.de wrote: I'm displaying doubles in an AjaxFallbackDefaultDataTable. Is it possible to format them i.e. with a precision of 2 digits and right aligned? Currently I

format float/double in dataview

2010-02-24 Thread Andreas Lüdtke
I'm displaying doubles in an AjaxFallbackDefaultDataTable. Is it possible to format them i.e. with a precision of 2 digits and right aligned? Currently I don't see a possibility to do this. Thanks Andreas - To

RE: best way to detect session termination

2010-02-18 Thread Andreas Lüdtke
{ @Autowired private MyDao dao; public destroySession(String sessionId) { myDao.deleteMySessionById(sessionId); } } Best Regards, Ilja Pavkovic Am Mittwoch, 17. Februar 2010 13:24:11 schrieb Andreas Lüdtke: Vineet, I'm now storing

RE: best way to detect session termination

2010-02-17 Thread Andreas Lüdtke
object and then persist it.. On Tue, Feb 16, 2010 at 6:23 PM, Andreas Lüdtke sam.lued...@t-online.dewrote: I studied the classes HttpSessionBindingListener and AbstractHttpSessionStore as you noted, but I think I'll still have no link between the SessionId from the HTTPSession

RE: best way to detect session termination

2010-02-17 Thread Andreas Lüdtke
webapplication, it will work but i am not sure how good the solution is . On Wed, Feb 17, 2010 at 5:54 PM, Andreas Lüdtke sam.lued...@t-online.dewrote: Vineet, I'm now storing the session id in the user record. But now I have another problem, because hibernate tells me now

RE: best way to detect session termination

2010-02-17 Thread Andreas Lüdtke
, it will work but i am not sure how good the solution is . On Wed, Feb 17, 2010 at 5:54 PM, Andreas Lüdtke sam.lued...@t-online.dewrote: Vineet, I'm now storing the session id in the user record. But now I have another problem, because hibernate tells me now in sessionDestroy

RE: best way to detect session termination

2010-02-16 Thread Andreas Lüdtke
internally (see AbstractHttpSessionStore). Or as a hack store references to the session objects in the session listener. That's the easy fix, but doesn't scale if you need session replication (unless maybe you use e.g. Terracotta). Eelco On Sun, Feb 14, 2010 at 4:36 AM, Andreas Lüdtke

RE: setPageExpiredErrorPage only for certain pages?

2010-02-15 Thread Andreas Lüdtke
bookmarkablepagelinks for links you don't want to expire. Martijn 2010/2/14 Major Péter majorpe...@sch.bme.hu: My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas

RE: setPageExpiredErrorPage only for certain pages?

2010-02-15 Thread Andreas Lüdtke
pages? My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good

RE: best way to detect session termination

2010-02-14 Thread Andreas Lüdtke
to detect session termination 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

setPageExpiredErrorPage only for certain pages?

2010-02-14 Thread Andreas Lüdtke
In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session

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: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode

2010-02-12 Thread Andreas Lüdtke
, Andreas Lüdtke sam.lued...@t-online.de wrote: Can someone please confirm if this is a bug? If yes, I will create a JIRA issue if I'm allowed to do that. Thanks Andreas -Original Message- From: Andreas Lüdtke [mailto:sam.lued...@t-online.de] Sent: Saturday, February 06

RE: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode

2010-02-09 Thread Andreas Lüdtke
Can someone please confirm if this is a bug? If yes, I will create a JIRA issue if I'm allowed to do that. Thanks Andreas -Original Message- From: Andreas Lüdtke [mailto:sam.lued...@t-online.de] Sent: Saturday, February 06, 2010 7:43 PM To: users@wicket.apache.org Subject

best practice for a simple menu

2010-02-07 Thread Andreas Lüdtke
I'm relatively new to wicket and I want to build a menu in my webapp that looks similar to the menu of xing (start search messages...). My existing webapp has an abstract base page with a header panel and a footer panel. Inbetween is the body for the real pages. This works so far, but I have

AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode

2010-02-06 Thread Andreas Lüdtke
Hi, I'm using wicket 1.4.6 and saw that the onTimer method of an AbstractAjaxTimerBehavior object isn't called, when I switch vom development mode to deployment mode. This happens also with wicket 1.4.5. Is there something I need to do to get it working in deployment mode? In addition, after

PagingNavigator css tags

2010-02-04 Thread Andreas Lüdtke
Hi, I've just started with css and I would like to know the tag names of the paging navigator. I had a look in the wicket source code, but my css file doesn't work. I mean the area in the upper right corner like 1 2 3 4 5 I don't like the italic font-weight. Any help is much

RE: AjaxFallbackDefaultDataTable and delete via ModalWindow

2010-02-02 Thread Andreas Lüdtke
recommend something way smarter :) -R On Sat, Jan 30, 2010 at 2:11 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: Riyad, it's not a dumb question. I asked that already myself and checked via the debugger that the object is really deleted. But you've

RE: AjaxFallbackDefaultDataTable and delete via ModalWindow

2010-01-30 Thread Andreas Lüdtke
trying to figure out why something Wasn't deleting just to find out it was, but my cache was deferring the operation to a few seconds later. So I figured I'd throw that out there just incase. -R On Fri, Jan 29, 2010 at 10:23 AM, Andreas Lüdtke sam.lued...@t-online.dewrote: Hi

AjaxFallbackDefaultDataTable and delete via ModalWindow

2010-01-29 Thread Andreas Lüdtke
Hi, I have an AjaxFallbackDefaultDataTable on a page and when I delete a row of the displayed data, I can't get the DataTable to reload and show the reduced list. I tried already the following: - delete the object (row) in the database - reload the ISortableDataProvider class I'm using -- this

RE: wicket bench in eclipse

2010-01-21 Thread Andreas Lüdtke
Hi Lionel, since you don't write what exactly doesn't work, I can only guess: is the M2_REPO variable beeing defined/set in eclipse? This was my main problem when I used eclipse. You should give NetBeans a try. Just open the pom file and everything is fine and working. Andreas -Original

RE: wicket bench in eclipse

2010-01-21 Thread Andreas Lüdtke
, 2010 5:56 PM To: users@wicket.apache.org Subject: Re: wicket bench in eclipse Does it support parent POMs yet? This was an issue I had back when I used Netbeans and had to work with a multi-module project. 2010/1/21 Andreas Lüdtke sam.lued...@t-online.de: Hi Lionel, since you don't